Requesting a simple code
-
- Posts: 1
- Joined: 22 Jul 2018, 16:19
Requesting a simple code
i would need a code that holds the right arrow key for 10 seconds, then the left arrow key for ten seconds and loops. for a game this is, thanks in advance
Re: Requesting a simple code
Hallo,
try:
try:
Code: Select all
F4:: ;On/Off with key F4
If SendKeys:=!SendKeys
{
SetTimer SendKeys, 10000 ;10s period
Gosub, SendKeys
}
Else
{
SetTimer SendKeys, Off
Send, {Left Up}{Right Up}
}
Return
SendKeys:
IF Right:=!Right
Send, {Left Up}{Right Down}
Else
Send, {Right Up}{Left Down}
Return