sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #29185
Re: [Question #257034]: Returns and continuation in the script
Question #257034 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/257034
Status: Open => Answered
RaiMan proposed the following answer:
while True: # some endless loop
m = random.randint(1, 3)
if m == 1:
type("some text"+Key.ENTER)
if m == 2:
break # jumps after the end of the loop
if m == 3:
continue # jumps to the loop intro (while True:)
# here your script continues
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.