sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #56887
Re: [Question #695876]: repeating findBest question
Question #695876 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/695876
Status: Open => Answered
RaiMan proposed the following answer:
findBest returns only one Match object like exists does (it is the one with the highest match score of all images found).
For each image it only looks once. This is done for all images in parallel.
images = {img1,img2,img3)
match = findBestList{images)
if match:
print "found: %d" % match.getIndex()
click(match)
see: https://sikulix-2014.readthedocs.io/en/latest/region.html#find-
more-than-one-image-in-a-region-at-the-same-time
With 2.0.5 there are also available: waitBest/waitBestList and
waitAny/waitAnyList, that take as first parameter the max time to wait
for matches (not yet in the docs :-(
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.