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.
_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help : https://help.launchpad.net/ListHelp