That said, this has most likely been answered before, but because I don't know what to look/search for, I'm forced to make a new topic.
To the issue!
I want to make a standard looping script while holding down a key.
But I want the script to only once send two keys once.
One key when the script starts, and one key when I let go of the hotkey.
Example:
Code: Select all
!q::
Loop
{
if not GetKeyState("q", "P")
Break
Send {1}
Sleep 10
}
Return
Something like this ( but working
![Razz :P](./images/smilies/icon_razz.gif)
Code: Select all
!q::
Send {a} ;; Just once, for when I activate the script, not repeating unless I let go of q, and press it again.
Loop
{
if not GetKeyState("q", "P")
Break
Send {1}
Sleep 10
}
Send {b} ;; Only ever when I let go of "Q"
Return
Thanks in advanced.