Re: [Sikuli-driver] [Question #217350]: Regarding usage of observe

2012-12-21 Thread RaiMan
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.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #217350]: Regarding usage of observe

2012-12-21 Thread j
Question #217350 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/217350

j posted a new comment:
Observers can also be a lot faster when you want to search for more than one 
image at once. 
If you run a find() five times, it takes five times as long as one find() takes 
(obviously). 
If you run an observer with five images, the search will still be about as long 
as one find(), provided all used images are found in the same time.

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

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp