sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #12540
Re: [Question #205802]: Sikuli script doesn't work
Question #205802 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/205802
RaiMan posted a new comment:
@ j-the-k
--- But lambda seems to be much simpler.
yes, but only in those cases, where the inner function body consists of only one expression (this is the limitation of lambda), but it might have n parameters.
In all other cases, your solution is the one, you have to use.
So you could do this:
myExists = lambda i, s : exists(Pattern(i).similar(s))
myExists("some-image.png", 0.95)
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.