← Back to team overview

sikuli-driver team mailing list archive

[Question #254030]: Exists

 

New question #254030 on Sikuli:
https://answers.launchpad.net/sikuli/+question/254030

I'm programming in Java and when I use the code below the pattern isn't find and don't execute the "if"

--Match ok;
--Pattern automatico = new Pattern(path + "automatico.png");

--screen.click(Auxiliares);
--ok = screen.find(automatico);
--if(ok != null) 
--{                   
--      screen.click(automatico);                    
--}


If I change (ok = screen.find(automatico); ) by (ok = screen.exists(automatico,0);) the "if" is done.

Is there something wrong?

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