sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #15790
Re: [Question #220602]: Start a loop from a specific point
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.