I am ruining Sikulix in a vnc session, and while doing so i am able to find a particular image. But every time i try to click on the particular image ,Sikuli fails to do so

Asked by sayantan

SIkuli-JAVA Script :

      Socket s= new Socket("127.0.0.1", 5937);
        if(s.isConnected())
            System.out.print("ok");
        else
            System.out.print("not ok");

        s.setSoTimeout(1000);

        s.setKeepAlive(true);

        ConnectionController cc = new ConnectionController(s);

        cc.openConnection(0);
        cc.setPixelFormat(0, "Truecolor", 32, 0);

        cc.start(0);

        Thread.sleep(2000);
        VNCScreen vnc = new VNCScreen();
        Region r1=vnc.exists("imgs/COPY.png");

    if (vnc.exists("imgs/COPY.png") != null)
        {

        System.out.println(r1);
        System.out.println("present");
        vnc.getLastMatch().highlight(5);
        vnc.getLastMatch().click();
        int r2=vnc.mouseMove(309, 208);
        vnc.click(r2);

        }
    else
        System.out.println("absent");

   cc.closeConnection(0);
    }
     catch(IOException | InterruptedException e)
        {
            System.out.print("ERRRRORR");
        }

    }

Can someone help on, how to approach in order to solve the problem.

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
sayantan
Solved:
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

that it does not click is a bug, that is fixed in the next nightly 1.1.1 (hopefully today)

Revision history for this message
sayantan (sayantan-bhowmik94) said :
#2

OK, Thanks