sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #07188
Re: [Question #179795]: can't figure out looping
Question #179795 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/179795
Description changed to:
I want to scan through a page looking for an image.
when image is found,
click the image,
then keep scanning.
this seems to be VERY hard to figure out,
as I see many many questions asking this same question.
always the same answers...
there is no understandable answer!
I don't want it to stop!
It keeps stopping!
so after looking through these sections I have this:
while not exists("loadmorecomm-2.png",0):
type(Key.PAGE_DOWN,0)
while exists("loadmorecomm-2.png",0):
click("loadmorecomm-2.png",0)
type(Key.HOME)
# i want this to keep going, and it will not DO IT!!!!!!!!!!!!!!
this doesn't do it, because I can't figure out how to get it to start
over and keep running.
I do not want it to stop!
It should not stop!
I did not tell it to stop,
why does it insist on stopping?????
from what I can tell that code needs to be nested inside something but I
don't understand how to do this.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.