sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #09695
Re: [Question #192637]: Error when using "while areamsp.inside().exists("1333547327734.png").similar(0.6)"
Question #192637 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/192637
Status: Open => Answered
RaiMan proposed the following answer:
--- exists() returns a Match object ...
... and .similar() is a feature of the Pattern class, that can be used instead of plain image files
while areamsp.exists(Pattern("1333547327734.png").similar(0.6)):
inside() is redundant with Sikuli X (only for backward compatibility).
--- click(find.region) ...
... is simply nonsense ;-)
Might be a good idea to read through the docs, before guessing around.
Now I am guessing what you might have meant:
while areamsp.exists(Pattern("1333547327734.png").similar(0.6)):
click(areamsp.getLastMatch())
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.