Welcome Guest ( Login | Register )



All times are UTC - 7 hours [ DST ]



Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Detecting VNC connection
PostPosted: Fri Jan 20, 2012 1:11 pm 

Joined: Fri Jan 20, 2012 12:55 pm
Posts: 26

Offline
Hi,

Is there a way to detect if a VNC connection is active on a TA-panel?

Hans


 Profile  
 
 Post subject: Re: Detecting VNC connection
PostPosted: Fri Jan 27, 2012 12:09 pm 
User avatar

Joined: Fri Jul 15, 2011 3:21 pm
Posts: 214

Offline
This is possible with script. I've attached a sample project with script you can reference. This is BETA and not be fully tested.


Attachments:
DetectVNC.zip [82.49 KiB]
Downloaded 367 times

_________________
Best Regards,

Beijer Electronics, Inc.
Ron Lloyd | Applications Engineer
 Profile  
 
 Post subject: Re: Detecting VNC connection
PostPosted: Fri Jan 27, 2012 12:11 pm 
User avatar

Joined: Fri Jul 15, 2011 3:21 pm
Posts: 214

Offline
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.

_________________
Best Regards,

Beijer Electronics, Inc.
Ron Lloyd | Applications Engineer


 Profile  
 
 Post subject: Re: Detecting VNC connection
PostPosted: Sun Feb 05, 2012 9:38 am 

Joined: Fri Jan 20, 2012 12:55 pm
Posts: 26

Offline
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


 Profile  
 
 Post subject: Re: Detecting VNC connection
PostPosted: Tue Oct 14, 2014 3:52 am 

Joined: Tue Oct 14, 2014 3:45 am
Posts: 1

Offline
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


 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 7 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: