Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 06:19

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Autoit Loop break and restart

Discussion on Autoit Loop break and restart within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
Garkeon's Avatar
 
elite*gold: 0
Join Date: Sep 2011
Posts: 10
Received Thanks: 2
Autoit Loop break and restart

Hello guys.

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!
Attached Files
File Type: rar Juggernaut Farm Bot.rar (66.7 KB, 21 views)
Garkeon is offline  
Old 04/30/2013, 20:29   #2
 
butter123's Avatar
 
elite*gold: 95
Join Date: May 2011
Posts: 982
Received Thanks: 189
exitloop
butter123 is offline  
Old 04/30/2013, 21:15   #3
 
Garkeon's Avatar
 
elite*gold: 0
Join Date: Sep 2011
Posts: 10
Received Thanks: 2
Quote:
Originally Posted by butter123 View Post
exitloop
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
Garkeon is offline  
Old 04/30/2013, 21:34   #4
 
butter123's Avatar
 
elite*gold: 95
Join Date: May 2011
Posts: 982
Received Thanks: 189
while 1
for $i = 0 to x
aljsdlkajsd
next
dfggf
wend
butter123 is offline  
Old 04/30/2013, 22:05   #5
 
FacePalmMan's Avatar
 
elite*gold: 0
Join Date: Jan 2013
Posts: 426
Received Thanks: 129
while 1
while 1
Your script.
wend
wend
FacePalmMan is offline  
Reply


Similar Threads Similar Threads
[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)



All times are GMT +1. The time now is 06:20.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.