sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #16974
Re: [Question #223689]: if fail, continue another script, when done, start first again
Question #223689 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/223689
Status: Open => Answered
RaiMan proposed the following answer:
for i in range(10):
click("1362600377681.png")
wait(1)
click(Pattern("B.png").targetOffset(167,-100))
# wait("lIm.png",2000) # the following instead
if not exists("lIm.png",2000):
click()
click()
wait()
click()
continue # jumps back to the for
click(Pattern("I0.png").targetOffset(60,38))
click(Pattern("lahIr0lIlMIM.png").targetOffset(2,31))
click(Pattern("_i.png").targetOffset(-37,-2))
.....
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.