Question #184142 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/184142
Status: Open => Answered
RaiMan proposed the following answer:
You have to specify a matching score, to differentiate:
btnChecked = Pattern("image-button-checked").similar(0.99)
(more information: see docs)
if exists(btnChecked):
print "checked"
else:
print "unchecked"
You can check/set your similar setting in the Preview window or use
print find("some-image.png")
to find out the matching score.
--
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