Last active
July 21, 2022 13:15
-
-
Save oflow/1d95fa6cefbfe0be5bc77b6940b43215 to your computer and use it in GitHub Desktop.
XButton2 + Click assigned to {Left},{Right} Keys
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
XBShift := 0 | |
^F13:: | |
Suspend On | |
Pause On | |
return | |
^+F13:: | |
Suspend Off | |
Pause Off | |
return | |
XButton2:: | |
XBShift := 1 | |
return | |
XButton2 Up:: | |
XBShift := 0 | |
return | |
LButton:: | |
if (XBShift = 1) { | |
Send {Left} | |
} else { | |
Send {Click, Down} | |
} | |
return | |
LButton Up:: | |
if (XBShift = 0) { | |
Send {Click, Up} | |
} | |
return | |
RButton:: | |
if (XBShift = 1) { | |
Send {Right} | |
} else { | |
Send {Click, Down, Right} | |
} | |
return | |
RButton Up:: | |
if (XBShift = 0) { | |
Send {Click, Up, Right} | |
} | |
return | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment