AutoHotKey: Label Does Not Exist

Ask gaming related questions (AHK v1.1 and older)
alphabuffalo
Posts: 2
Joined: 09 Aug 2019, 22:25

AutoHotKey: Label Does Not Exist

09 Aug 2019, 22:31

Hey guys, trying to run this script on World of Warcraft, but can't get it to work. Any ideas appreciated.

Code: Select all

#NoEnv 
SendMode Input 
SetWorkingDir %A_ScriptDir% 
WinGet, wowid, List, World of Warcraft 
F1:: 
SendEactive := !SendEactive 
If SendEactive 
SetTimer Send1, 2200 
else 
SetTimer Send1, On
Return 
Send5: 
ControlSend,, 1, ahk_id %wowid1%
 ControlSend,, 1, ahk_id %wowid2% 
Return
[Mod edit: [code][/code] tags added]
gregster
Posts: 9029
Joined: 30 Sep 2013, 06:48

Re: AutoHotKey: Label Does Not Exist

09 Aug 2019, 22:40

Welcome to the forum!

You are calling a label named Send1 with SetTimer, while the actual label seems to be called Send5.
That's the reason for the error message "Label Does Not Exist" - the label Send1 does not exist in your script.

Btw, do you really want SetTimer Send1, On and not SetTimer Send1, Off ?
alphabuffalo
Posts: 2
Joined: 09 Aug 2019, 22:25

Re: AutoHotKey: Label Does Not Exist

10 Aug 2019, 01:09

gregster wrote:
09 Aug 2019, 22:40
Welcome to the forum!

You are calling a label named Send1 with SetTimer, while the actual label seems to be called Send5.
That's the reason for the error message "Label Does Not Exist" - the label Send1 does not exist in your script.

Btw, do you really want SetTimer Send1, On and not SetTimer Send1, Off ?
Ah, SetTimer was actually meant to be set off, it was a last resort I tried, but it still didn't work. I see my mistake now, and I facepalmed when you mentioned it. Thank you! Everything works perfect now.

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: No registered users and 97 guests