← Back to team overview

sikuli-driver team mailing list archive

[Question #254218]: timeOut

 

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

 Pattern a = new Pattern("D:\\Automação Sikuli\\trunk\\Imagens Config\\Drivers\\DriversIR\\17_LN40A550P.png");
        Screen s = new Screen();
       Region b = s.selectRegion();
        b.setAutoWaitTimeout(3);
        System.out.println(b.getAutoWaitTimeout());
        System.out.println(Settings.AutoWaitTimeout);
        try
        {
            if(b.exists(a.similar((float) 0.98),3) != null)
            {
                System.out.println("oi");
            }
            System.out.println("xau");
        }
        
        catch(Exception e)
        {
             System.out.println(e);
        }

Is there anything wrong with this code?

Because when the Sikuli didn't find the image my application is not finished, it's still running even I set time out up.

Tks.


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