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.

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to