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

    Status: Open => Answered

RaiMan proposed the following answer:
If I understand right:

while True:  #Point A
    gotoPointA = False
        if not exists(img1, 0):
                wait(img2, FOREVER)
                click(img3)
                continue
        else:
                if exists(img1, 0):
                wait(img2, FOREVER)
                click(img4)
        while True:  #Point B
                if not exists(img1, 0):
                        wait(img2, FOREVER)
                        click(img3)
                        # continue # Want to restart from point A, not point B
                        gotoPointA = True
                        break
                else:
                        if exists(img1, 0):
                        wait(img2, FOREVER)
                        click(img5)
                        break
        if gotoPointA: continue

-- 
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

Reply via email to