Code: Select all
#IfWinActive Enlisted
XButton1::
KeyDown := !KeyDown
If KeyDown
SendInput {p down}
Else
SendInput {p up}
Return
$x::
Send % "{x " (GetKeyState("x") ? "up" : "down") "}"
KeyWait, x
Return
~w Up::
Send {x up}
Return
Return