Page 1 of 1
Detecting VNC connection
Posted: Fri Jan 20, 2012 1:11 pm
by hans gerritsen
Hi,
Is there a way to detect if a VNC connection is active on a TA-panel?
Hans
Re: Detecting VNC connection
Posted: Fri Jan 27, 2012 12:09 pm
by Ron L.
This is possible with script. I've attached a sample project with script you can reference. This is BETA and not be fully tested.
Re: Detecting VNC connection
Posted: Fri Jan 27, 2012 12:11 pm
by Ron L.
iX - Script example, detect connected VNC clients
The following example has been tested on iX-Developer 1.30.445
The enclosed zip-file contains an example showing how to detect if a VNC-client has connected to the VNC server.
The background script code continually monitors the status of the TCP ports on the system, and sets a global tag VncActive accordingly.
When using the example a couple of prerequisites need to be met:
First, you need to add a file to the Referenced Assemblies list, the file you need to add is the OpenNETCF.Net.dll file, found in the Temp/Output directory of any iX-Developer 1.30 project. The enlosed example already has this done.
Second, you need to make sure that the Globals.VNCDetection.StartCheck(); function is executed in the Opened event on the first screen in order to create the timer object that is then used to do the periodical check with.
After that, you simply use the VncActive tag to indicate if a remote VNC-client has connected to the panel or not.
Re: Detecting VNC connection
Posted: Sun Feb 05, 2012 9:38 am
by hans gerritsen
Hi Ron,
This is great! Thanks a lot for the example. I've implemented it and it works fine.
I haven't tried your recommendations on the other questions I had, but I'll try them soon.
Regards,
Hans
Re: Detecting VNC connection
Posted: Tue Oct 14, 2014 3:52 am
by Nayan Dodhia
Hi Ron,
I have tried you code it works super !!
Is it possible to disconnect an active VNC connection ?
Do you have some idea about it ?
Regards,
Nayan