I need help with this script...

Ask gaming related questions (AHK v1.1 and older)
RaptorClaw592
Posts: 6
Joined: 23 Sep 2018, 09:25

I need help with this script...

06 Oct 2018, 09:51

Okay, I have a script (inspired by Rohwedder's script. link: https://autohotkey.com/boards/viewtopic ... 18&t=57011)

Here's my script:

Code: Select all

F1::
Loop, {
Send, 3
Sleep, 300000
Send, 3
Sleep 1000
Send, {Space Down}
Sleep, 1000
Send, 3
Sleep, 300000
}


F5::Exitapp
Okay, so basically, I want my script to Loop this: click 3, wait 5 minutes, hence the "300000" miliseconds, click 3 again, click the space button, then click 3 again. (the "F5::Exitapp" is my killswitch.)

Now, my script works, EXCEPT that is doesn't loop... Can anyone find out why it does not loop?

Thanks in advance!
swagfag
Posts: 6222
Joined: 11 Jan 2017, 17:59

Re: I need help with this script...

06 Oct 2018, 12:25

how do u figure it doesnt loop?
RaptorClaw592
Posts: 6
Joined: 23 Sep 2018, 09:25

Re: I need help with this script...

06 Oct 2018, 19:24

swagfag wrote:how do u figure it doesnt loop?


If I run it, it won't loop... it just stops after the first time it runs.
RaptorClaw592
Posts: 6
Joined: 23 Sep 2018, 09:25

Re: I need help with this script...

06 Oct 2018, 19:41

swagfag wrote:how do u figure it doesnt loop?
I'm sorry to waste your time... I have just realized I am an idiot. I fixed the code, and it loops now. I removed the:

Code: Select all

Send, 3
Sleep, 1000


So... yah.... the fixed code is:

Code: Select all

F1::
Loop,
{
Send, 3
Sleep, 30000
Send, 3
Sleep 1000
Send, {Space Down}
Sleep, 1000
}


F5::Exitapp

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: jameswrightesq and 165 guests