sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #45324
Re: [Question #662498]: Run same script to a greater extent
Question #662498 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/662498
Status: Open => Answered
masuo proposed the following answer:
define function and call that function in while loop.
def script1():
click("1514867348422.png")
if exists("1514867386964.png"):
while not exists("1514871869228.png"):
wait(10)
click("1514867400749.png")
type(Key.TAB, KeyModifier.SHIFT + KeyModifier.ALT)
else:
popup("Script done.")
for i in range(10):
script1()
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.