sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #30988
Re: [Question #263456]: sikuli find same image in screen
Question #263456 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/263456
Status: Open => Answered
RaiMan proposed the following answer:
count = 0
try:
matches = list(findAll(the empty checker box image))
count = len(matches)
except FindFailed:
pass #nothing to do
print "found:", count
if count > 0:
sortedMatches = sorted(matches, key=lambda m:m.y) # sorts top to bottom
hover(sortedMatches[-1]) # take the last one
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.