Originally Posted by
Despite
Just wondering what this does?
This keeps the script "idle", meaning it's waiting for an input from the user.
if anyone can tell me how to make the script terminate itslef after the hotkey has been pressed once (so u dont have to press esc yourself) please tell me
Code:
Global
Run("C:Program FilesWorld of WarcraftWorld of WarcraftWoW.exe")
HotKeySet("{BS}", "Go")
HotKeySet("{ESC}", "terminate")
while 1
sleep (100)
WEnd
func Go ()
Send("USERNAME")
Send("{TAB}")
Send("PASSWORD")
Send("{ENTER}")
exit
EndFunc
Func terminate ()
Exit 0
EndFunc
What you could also do, instead of having the script wait for the user to press Backspace, you could use the WinWaitActive function.
Code:
HotKeySet("{ESC}", "terminate")
Run("C:Program FilesWorld of WarcraftWorld of WarcraftWoW.exe")
WinWaitActive("World of Warcraft")
Go()
func Go ()
Send("USERNAME")
Send("{TAB}")
Send("PASSWORD")
Send("{ENTER}")
exit
EndFunc
Func terminate ()
Exit 0
EndFunc