From 2270ea5d0d7c12786576c0a2a51409e128184a4c Mon Sep 17 00:00:00 2001 From: Ben Reaves Date: Mon, 3 Aug 2020 03:10:51 -0500 Subject: [PATCH] - Enabled left clicks on Kinto system tray in Windows --- windows/kinto.ahk | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/windows/kinto.ahk b/windows/kinto.ahk index 7ec0376..60d112a 100644 --- a/windows/kinto.ahk +++ b/windows/kinto.ahk @@ -5,6 +5,25 @@ DetectHiddenWindows, On Run, %A_ScriptDir%\detectUSB.ahk +; Enable Left clicks on Kinto Icon +; https://www.autohotkey.com/boards/viewtopic.php?t=9501 +OnMessage(0x404, "AHK_NOTIFYICON") + +AHK_NOTIFYICON(wParam, lParam) +{ + if (lParam = 0x202) { ; user left-clicked tray icon + ;ADD ANY SUBROUTINE OR FUNCTION HERE + Menu, Tray, Show + return + } + else if (lParam = 0x203) { ; user double left-clicked tray icon + ;ADD ANY SUBROUTINE OR FUNCTION HERE + Menu, Tray, Show + return + } +} +; End Enable Left clicks + ; I_Icon = %A_ScriptDir%\assets\kinto-white.ico ; MacModifiers ; IfExist, %I_Icon% ; MacModifiers ; Menu, Tray, Icon, %I_Icon%,, 1 ; MacModifiers