I need a script
I need a script
So if somebody would be nice and make me a simple script that holds a for like 0.4 seconds then holds d for 0.4 secs and keeps on spamming between a and d i'd be really happy. I myself don't know anything about scripting so yah. Thanks.
Re: I need a script
Code: Select all
Loop
{
Send,{a down}
Sleep,400
Send,{a up}{d down}
Sleep,400
Send,{d up}
}
#q::ExitApp ; Press Windows-key + q to quit script.
Re: I need a script
Thank you, this works but could you make a hotkey for it so that u could just press 1 or 2 keys to enable and disable it?
Re: I need a script
Guest wrote:Thank you, this works but could you make a hotkey for it so that u could just press 1 or 2 keys to enable and disable it?
Code: Select all
!e::Suspend ; Now your hot key is Alt+e but you can change it: !=Alt / ^=Ctrl / +=Shift / or you could use any letter that would trigger that key on keyboard
Loop
{
Send,{a down}
Sleep,400
Send,{a up}{d down}
Sleep,400
Send,{d up}
}
#q::ExitApp ; Press Windows-key + q to quit script.
Re: I need a script
The script you made doesn't work for me?
Re: I need a script
Code: Select all
stop:=1 ; Make sure this line is in the auto-exec part of your script, i.e., at the top.
#s:: ; This hotkey is winkey+s, it will interupt the loop if it is running, and start it from the begining if it is not.
stop:=!stop
SetTimer,funnyLoop,-1
return
funnyLoop:
if stop
return
Send,{a down}
Sleep,400
if stop
return
Send,{a up}{d down}
Sleep,400
if stop
return
Send,{d up}
SetTimer,funnyLoop,-1
return