trying to make a key toggle holding another key, below works. But sometimes I would be pressing Lctrl (to crouch in game) when I click RButton, then it would no longer work.
Code: Select all
RButton::
KeyDown := !KeyDown
If KeyDown
SendInput {F7 down}
Else
SendInput {F7 up}
Return
Code: Select all
LCtrl & RButton::
KeyDown := !KeyDown
If KeyDown
SendInput {F7 down}
Else
SendInput {F7 up}
Return