Abaddon Posted March 2, 2007 Posted March 2, 2007 Hey guys, I want my script to do a function when it reaches the last line of the file. Please ignore the fact that this is a d2 channel bot. $currentchan = $currentchan + 1 While 1 _MouseClickPlus( "Diablo II", "left", 95, 473) Sleep(1000) _MouseClickPlus( "Diablo II", "left", 580, 483) Sleep(3000) ControlSend("Diablo II", "", "", "{BS}") Sleep(500) $channel = FileReadLine("spamchannels.ini", $currentchan) ControlSend("Diablo II", "", "", $channel) Sleep(500) ControlSend("Diablo II", "", "", "{ENTER}") Sleep($delay) ControlSend("Diablo II", "", "", $spam) Sleep(500) ControlSend("Diablo II", "", "", "{ENTER}") WEnd Note: That is only part of the script but I think thats all you should need. Thanks for your help.
Zedna Posted April 9, 2007 Posted April 9, 2007 $channel = FileReadLine("spamchannels.ini", $currentchan) If @error = -1 Then MsgBox(0,'Info','end-of-file is reached') Resources UDF ResourcesEx UDF AutoIt Forum Search
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