Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; Taskbar Quick Close
- ; Quick closing windows from the taskbar with Middle-click.
- ; Ctrl + Middle-click for original action (new window)
- ShouldActivateMButton() {
- MouseGetPos, xpos, ypos, , ControlUnderMouse
- return ControlUnderMouse = "MSTaskListWClass1"
- }
- #If ShouldActivateMButton()
- ; Control + Middle-click does the middle-click action (new window)
- ^MButton::MButton
- ; Middle-click to close, for quicker one-handed use
- MButton::
- MouseClick, Right
- Sleep, 200
- Send, {Tab}{End}
- Send, {Enter}
- return
- #If
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement