← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #674239]: What's really happening when you run exists(Pattern, 0)?

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
surely a timing problem:
it looks like before calling multiPatternExists() there is a click, that might have the function, to show up the content, where the images/patterns should be found.

Since you use exists(whatever, 0), there is no search-repetition until
found, but only one trial. So at the time of the first exists, the
content of the region is not yet ready, but is at the time of the second
exists some ten to hundred millisecs later.

Timing is very important with SikuliX, so if you do some tests like
this, you should report the timing too, to understand the behavior

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.