← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #229562]: code exits

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
an observe(FOREVER) always finishes after the match. It does not "loop" internally.
The script is paused at that point, until the observe finishes.

only a background observe.
observe(FOREVER, true)

will continuously check for appearance and call the handler.
the script continues after the observe (and hence in your case would end also (but the observer in the background will continue until the IDE is stopped (or more generally the parent JVM).

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.