← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #258583]: Is it Possible to verify certain Region(Size Not Fixed) is Blank(White Space) ?

 

Question #258583 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/258583

    Status: Open => Answered

RaiMan proposed the following answer:
to have no problems with observe, you should use version 1.1.0

try this

def handler(e):
  # do what is needed
  repeat(2) # continue observe after 2 seconds to make sure, the region is white again

region.onVanish("imageOfTheWhiteSpace.png", handler)
region.observe(FOREVER, True) # run in background

more information in this question:
https://answers.launchpad.net/sikuli/+question/258197

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.