← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #293439]: Wait for event in desktop surveillance for specified time and do something if timeout

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
while True:
    if exists("X.png", 10):
        click("X.png")
        break # the loop is terminated here
    else:
        click("Y.png")

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