Page 1 of 1

Keypress repeat every 10 seconds  Topic is solved

Posted: 13 May 2018, 08:16
by zeekza
Hello, I need a script that presses down Left CTRL and R and holds it for about a half second, then I need the script to wait 5 seconds then repeating the process about 3000 times.
I made a script already and it kind of works, except that it wont wait 5 seconds. It just holds down CTRL and R constantly.
Here's the script:

#f11::
Loop 3000
{
sleep, 50000
send {Ctrl Down}{R Down}
sleep 500
send {Ctrl Up}{R Up}
}

I'm not a mastermind when it comes to scripting so help would be appreciated.

Re: Keypress repeat every 10 seconds

Posted: 14 May 2018, 06:40
by Rohwedder
Hallo,
try:

Code: Select all

#f11::
Loop 3000
{
sleep, 5000
send {Ctrl Down}{R Down}
sleep 5000
send {Ctrl Up}{R Up}
}