sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #49502
[Question #676464]: if find or if exists SyntaxError
New question #676464 on Sikuli:
https://answers.launchpad.net/sikuli/+question/676464
Hello everyone,
I can not find the solution for image search with an IF
The goal is that the action continues if the image is found and the action closes the window if the image is not found.
So I have
if find (image):
rightclick(image)
click(image2)
.......
else:
type(Key.F4, KEY_CTRL)
And here is the error indicated by sikulixide
SuntaxError ("mismatched imput "rightclick expecting indent",)
Error on the line rightclick(image)
I try with if exists(image): (same error)
Thank you in advance for your help.
Have a good day
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.