sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #37945
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.