From b7e0a62c6dad0cc97275eba68f81ca7f7c288ed8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Wed, 15 Dec 2021 01:51:37 +0100 Subject: windows: Disable taskbar middle click hotkey --- tt.windows.ahk | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) 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 -- cgit v1.2.3