How do i make this script repeating forever? Topic is solved

Ask gaming related questions (AHK v1.1 and older)
sogsog
Posts: 2
Joined: 08 Dec 2021, 04:13

How do i make this script repeating forever?

Post by sogsog » 08 Dec 2021, 04:31

Code: Select all

Pause On

Send, {a Down}
Sleep, 32200 ;wait 32.2 second (1000 = 1 sec)
Send, {a Up}

Send, {w Down}
Sleep, 1400 ;wait 1.2 second (1000 = 1 sec)
Send, {w Up}

return

Shift & F::Pause

How do i make this script repeating forever? I've tried looking but cannot find any solution, thank you

Rohwedder
Posts: 7627
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: How do i make this script repeating forever?  Topic is solved

Post by Rohwedder » 08 Dec 2021, 05:52

Hallo,
try:

Code: Select all

Pause On
Loop
{
	Send, {a Down}
	Sleep, 32200 ;wait 32.2 second (1000 = 1 sec)
	Send, {a Up}

	Send, {w Down}
	Sleep, 1400 ;wait 1.2 second (1000 = 1 sec)
	Send, {w Up}
}
return

+f::Pause

sogsog
Posts: 2
Joined: 08 Dec 2021, 04:13

Re: How do i make this script repeating forever?

Post by sogsog » 08 Dec 2021, 06:01

Hello,
thanks for the help, but the script you give, it just keep pressing in "a" and the script doesn't press the "w"
Edit: nvm, it just work as i expected, thank you so much! :D

Post Reply

Return to “Gaming Help (v1)”