DozeR Posted January 11, 2015 Posted January 11, 2015 Hi everyone. I'm trying to make an infinite loop, with various commands, but sometimes it works JUST 1 time, sometimes it just DON'T work. Here's the CODE: $attack= "2" ;press key '2' $HPpotion= "5" ;press key '5' $FindTgt= "z" ;press key 'z' $LootAll= "{SPACE}" ;press key 'SPACE' HotKeySet("{ESC}", "Stop") ;Set the 'ESC' key to exit the program ; this will bring the CABAL window to the foreground and activates WinActivate("CABAL") WinWaitActive("CABAL") ; infinite loop While 1=1 Send($FindTgt) ; press key 'z' - Find mob Sleep(1000) Send($HPpotion) ; press key '5' - Refill HP Sleep(500) Send($attack) ; press key '2' - Attack mob Sleep(10000) Send("{" & $LootAll & " 5}") ; press 'SPACE' - Auto-loot x5 Sleep(1000) WEnd ; our function to exit the program Func Stop() Exit EndFunc So, can PLEASE somebody explain me what's wrong? P.S. I'm new on AutoIT World, so please, don't troll me.
Developers Jos Posted January 11, 2015 Developers Posted January 11, 2015 On 1/11/2015 at 10:09 AM, DozeR said: P.S. I'm new on AutoIT World, so please, don't troll me. It is pretty clear you are new in our forums as it seems you missed ready our forum rules with relation to game botting. Please do this first before posting again. Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
Recommended Posts