sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #52171
Re: [Question #682155]: Callback when an observation timeout
Question #682155 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/682155
Status: Open => Answered
RaiMan proposed the following answer:
If there is nothing else to do during the onChange-observation, then
just use the normal observe() which just waits for the success or
finally the timeout.
success = false
def changed(event):
global success
success = true
print "something changed in ", event.region
my_region.onChange(50, changed)
my_region.observe(10)
if success:
pass # do something
else:
pass # do something else
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.