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

Hello,
i am trying to have a solution in different cases. what i want ist that waiting 
for 40 secons, if photo 34 exists, should it be cliked in A if 35, on b. i
But it doesnt work correctly. when the Photo 34 exists, it will be cliked int 
A, but if photo 35 exists, it waits though 40 seconds to click.

if((screen.exists("fotos/34.png",40)!=null)||(screen.exists("fotos/35.png",40)!=null)){
                        System.out.println("burada 1");
                        if(screen.exists("fotos/34.png")!=null)
                                screen.click("fotos/A.PNG");
                        if(screen.exists("fotos/35.png")!= null)
                                screen.click("fotos/b.PNG");
                }

-- 
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     : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to