sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #18352
Re: [Question #229825]: do an action if the image on a region doesn't change
Question #229825 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/229825
Status: Open => Answered
j proposed the following answer:
you can use the onChange listener to do this, if you don't know how your
image looks like:
def handler(event):
print "the region changed:"+`event`
region.onChange(handler, 10)
region.observe(5)
This will observe the region for 5 seconds and execute the script that
is defined in the handler() method if the region changes during that
time
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.