My AHK script is not opening

Ask gaming related questions (AHK v1.1 and older)
MyLastAltsrrsly
Posts: 2
Joined: 21 Jan 2022, 02:49

My AHK script is not opening

Post by MyLastAltsrrsly » 21 Jan 2022, 03:13

whenever I click my code this pops up (see file I attached)
my code is:

Code: Select all

pause 
loop {
send, 1
send, 2
send, 3
sleep 1
}
[::pause
Attachments
Screenshot 2022-01-21 161048.png
Screenshot 2022-01-21 161048.png (5.75 KiB) Viewed 394 times
Last edited by BoBo on 21 Jan 2022, 03:27, edited 1 time in total.
Reason: Added [code][/code]-tags.

BoBo
Posts: 6564
Joined: 13 May 2014, 17:15

Re: My AHK script is not opening

Post by BoBo » 21 Jan 2022, 03:25

So why not follow the advice that is given at this popup? :think: :arrow: #SingleInstance, and btw, Sleep is using milliseconds, so you're sleeping there 1/1000 of a second! Let's guess that wasn't the delay you were going for ... ;)

MyLastAltsrrsly
Posts: 2
Joined: 21 Jan 2022, 02:49

Re: My AHK script is not opening

Post by MyLastAltsrrsly » 21 Jan 2022, 03:55

BoBo wrote:
21 Jan 2022, 03:25
So why not follow the advice that is given at this popup? :think: :arrow: #SingleInstance, and btw, Sleep is using milliseconds, so you're sleeping there 1/1000 of a second! Let's guess that wasn't the delay you were going for ... ;)
I'm not experienced in coding and that script was given by a friend and AHK was recommended to me so I can afk farm resources in video games

User avatar
boiler
Posts: 16925
Joined: 21 Dec 2014, 02:44

Re: My AHK script is not opening

Post by boiler » 21 Jan 2022, 07:04

Do you realize that the other thing it is telling you is the script is already running, so you don’t need to run it again? There will be an icon in the system tray area of your taskbar when it’s running. It will be green when not paused and red when paused. You can right-click on it and choose the option to exit the script when you no longer want it running at all.

Post Reply

Return to “Gaming Help (v1)”