sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #38005
[Question #293565]: 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
New question #293565 on Sikuli:
https://answers.launchpad.net/sikuli/+question/293565
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.
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.