sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #55917
Re: [Question #693015]: Capture only happens at beginning of VNCScreen.start
Question #693015 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/693015
Description changed to:
Hey,
I am running sikuli 1.1.3 and want to operate on a remote computer via
VNC and capture the screen after each action i do.
Here is my java code:
VNCScreen vncSesh = VNCScreen.start(remoteIP, 5900, "password", 10, 10);
Pattern pattern = new Pattern("imgs/test1.png");
Region cap1 = vncSesh.newRegion(0, 0, 500, 500);
ScreenImage img1 = vncSesh.capture(cap1);
img1.save("/Pictures/");
vncSesh.wait(0.5);
vncSesh.click(pattern);
vncSesh.wait(0.5);
Region cap2 = vncSesh.newRegion(0, 0, 500, 500);
ScreenImage img2 = vncSesh.capture(cap2);
img2.save("/Pictures/");
vncSesh.stop();
The click will WORK as i watch it on a seperate VNC session with VNC
Viewer.. but both captures look the same (and its resembling before the
click happened)
Im testing this by looking a stopwatch on the remote computer and the
time of the stop watch in the capture is before the click happens.
If i dont do the Region and capture before the click, then i do see the
capture after the click happened. So why am i getting the same capture
twice when i use capture before and after the action?
Am i doing something wrong or this is a known bug with Sikuli 1.1.3 ?
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.