← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #252546]: Script Stopping

 

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

Jonas Maurer proposed the following answer:
use

match = exists(image.png)
if match:
    click(match)

this code will search for the image, and if found, click on it's
location immediately without searching twice.

(do not use exceptions to solve this. It is very bad practice.)

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