mantor 0 Posted May 5, 2010 Report Share Posted May 5, 2010 Does Ubot have some timer function to let say after completed the script then it sit for an hour then re-start again (but the variables still remain in the memory from previous run). Thanks, Quote Link to post Share on other sites
alcr 135 Posted May 5, 2010 Report Share Posted May 5, 2010 You could either schedule the bot with some kind of scheduling software or just put in a delay of 1800 seconds (30 minutes) and then run the sub with your script! Quote Link to post Share on other sites
Frank 177 Posted May 6, 2010 Report Share Posted May 6, 2010 To make even more random, one could do a delay with a random delay between 2,000 and 10,000 seconds - hmmmm. I'm liken it! Frank Quote Link to post Share on other sites
UBotBuddy 331 Posted September 4, 2010 Report Share Posted September 4, 2010 I am liking this solution for a particular project. Is there a Maximum/Ceiling number of seconds to keep in mind? Quote Link to post Share on other sites
Praney Behl 314 Posted September 4, 2010 Report Share Posted September 4, 2010 I haven't had any problems till 5000 secs I used once when playing with google.. So dont think there is a limit.. i guess... Quote Link to post Share on other sites
UBotBuddy 331 Posted September 4, 2010 Report Share Posted September 4, 2010 Good to know. I will probably do a timer within a timer. Quote Link to post Share on other sites
Super Dave 26 Posted September 18, 2010 Report Share Posted September 18, 2010 I've created a timer sub that takes days,hours,min, and or seconds as input then after calculating the seconds needed it'll loop for that number of seconds. Inside my loop however I set variable to display through a UI stat mon so I get a visual display of how many seconds I have to wait. And sharing is caring, so see attached. Inputs are times as well as a message. Use "Resting %time%s..." to display "Resting 20s...", "Resting 19s..." in the #debug variable That said, put this at the end of a loop and you'll have a visual countdown until the next iteration of your loop PS If you rewrite the code, make sure all those seconds are "set local" to avoid conflicts in your code_lib_timer.ubot 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.