turbolapp 5 Posted July 11, 2011 Report Share Posted July 11, 2011 What's the best way to start where the bot last left off? So my task manager opens the compiled bot, it runs for an hour and goes through 53 accounts. I would like for the bot to start at #54 when it opens the next hour. and so on. THEN Once it reaches the last account (in total list) I would like it to start over. Quote Link to post Share on other sites
Kreatus (Ubot Ninja) 422 Posted July 11, 2011 Report Share Posted July 11, 2011 Save the list position in a textfile in every loop and at the beginning of your bot put a add to list and pull that list position from that textfile. Quote Link to post Share on other sites
turbolapp 5 Posted July 12, 2011 Author Report Share Posted July 12, 2011 I'm a little more visual. Does anyone have an example? Quote Link to post Share on other sites
Mr.Pibb 0 Posted July 13, 2011 Report Share Posted July 13, 2011 I think this is what you are talking about,run-pause-run.ubot Mr.Pibb Quote Link to post Share on other sites
Kreatus (Ubot Ninja) 422 Posted July 13, 2011 Report Share Posted July 13, 2011 I'm a little more visual. Does anyone have an example? Ok check this resumeposition.ubot When in the middle of the list try to stop and close the bot and run it again. It should resume its last position. 2 Quote Link to post Share on other sites
turbolapp 5 Posted July 16, 2011 Author Report Share Posted July 16, 2011 Sweet. That makes sense I'll work on that now...it will prevent lot of headache. Quote Link to post Share on other sites
turbolapp 5 Posted July 16, 2011 Author Report Share Posted July 16, 2011 Yep works perfectly. I do have a question though...what happens at the end of the list? Will it start over? My list has a couple of thousand line positions and it runs slowly through them, at night so it's hard for me to test this. Quote Link to post Share on other sites
Kreatus (Ubot Ninja) 422 Posted July 18, 2011 Report Share Posted July 18, 2011 You can add an if statement inside the loop where you can set if the list total reach the end of the list it will start over from the start by setting the counting variable to 0. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.