Page 1 of 1

Cyclic triggering event

Posted: Fri May 15, 2020 1:10 pm
by tcarvalho
Is there a way to have the cyclic triggering event stop after successfully completing a task X number of times?

For example if I want my task to complete 100 times automatically (so not having to manually run the task each time) and then stop after successful number of completions; is that possible to script via the current tools provided? If not then I'll post this as a suggestion to incorporate setting a completion counter for the cyclic trigger specifically.

Thanks all!

Re: Cyclic triggering event

Posted: Fri May 15, 2020 2:09 pm
by Oleg
You can make some global counter. When the counter will be greater than 100 you can disable the task.
After your steps put Increment variable action to increment the counter
Use Disable Task action
When you disable the task RoboTask stops all triggers of the task and the task can be running manually only.

Algorithm will be similar to this:

Code: Select all

....
Do something
....
Increment variable MyCounter
if {MyCounter} > 100 then
   disable task (this task)
end if
Of course variable MyCounter must be global variable and set it to 0 before you start cyclic trigger