Screen capture vnc screen. Is it possible?

Asked by Stephen Carroll on 2018-02-05

Running 1.1.2, wondering if there is a way to capture a vnc remote screen to png file.

Question information

Language:
English Edit question
Status:
Solved
For:
Sikuli Edit question
Assignee:
No assignee Edit question
Solved by:
RaiMan
Solved:
2018-02-07
Last query:
2018-02-07
Last reply:
2018-02-06
Stephen Carroll (scarroll) said : #2

Unfortunately no, it looks like .capture is only a method for Screen objects, not vnc objects. Currently returns a non-filename. I can use another library to work around the requirement. It would be neat for .capture to work on vnc objects in the future though. Just my vote.

This is a very large project. Thanks for all your work!

Best RaiMan (raimund-hocke) said : #3

Not sure, where you are doing what.

In SikuliX there are no "vnc objects".

According to the docs mentioned in comment #1, you get a VNCScreen object, that in turn implements the ISCreen interface.

... and VNCScreen.capture is definitely implemented.

Please give it another try ;-)

Stephen Carroll (scarroll) said : #4

Ahh yes, got it! My syntax was off. Thank you again!