Anonymous wrote:
If I move joystick right it presses right key till I leave the joystick. The thing I want to do is move the joystick right, send the key once. No repeat keys.
Let's say right joystick = "a" key (no repeat)
Thanks
Code:
; Otherwise, release the previous key and press down the new key:
SetKeyDelay -1 ; Avoid delays between keystrokes.
if KeyToHoldDownPrev ; There is a previous key to release.
Send, {%KeyToHoldDownPrev% up} ; Release it.
if KeyToHoldDown ; There is a key to press down.
Send, {%KeyToHoldDown% down} ; Press it down.
return
Remove the 'up' and 'down' words. This should change it to a single send.
You may need to remove the 'up' line entirely and just change the down line to remove 'down'.
Is this for star trek online?
Also don't let the variable names 'keytoholddown' confuse you, it could just as easily be named 'key'.