seksy Posted September 30, 2006 Share Posted September 30, 2006 Hey Guys, I'm very new to AutoIt, and am trying to tweak this script to work properly. What the script does, is reads a log file of a Bot. And when the bot is disconnected (because it changes areas) the script, re-attaches it, and then begins to bot. Nevertheless, for some reason, its basically skipping most of the scripting and going straight to the error, which will exit the loop. This is the part of the script that I believe is the problem. I'm not sure if its all right. Any help or ideas, would be great. While 1 $line = FileReadLine($file) $text = StringMid($line, 10,17) If $text = "ReadProcessMemory" Then If $inside = 0 Then ClearLog() StartBotting() $inside = 1 ;BG HAS BEEN JOINED! START BOTTING Else ClearLog() ;StopBotting() $inside = 0 Sleep(Random(35000,40000)) ReBG() ;BOT HAS LEFT THE BG! Endif If @error = -1 Then ExitLoop EndIf Sleep(Random(28000,31000)) Send("{SPACE}") WEnd Link to comment Share on other sites More sharing options...
AceLoc Posted September 30, 2006 Share Posted September 30, 2006 Hey Guys, I'm very new to AutoItI can see that. [quote name='AceLoc']I gots new sunglasses there cool.[/quote] Link to comment Share on other sites More sharing options...
Canasian Posted September 30, 2006 Share Posted September 30, 2006 I can see that.I can see that you can see that.The bot is fake! Abandon it and write something from scratch! I don't know what I'm saying.. Kids... drinking is bad... remember that.. Link to comment Share on other sites More sharing options...
seksy Posted September 30, 2006 Author Share Posted September 30, 2006 I can see that you can see that.The bot is fake! Abandon it and write something from scratch! I don't know what I'm saying.. Kids... drinking is bad... remember that..Thanks for the help guys I figured it out, and no its not fake.. Link to comment Share on other sites More sharing options...
AceLoc Posted September 30, 2006 Share Posted September 30, 2006 Thanks for the help guys I figured it out, and no its not fake.. Congrats and dont listen to him.. he got only 10 more posts then you THnk [quote name='AceLoc']I gots new sunglasses there cool.[/quote] Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now