aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-12-15 01:51:37 +0100
committerJohn Ankarström <john@ankarstrom.se>2021-12-15 01:51:37 +0100
commitb7e0a62c6dad0cc97275eba68f81ca7f7c288ed8 (patch)
treed80bbcab65d52048d55799dffdcacb9fa6ae4b9a
parentc2ace84394d317e38d95edf8619409639e5ae3f5 (diff)
downloadahk-b7e0a62c6dad0cc97275eba68f81ca7f7c288ed8.tar.gz
windows: Disable taskbar middle click hotkey
-rw-r--r--tt.windows.ahk21
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