diff options
author | John Ankarström <john@ankarstrom.se> | 2021-04-11 15:28:09 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2021-04-11 15:28:09 +0200 |
commit | ff581facd12c57c23434c6730cd2db4945daf1cc (patch) | |
tree | d6d91e848a937063dfd03d229ad343bcc3e17b1e | |
parent | 28aced1ea91c8aed214ae2116b48302846d1b4da (diff) | |
download | drm-john.tar.gz |
Update drmjohn
-rw-r--r-- | drm.ahk | 20 |
1 files changed, 1 insertions, 19 deletions
@@ -50,6 +50,7 @@ for k, res in Resolutions Menu, Tray, Add, %res%, ButtonResolution Menu, Tray, Add Menu, Tray, Add, &Configure..., ButtonConfigure +Menu, Tray, Add, &Restart, ButtonRestart Menu, Tray, Add, E&xit, ButtonExit AddCheckmark() OnMessage(0x404, "NotifyIcon") @@ -64,25 +65,6 @@ return #IncludeAgain %A_ScriptDir%\hotkeys.x -; Handle tray opening - -NotifyIcon(wParam, lParam) -{ - if (lParam = 0x205) ; WM_RBUTTONUP - { - Menu, Tray, UseErrorLevel - Menu, Tray, Delete, &Restart - Menu, Tray, Delete, E&xit - Menu, Tray, UseErrorLevel, Off - if (GetKeyState("Shift") = 1) - Menu, Tray, Add, &Restart, ButtonRestart - else - Menu, Tray, Add, E&xit, ButtonExit - Menu, Tray, Show - return 1 - } -} - ; Open configuration ButtonConfigure() |