I have wrote a very simple bot (using Autoit) for the game Juggernaut.
Website: s1.jugger.ru (RUS, this bot is for russian server)
Website: (ENG)
The bot is for gathering resources (the script uses just normal mouseclicks, no packets). I wrote the bot using While loop, i want to add a refresh function to my bot. So i want the script to refresh the website every X amount of time and RESTART the while loop (not continue). Adlibregister works, but not completely, it stops the while loop, refreshes the site but then continues the while loop from where it had stopped. I have uploaded my bot and you can see it.
If you did not catch what the question is, here simple: I want the script to break the while loop (every 60 seconds let's say) then do something else (refresh the site in my case) and then RESTART the While loop.
If you have got any ideas please reply.
Thanks!
Exitloop just stops the loop and end's the script. And i want the script to stop the while loop (every X amount of time), do something else and then restart the while loop. Just Exit loop is not a solution, i need to know where and how to insert it.
But still thanks for attention
[AutoIT] Break 07/31/2011 - AutoIt - 12 Replies Hi,
gibs in Autoit ne Funktion/Befehl womit man ne schleife oder ähnlcihes einfach abbrechen kann?
In C++ ist das ja so man macht ein Break hin..
MfG Ludder231
AutoIT Loop/If help needed 06/26/2010 - CO2 Programming - 2 Replies Hello, I'm trying out some AutoIT programming for the first time.
I'm trying to make a very simple mining bot but i got stuck, here's the code for the loop where i am stuck:
While 1
$coord0 = PixelSearch ($pos0, $pos0, $pos1, $pos1, 0xD6A252); Search for CopperOre
If Not @error Then MouseClick ("left", $coord0, $coord0, 1, 15)
Sleep (500)
MouseClick ("left", 450, 450, 1, 20); Drop CopperOre
Sleep (2000)
d2nt bluebird - restart restart restart 06/15/2010 - Diablo 2 - 7 Replies yo, ich hab schon länger 4 bots am laufen, hat auch immer alles relativ gut geklappt, auf 50 runs meist so 3-4 restarts, also ganz in ordnung, und wie ichs so mitbekommen hab waren die meist eh schon gegen ende des games (ja gut, kein baal kill,aber was solls)
seit 2 tagen allerdings funktioniert da überhaupt nix mehr
einer läuft "ziemlich" normal, 8 runs 2 restarts
der nächste 9 runs 7 restarts
dann 19 runs 19 restarts
und 47 runs 47 restarts
dann is natürlich realm down bei allen,...
Autoit - loop TAB key? 01/11/2010 - Perfect World - 4 Replies Hi everyone :confused:
I have try all night to make a tab key work...
here the code;
**********************************************
$title = "Element Client"
$game=WinActivate($title, "")
WinSetOnTop($title, "", 0)
Sleep(1000)
$red = "0xFF0000"
autoit loop not working 02/17/2009 - Silkroad Online - 0 Replies $checksum = PixelChecksum(0,0, 50,50)
While 1
If ControlGetText ("SBot v1.10a (C)2008,2009 by bot-cave.net", "", "Static9") = "Connecting" or "Connected" Then
If not ControlGetText ("SBot v1.10a (C)2008,2009 by bot-cave.net", "", "Static11") = "Login error" Then
If $checksum = PixelChecksum(0,0, 50,50) Then
Else
Sleep(5000)
EndIf
Else
ShellExecute($LoginScriptPath & "\" & $LoginScript, $LoginScriptPath)