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

    Status: Open => Answered

Jeremy proposed the following answer:
If I'm reading it right, this is what I do:


int error_count = 0;
while(s.exists(screenImage,0) == null){
Thread.sleep(500);
error_count++;
//sometimeout number
if (error_count > 10)
return false; //program was stuck and didn't work. Try again.
}

I usually have other fanciness that happens so I put in a timeout or
looking for other options.

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

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to