← Back to team overview

sikuli-driver team mailing list archive

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

    Status: Solved => Open

Kevin is still having a problem:
I'm still having a bit of a problem actually.
I want it to keep pressing RIGHT until the image appears and then go back into the loop.

The following script only presses the arrow button and then moves onto
the else part

while True:

if not Region().exists(.png):
       type(Key.RIGHT)
   
else:
click(.png)

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.