← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #265844]: how to use loop for taking screen shots till a image appears

 

Question #265844 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/265844

    Status: Open => Answered

RaiMan proposed the following answer:
Region reg = <the region where you expect the image to appear>; # might be the screen
reg.setWaitScanrate(1/30); # only search every 30 seconds
reg.wait(<the image>, FOREVER)

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