← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #235392]: If else

 

Question #235392 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/235392

    Status: Open => Answered

RaiMan proposed the following answer:
Want to do more complex things like just a row of clicks and waits?
You have to get some basic Python knowledge (see faq 1858)
For indentation see: faq 1800

for i in range(153):
    if not exists(image0):
        type(Key.F5)
        continue
    # your stuff on indent level 1
    click image1, 
    then wait 1sec, 
    click image2, 
    click image3, 
    wait 3s, 
    press F5

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.