sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #12353
Re: [Question #204946]: how to loop
Question #204946 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/204946
Status: Answered => Solved
Benjii Tiu confirmed that the question is solved:
Yehey.... your trick worked... Im just new to this sikuli, so i wanted
some samples just to get through the loop.... actually, i had a sample
here, but did not properly know how to do it correctly... this is the
sample i found in some forums.
for i in range(10):
if exists():
click()
sleep(5)
else:
click()
sleep(5)
click()
sleep(5)
so to properly work, they don't need to be on the same line, you need to click tab, so that it would work.... ah!
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.