← Back to team overview

sikuli-driver team mailing list archive

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.