← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #213008]: Clueless! loop

 

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

    Status: Open => Needs information

RaiMan requested more information:
Principally ok and should work.

Without knowing, what your problem is (you did not talk about that ;-),
your approach might give more than 1 match, since you always search all
images in a row, and do not stop the search loop after having the first
match.

when coming to the clicks, the first one in the row, that was found,
will click and I guess will change the screen. since you do not prevent
possible futher clicks, these might fail, since the requested image is
no longer visible.

So the solution depends on what you want: 
- find all, but only click the first one found
- find only one (hence the first in the row) and click this one.

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