sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #32811
Re: [Question #267859]: Rewind code
Question #267859 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/267859
Status: Open => Answered
RaiMan proposed the following answer:
SikuliX script "talks" Python language.
In your case you either have to use
- try: .. except: to catch exceptions
- if...:... else:...
- while:... for...:...
to script alternative or repetitive code depending on some conditions.
if not exists(someImage):
# do something
else:
# do something else
try:
find(someImage)
# do something
except FindFailed:
# do something else
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.