sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #07198
Re: [Question #179795]: can't figure out looping
Question #179795 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/179795
RaiMan proposed the following answer:
Uuups, forget the last comment: you want to keep scanning ;-)
... but you have to take care for some timing and you have to think
about, when and how to finally stop this loop (you always have the
option to abort the script or kill Sikuli's process ;-)
while True:
if not exists("loadmorecomm-2.png",0):
type(Key.PAGE_DOWN,0)
wait(1) # to give time to the scroll down
continue # loop again
# here we come if image is found
click("loadmorecomm-2.png",0)
type(Key.HOME)
wait(1) # to give time to the scroll up to top
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.