← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #284587]: looping a script forever in Sikulix

 

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

    Status: Open => Answered

Karl proposed the following answer:
while True:
    click("1453202630435.png")
    wait(80)
    wait("1453736008362.png",10),click("1453736008362.png")
    wait("1453202801705.png",25),click("1453202812250.png")
    wait(10)
    Image1 = ("1453723117924-4.png")
    Image2 = ("1453735625632.png")
    while True:
        print('Searching....')
        if exists("1453723117924-5.png"):
            print("1453723117924-6.png")
            click("1453723117924-7.png")
            # Break loop.
            break
        elif exists("1453735625632.png"):
            print("1453735625632.png")
            click("1453735625632.png")
            # Break loop.
            break
        else:
            pass
    wait("1453202882292.png",20),click("1453202898972.png")

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.