sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #40959
Re: [Question #406532]: cant temporarily stop event observations
Question #406532 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/406532
Status: Open => Answered
RaiMan proposed the following answer:
really read the docs?
the minimum is:
def handler(evt):
print evt
regionX.onChange(handler) # the event to observe
regionX.observe(FOREVER, background=True) # now observe in background
following this has to be something, that keeps the script alive
version 1.1.1 has some additional features to better control what should
happen.
The challenge in your case is to coordinate the actions in the handler
with what the main script does.
... BUT NEVER EVER start an observer in an handler !!!
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.