Last active
October 14, 2023 08:55
-
-
Save TornadoRadon/c9d19dfb789a9d68ca56ef5033852fcd to your computer and use it in GitHub Desktop.
Switch your Virtual Desktops with AutoHotKey 2 on Windows by Mouse Wheel when cursor on a corner.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; Desktop Switch Corner by TornadoRadon | |
; October 14, 2023 | |
#SingleInstance ; Allow only one instance of this script to be running. | |
Persistent | |
CoordMode "Mouse" , "Screen" ; Coordinates are relative to the desktop (entire screen). | |
WheelUp:: | |
{ | |
MouseGetPos &xpos, &ypos | |
if (xpos = 1919 and ypos = 1079) { | |
;MsgBox "Mouse Position " xpos ":" ypos | |
Send "^#{Right}" | |
} else { | |
Send "{WheelUp}" | |
} | |
} | |
WheelDown:: | |
{ | |
MouseGetPos &xpos, &ypos | |
if (xpos = 1919 and ypos = 1079) { | |
;MsgBox "Mouse Position " xpos ":" ypos | |
Send "^#{Left}" | |
} else { | |
Send "{WheelDown}" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment