Skip to content

Instantly share code, notes, and snippets.

Created July 7, 2018 08:21
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
Taskbar Quick Close
; Taskbar Quick Close
; Quick closing windows from the taskbar with Middle-click.
; Ctrl + Middle-click for original action (new window)
#If ShouldActivateMButton()
; Control + Middle-click does the middle-click action (new window)
; Middle-click to close, for quicker one-handed use
MouseClick, Right
Sleep, 200
Send, {Tab}{End}
Send, {Enter}
ShouldActivateMButton() {
MouseGetPos, xpos, ypos, , ControlUnderMouse
return ControlUnderMouse = "MSTaskListWClass1"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment