Capture only happens at beginning of VNCScreen.start

Asked by Ben weiss

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.

The capture.save() always seems to be a picture right when the VNC session starts. Its never a picture of the moment i call capture which is what im looking to accomplish.

Am i doing something wrong or this is a known bug with Sikuli 1.1.3 ?

Question information

Language:
English Edit question
Status:
Expired
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Ben weiss (benjimyma) said :
#1

even if i do the vncSesh.capture() only after the click happens, it still resembles a picture before the click ever occured (seems to be right when the VNC session started).

using waits/sleeps dont make a difference.

i am going to assume this is an issue with Sikuli 1.1.3. im only using this version because of work environment constraints i have with installing the OpenCV required for Sikuli 2.0.x.

if no one is able to verify that this is not a bug with Sikuli 1.1.3 then we can consider this closed.

Revision history for this message
Launchpad Janitor (janitor) said :
#2

This question was expired because it remained in the 'Open' state without activity for the last 15 days.