Page 1 of 1

Run Task Repeatedly Until Manually Stopped

Posted: Sun Jun 09, 2013 5:59 pm
by DEE
I need to run and rerun a task repeatedly until I manually stop it. Is this possible? Maybe I can have the task call itself?

Thanks for your help.

Re: Run Task Repeatedly Until Manually Stopped

Posted: Sun Jun 09, 2013 7:00 pm
by Oleg
You can't call itself from the task. Each task can be started only once.

But there is While Loop. You easily can make infinite loop.
Like this:

Code: Select all

while true
   ....
   put you steps here 
   ....
end loop
Another way (recommended):
You can attach Cyclic trigger to the task. You can set 1 or 2 seconds period.

Re: Run Task Repeatedly Until Manually Stopped

Posted: Sun Jun 09, 2013 7:57 pm
by DEE
Thanks Oleg, the Cyclic trigger would be perfect, except that I never know how long this task needs to complete.

I'll try the loop.

Thanks!

Re: Run Task Repeatedly Until Manually Stopped

Posted: Sun Jun 09, 2013 8:42 pm
by Oleg
DEE wrote:... except that I never know how long this task needs to complete.
This is not a problem. The task will be running only once. Cyclic trigger will start the task only when it will be possible.

Re: Run Task Repeatedly Until Manually Stopped

Posted: Mon Jun 10, 2013 7:35 am
by DEE
Works great, thanks for the quick reply!