← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #201377]: i use exist(img, 0) and wait loop to wait a img, but it dose not work

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
Since the code seems to be ok, the only reason for not waiting is, that
something similar shows up.

So try:

       result = exists(Pattern(img).similar(0.95),0)

the similar value can be adjusted up to 0.99 to avoid false positive
matches.

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