BigEfromDaBX 25 Posted October 24, 2017 Report Share Posted October 24, 2017 How can I run the scheduler between certain hours. For example, I want to run my compiled bot between 8:00am to 6pm every hour. Thanks. Quote Link to post Share on other sites
HelloInsomnia 1103 Posted October 24, 2017 Report Share Posted October 24, 2017 First make a custom command: define MyCommand { alert("hi") } Then go to View -> Scheduler and double click on a time and date box. Then under Event choose the command you want to run an d then the time, tick on Repeat and choose the frequency. Then press the "Run On Schedule" button. Now when you go to compile this bot, under the General options there is a section called "Schedualable Commands" and be sure to check the box next to the command you want to allow scheduling for. Then in the compiled bot you can do the same thing. Quote Link to post Share on other sites
BigEfromDaBX 25 Posted October 24, 2017 Author Report Share Posted October 24, 2017 First make a custom command: define MyCommand { alert("hi") } Then go to View -> Scheduler and double click on a time and date box. Then under Event choose the command you want to run an d then the time, tick on Repeat and choose the frequency. Then press the "Run On Schedule" button. Now when you go to compile this bot, under the General options there is a section called "Schedualable Commands" and be sure to check the box next to the command you want to allow scheduling for. Then in the compiled bot you can do the same thing. I got that part going but it only asks you for a starting period. Then it runs every hour from that starting period. I want it to run every hour from start time to end time. Quote Link to post Share on other sites
HelloInsomnia 1103 Posted October 24, 2017 Report Share Posted October 24, 2017 I got that part going but it only asks you for a starting period. Then it runs every hour from that starting period. I want it to run every hour from start time to end time. You could just check the time and say if its between these times then call another command, and if not then don't do anything.Edit: something like this: define CheckTime { set(#hour,$plugin function("DateTime Manipulation.dll", "$datetime manipulation", $date, "UBOT", "HH", "en-US", "en-US"),"Global") if($both($comparison(#hour,">= Greater than or equal to",8),$comparison(#hour,"<= Less than or equal to",18))) { then { MyCommand() } else { } } } 1 Quote Link to post Share on other sites
BigEfromDaBX 25 Posted October 26, 2017 Author Report Share Posted October 26, 2017 You could just check the time and say if its between these times then call another command, and if not then don't do anything.Edit: something like this: define CheckTime { set(#hour,$plugin function("DateTime Manipulation.dll", "$datetime manipulation", $date, "UBOT", "HH", "en-US", "en-US"),"Global") if($both($comparison(#hour,">= Greater than or equal to",8),$comparison(#hour,"<= Less than or equal to",18))) { then { MyCommand() } else { } } }Thanks. Im going to give it a try. Quote Link to post Share on other sites
BigEfromDaBX 25 Posted October 26, 2017 Author Report Share Posted October 26, 2017 You could just check the time and say if its between these times then call another command, and if not then don't do anything.Edit: something like this: define CheckTime { set(#hour,$plugin function("DateTime Manipulation.dll", "$datetime manipulation", $date, "UBOT", "HH", "en-US", "en-US"),"Global") if($both($comparison(#hour,">= Greater than or equal to",8),$comparison(#hour,"<= Less than or equal to",18))) { then { MyCommand() } else { } } } Worked like a charm 1 Quote Link to post Share on other sites
kill3rbko 12 Posted April 9, 2018 Report Share Posted April 9, 2018 Hello, when scheduling is on, does the bot need to be open all time? Quote Link to post Share on other sites
BigEfromDaBX 25 Posted April 9, 2018 Author Report Share Posted April 9, 2018 Hello, when scheduling is on, does the bot need to be open all time? If the bot (complied bot) is closed then its closed. It doesnt matter what your schedule is. When you schedule it you also have to hit the run on schedule button. Quote Link to post Share on other sites
HelloInsomnia 1103 Posted April 13, 2018 Report Share Posted April 13, 2018 Hello, when scheduling is on, does the bot need to be open all time? Yes but you can use the Advanced Systems plugin by Pash to interact with Windows task scheduler which can open the bot on schedule so it doesn't need to be open. Alternatively you can just make a task manually and call the /auto parameter to have the bot run after startup automatically. 1 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.