How would I create a script to rapidly alternate between the left and right arrow keys when I hold down a hotkey? Below is what I have so far, I can't seem to get it to work properly.
v::
Loop
{
Send {Left}
Sleep 10
Send {Right}
}
Return
Alternating Keys
- waetherman
- Posts: 112
- Joined: 05 Feb 2016, 17:00
Re: Alternating Keys
This?
Code: Select all
v::
While ( GetKeyState("v") ) {
Send {Left}
Sleep 10
Send {Right}
}
Return
Re: Alternating Keys
It seems to work, just not for the game I'm playing. Tried some different things, oh well it's not meant to be
- waetherman
- Posts: 112
- Joined: 05 Feb 2016, 17:00
Re: Alternating Keys
Code: Select all
SetKeyDelay, 50, 50
v::
While ( GetKeyState("v") ) {
Send {Left}
Sleep 10
Send {Right}
}
Return
Code: Select all
SendMode, Play
SetKeyDelay, 50, 50
v::
While ( GetKeyState("v") ) {
Send {Left}
Sleep 10
Send {Right}
}
Return
Who is online
Users browsing this forum: Bing [Bot] and 270 guests