← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #684220]: runscript

 

Question #684220 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/684220

    Status: Open => Answered

Manfred Hampl proposed the following answer:
To repeat forever you can use a construct like this:

runScript(xxx)
while True:
     runScript(yyy)
     runScript(zzz)

If you want the script to terminate at a certain condition, you can
extend it with

runScript(xxx)
while True:
     runScript(yyy)
     runScript(zzz)
     if termination_condition_is_True:
         break

This is simple python, to be found in the manuals, e.g.
https://docs.python.org/

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.