sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #07980
Re: [Question #184142]: How can i match my Screen Shot in exact way?
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.