Question #160813 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/160813
Status: Open => Answered
RaiMan proposed the following answer:
Sorry, it is always tricky to guess someones programming knowledge.
May be you know it: Sikuli talks Python. So all language aspects of
Python apply.
One of the big disadvantages of this forum is, that you cannot use the
tab-key to show indentations correctly.
Sorry, but I thought it was obvious ;-) condition has to be replaced by
some expression that returns True or False.
if exists("some-image.png"):
click("something.png") # 1 tab indented
else:
click("something-else.png") # 1 tab indented
sleep(5)
click( )
sleep(5)
conclusion:
to make more complex scripts with Sikuli you have to:
- know the basics of the Python language
(if/elif/else/while/for/try/except/def/...)
- know how to indent/dedent with the tab-key/shift-tab-key
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.
_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help : https://help.launchpad.net/ListHelp