Page 1 of 1

Loop & Sleep then repeat

Posted: 08 Oct 2019, 22:43
by Saiteck
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!

Re: Loop & Sleep then repeat  Topic is solved

Posted: 09 Oct 2019, 03:25
by Rohwedder
Hallo,
try:

Code: Select all

Loop
{
	Loop, 20
	{
		Send, 1
		Sleep, 1000
	}
	Sleep, 10000
}

Re: Loop & Sleep then repeat

Posted: 09 Oct 2019, 17:09
by Saiteck
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 :)