← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #177873]: Sikuli Script integration with Java in Eclipse

 

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

RaiMan posted a new comment:
BTW: since a click already makes a find():
                try{
                        s.click("img1/startstart.png");}

                catch(FindFailed e){
                        e.printStackTrace();
                }

... and if you do not really want to deal with FindFailed exceptions, tell Java your main throws FindFailed and get rid of the try/catch stuff - makes code really more readable and you do not loose anything.
get familiar with the exists() function.

Another tip: http://sikuli.org/doc/java-x/

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