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

    Status: Open => Answered

RaiMan proposed the following answer:
at 1:
one Region OBJECT -> one observer -> one to many registered events
BeAware: different Region objects might represent the same area on the screen, 
so it is possible, to run more than one observer for the same area on the 
screen (another question is, wether this makes sense).

at 2:
each event registered with a region is for the script runtime (currently there 
is no feature to un-register events) and it is not checked currently, wether 
the event uses the same image and same handler like an already registered event 
(on the list for version 2).
So if you stop the observation and start it again later, all registered events 
are honored again.

at 3: Both onAppear and onVanish immediately call the handler if the respective 
situation is detected:
- on Appear: image there already
- onVanish: image not found at first try

... for the rest see:
http://sikulix-2014.readthedocs.org/en/latest/region.html#observing-visual-events-in-a-region

-- 
You received this question notification because your team Sikuli Drivers
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

Reply via email to