From ff581facd12c57c23434c6730cd2db4945daf1cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Sun, 11 Apr 2021 15:28:09 +0200 Subject: Update drm --- drm.ahk | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/drm.ahk b/drm.ahk index 1298618..a0c9e04 100644 --- a/drm.ahk +++ b/drm.ahk @@ -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() -- cgit v1.2.3