Skip to content

Instantly share code, notes, and snippets.

@oflow
Last active July 21, 2022 13:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oflow/1d95fa6cefbfe0be5bc77b6940b43215 to your computer and use it in GitHub Desktop.
Save oflow/1d95fa6cefbfe0be5bc77b6940b43215 to your computer and use it in GitHub Desktop.
XButton2 + Click assigned to {Left},{Right} Keys
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