sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #02692
Re: [Question #156531]: Script clicks anywhere even if exists() fails
Question #156531 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/156531
RaiMan proposed the following answer:
one more thing:
In any case I would never use:
doubleClick(exists(picV,0))
since you do not get any feedback if the image is not found.
I always split this into at least two statements, to get a chance to debug it.
exists(img,0)
if getLastMatch(): click(getLastMatch())
else: print "not found:", img
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.