sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #59354
Re: [Question #229825]: do an action if the image on a region doesn't change
Question #229825 on SikuliX changed:
https://answers.launchpad.net/sikuli/+question/229825
Steve posted a new comment:
Very old question but it was a top search result for this question.
This can be solved in a much simpler way with:
def CheckForChange(checkRegion,sleepTime):
cap = capture(checkRegion)
sleep(sleepTime)
if checkRegion.exists(cap,0):
print("Still exists, no change")
return False
else:
print("No longer exists, reg changed")
return True
--
You received this question notification because your team Sikuli Drivers
is an answer contact for SikuliX.