sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #04733
Re: [Question #168536]: Loop script won't work
Question #168536 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/168536
Mike gave more information on the question:
RaiMan (raimund-hocke) solved my second question about getLastMatch()
It was meant to be like this
click(getLastMatch(img))
# --- this loops as long as img is visible
if exists(img1 , 0):
click(getLastMatch(img))
if exists(img2 ,0):
continue # skip the rest and start next turn
popup("Under ATTACK!")
I got one last problem and my whole script should be complete, I hope!
Just before the loop i got, a wait(img) but when it comes to that it
stops straight away. What i need is for it to wait for that img to
appear, then continue..... Do i need to set a time like wait(700 img) as
would rather not set a time and have it wait till the img appear.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.