How to view VNCviewer screen in foreground during execution.

Asked by Bennil

Hi , I have a vnc server installed laptop and i am trying to connect laptop machine from other machine using sikulix java code using vncviewer class. i want to monitor the execution in foreground mode. currently i am not able to view the vncscreen in foreground. please help on this

Question information

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

The SikuliX VNC feature does not allow to work like a VNCViewer.

The respective class is VNCScreen according to the docs:
http://sikulix-2014.readthedocs.io/en/latest/screen.html#connecting-to-a-vnc-server-vncscreen

A VNCScreen has the same features as class Screen/Region, but only against a remote screen using a VNC session.

Revision history for this message
Bennil (mbennill) said :
#2

Thanks for your reply. What is the purpose of VncViewer.Showscreen() in sikulix?. to show the currenn vncscreen in foreground mode?

Revision history for this message
RaiMan (raimund-hocke) said :
#3

Not sure, what you are talking about:
VncViewer.Showscreen()

I cannot find this "feature" in the current SikuliX (> 1.1.1)

Revision history for this message
Bennil (mbennill) said :
#4

I am using Sikuli 1.1.1 version java.

I am using the below mentioned code. PFB for your reference
VNCScreen vnc= VNCScreen.start("**.**.**.**",5900,"*****",5000,5000);
vnc.showScreen();

i want to view my vnc screen during execution?..do this code works.

Revision history for this message
RaiMan (raimund-hocke) said :
#5

--- vnc.showScreen();
Such a feature has never been in the SikuliX classes and is not in the current version (which is the same since 1.1.1 based on TigerVNC)

--- i want to view my vnc screen during execution?
as mentioned: not a SikuliX feature (... and will never be)

You might run a normal VNC-viewer or an RDP-client and run SikuliX scripts against the VNC/RDP window.

Revision history for this message
Bennil (mbennill) said :
#6

So open a desktop via VNCViewer class will only run in background mode rite?.

Revision history for this message
RaiMan (raimund-hocke) said :
#7

--- So open a desktop via VNCViewer class will only run in background mode rite?.
I am not sure, what you are talking about.
VNCViewer is nothing related to SikuliX.

See your other recent questions.

Can you help with this problem?

Provide an answer of your own, or ask Bennil for more information if necessary.

To post a message you must log in.