Is this the same for anyone else?
Code: Select all
#Requires AutoHotkey v2.0
Persistent
OnMessage 0x404, AHK_NOTIFYICON
AHK_NOTIFYICON(wParam, lParam, msg, hwnd) {
switch lParam {
case 0x202: ; WM_LBUTTONUP
MsgBox "left clicked tray icon"
case 0x205: ; WM_RBUTTONUP
MsgBox "right clicked tray icon"
case 0x208: ; WM_MBUTTONUP
MsgBox "middle clicked tray icon"
}
}