Keypress repeat every 10 seconds Topic is solved

Ask gaming related questions (AHK v1.1 and older)
zeekza

Keypress repeat every 10 seconds  Topic is solved

13 May 2018, 08:16

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.
Rohwedder
Posts: 7687
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: Keypress repeat every 10 seconds

14 May 2018, 06:40

Hallo,
try:

Code: Select all

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

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: Bing [Bot] and 29 guests