help needed , how to make endless loop

Discuss RoboTask here
Post Reply
m33Lucky
Posts: 1
Joined: Sun Jan 25, 2015 1:02 am

help needed , how to make endless loop

Post 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
Oleg
Site Admin
Posts: 3202
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Re: help needed , how to make endless loop

Post 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 10061 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.
Oleg Yershov
Post Reply