sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #22204
Re: [Question #238811]: How to repeat action unitil an image appears and then resume script?
Question #238811 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/238811
Kevin posted a new comment:
I'm still having a bit of a problem actually.
I want it to keep pressing RIGHT until the image appears and then to click the image and go back into the loop.
The following script only presses the arrow button once and then moves
onto the "else" part
while True:
(MAIN SCRIPT PRESENT)
if not Region().exists(.png):
type(Key.RIGHT)
else:
click(.png)
(repeat script)
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.