sending a keys combination till I press a stop key

Ask gaming related questions
ulmus102
Posts: 2
Joined: 28 Oct 2018, 02:49

sending a keys combination till I press a stop key

28 Oct 2018, 03:05

Hi, I'd like to create a script that will send keys: "1", "2", "3" every 4 second with random delay between them after I press "s" untill I press "d".

Is it possible to disable the script while I'd like to chat with somebody?

Can someone help me?
User avatar
Coderooney
Posts: 42
Joined: 23 Mar 2017, 22:41

Re: sending a keys combination till I press a stop key

28 Oct 2018, 22:18

Sure someone can help you!:

S | Start
D | Pause/Unpause
Ctrl + Shift + Alt + D | Disable so you can type normally

Code: Select all

^!+d::Suspend

d::Pause

s::
Loop {
    Loop, 3 {
        Send %A_Index%
        Random, sleepTime, 100, 1000
        Sleep, %sleepTime%
    }
    Sleep, 4000
}
Have fun counting down race starts or whatever you're using this for lol.
ulmus102
Posts: 2
Joined: 28 Oct 2018, 02:49

Re: sending a keys combination till I press a stop key

29 Oct 2018, 08:37

Thank you, it's working great :)

Return to “Gaming”

Who is online

Users browsing this forum: swagfag and 11 guests