I need to schedule a task every so many weeks, like every 2 weeks or every 4 weeks for example. Is there a way to do that in RoboTask?
Currently I use the monthly Task Schedule and once the task executes (I send myself and email notification), I go back into the task and re-schedule the task for the next execution - 4 weeks later.
I have version 3.2.
The windows scheduler provides such a scheduling process within the weekly schedule selection.
I have asked that this be added to RoboTask but with no result. I would upgrade to version 3.4 but there is nothing there I need.
Task Scheduling
Task Scheduling
I think you can do it by the following algorithm:
make global variable, suppose TaskFlag. Set it to 0
The task will be so:
If TaskFlag = 0 then
...
do something
...
end if
Increment variable TaskFlag by 1
If TaskFlag >= 3 then
Set TaskFlag to 0
end if
Attach the scheduler to this task on weekly basis.
This task will execute necessary code on each third week.
Of course you have to use Different variables for different tasks.
Also you need to use global variables, because global variables keeps own values between task launchings and RoboTask sessions.
make global variable, suppose TaskFlag. Set it to 0
The task will be so:
If TaskFlag = 0 then
...
do something
...
end if
Increment variable TaskFlag by 1
If TaskFlag >= 3 then
Set TaskFlag to 0
end if
Attach the scheduler to this task on weekly basis.
This task will execute necessary code on each third week.
Of course you have to use Different variables for different tasks.
Also you need to use global variables, because global variables keeps own values between task launchings and RoboTask sessions.
Task Scheduling
This looks like coding to me which seem overly complicated to do a simple thing.
Since this is not something RoboTask will support in the scheduler, I am forced to use the windows scheduler which does this type of scheduling to kick off the Robotask job.
Since this is not something RoboTask will support in the scheduler, I am forced to use the windows scheduler which does this type of scheduling to kick off the Robotask job.