Loop & Sleep then repeat Topic is solved

Ask gaming related questions (AHK v1.1 and older)
Saiteck
Posts: 2
Joined: 08 Oct 2019, 22:19

Loop & Sleep then repeat

08 Oct 2019, 22:43

Hey,

I have searched forever it feels like, also trying to make it on my own but I can't seem to get it to work.

I am looking for a code which will Press key 1 every second for 20 seconds, then sleep for 10 seconds and back to pressing 1 again...

Would appreciate any help, Thanks!
Rohwedder
Posts: 7630
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: Loop & Sleep then repeat  Topic is solved

09 Oct 2019, 03:25

Hallo,
try:

Code: Select all

Loop
{
	Loop, 20
	{
		Send, 1
		Sleep, 1000
	}
	Sleep, 10000
}
Saiteck
Posts: 2
Joined: 08 Oct 2019, 22:19

Re: Loop & Sleep then repeat

09 Oct 2019, 17:09

Rohwedder wrote:
09 Oct 2019, 03:25
Hallo,
try:

Code: Select all

Loop
{
	Loop, 20
	{
		Send, 1
		Sleep, 1000
	}
	Sleep, 10000
}
Thx ALOT, it worked perfectly :)

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: No registered users and 99 guests