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.
_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help : https://help.launchpad.net/ListHelp