diff options
author | John Ankarström <john@ankarstrom.se> | 2021-12-15 01:51:37 +0100 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2021-12-15 01:51:37 +0100 |
commit | b7e0a62c6dad0cc97275eba68f81ca7f7c288ed8 (patch) | |
tree | d80bbcab65d52048d55799dffdcacb9fa6ae4b9a | |
parent | c2ace84394d317e38d95edf8619409639e5ae3f5 (diff) | |
download | ahk-b7e0a62c6dad0cc97275eba68f81ca7f7c288ed8.tar.gz |
windows: Disable taskbar middle click hotkey
-rw-r--r-- | tt.windows.ahk | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tt.windows.ahk b/tt.windows.ahk index 931e8a1..437af3e 100644 --- a/tt.windows.ahk +++ b/tt.windows.ahk @@ -96,6 +96,27 @@ Loop { WinMinimize, ahk_id %hwnd% return +/* +#If ShouldActivateMButton() +MButton:: + Send, {Shift Down} + MouseClick, Right + Send, {Shift Up}{Down}{Down}{Down}{Down}{Down}{Enter} + return +#If +*/ + +;; -> library + +/* +ShouldActivateMButton() { + MouseGetPos, xpos, ypos, , ControlUnderMouse + return ControlUnderMouse = "MSTaskSwWClass1" + || ControlUnderMouse = "ApplicationManager_DesktopShellWindow" + || ControlUnderMouse = "Shell_TrayWnd1" + || ControlUnderMouse = "MSTaskListWClass1" +} +*/ ;; -> body |