Page 1 of 1

help needed , how to make endless loop

Posted: Sun Jan 25, 2015 1:18 am
by m33Lucky
hi much thanks for help given .
im a complete noob , dont know coding , just started with robo task .
i have manage to create a task , with 6 actions
1. move to object
2. click left button
3. delay 15sec
4. move to object
5. click left button
6. delay 10sec
how do i repeat step 1 to 6 endlessly

thanks

Re: help needed , how to make endless loop

Posted: Mon Jan 26, 2015 12:42 pm
by Oleg
You simply can include necessary steps into [urlhttp://www.robotask.com/help/index.php?whileloop.htm]While loop[/url]
See parameters of While loop om screenshot:
whiletrue.png
whiletrue.png (30.65 KiB) Viewed 10062 times
Algorithm will be like this:

Code: Select all

While True
   ......
   Some steps
   ......
end loop 
But pay attention:
I think that this is bad idea to make infinite loop.
It's better attach Cyclic triggering event to your task and it will start your task periodically.