Thanks
Code: Select all
Loop
{
AutoRepeat("w") ;hold w indefinitely
AutoRepeat("a",10000) ;hold a 10 seconds
AutoRepeat("d",10000) ;hold d 10 seconds
}
AutoRepeat(Key, Duration:=0, ByRef Active:=True)
{
End := A_TickCount + Duration
While, Active And A_TickCount < End
{
SendInput, {%Key% DownR}
Sleep, 30
}
SendInput, {%Key% Up}
}