← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #217350]: Regarding usage of observe

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
observe is simply a compound implementation to wait for some images to
come up (like wait() ) or vanish (like wait(Vanish()) with the option to
select a specific scan rate (might save a loop) and to define more than
one "visual event" for a region, that are observed in parallel.
Additionally you can watch for changes in a region, for which no other
function is currently available (there is no waitChanged() ).

To implement this with the normal Sikuli features would be possible but
would need much more coding.

On top, you can tell observe to work in the background in parallel to
your proceeding script.

All this taken together, you can right more powerful scripts with less
coding.

What you have to pay, is the somewhat tricky usage with the handler
functions and the (may be needed) communication between the handlers and
the main workflow.

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