03-31-2022 03:55 AM
Hi all,
I want to integrate Windows Remote Desktop Connection application with our LabVIEW code. as I understand we can do that through AciveX Control, but i could not understand how to select the methods or properties of that Active X control.
Please help me.
Thanks in advance.
03-31-2022 06:40 AM
@KiranTeja wrote:I want to integrate Windows Remote Desktop Connection application with our LabVIEW code. as I understand we can do that through AciveX Control, but i could not understand how to select the methods or properties of that Active X control.
That might not be possible in pure LabVIEW.
Here Remote Desktop using C#.NET - CodeProject it mentions:
Due to security reasons, you have to implement an interface (
IMsTscNonScriptable
) to cast it separately.
Other then that showstopper it's pretty straightforward, but you have to start with a front panel ActiveX object.
04-01-2022 01:17 AM
Hi wiebe@CARYA,
as you suggested I tried but, I am getting the screen as below and after 2 or 3 seconds it's disappearing. I am not getting where should I write
"Due to security reasons, you have to implement an interface (IMsTscNonScriptable
) to cast it separately." part. and not how to append the scree into activex container.
04-01-2022 05:12 AM
@KiranTeja wrote:
Hi wiebe@CARYA,
as you suggested I tried but, I am getting the screen as below and after 2 or 3 seconds it's disappearing. I am not getting where should I write
"Due to security reasons, you have to implement an interface (
IMsTscNonScriptable
) to cast it separately." part. and not how to append the scree into activex container.
Do you mean you get a remote desktop connection?
If so, you can skip all the comments about IMsTscNonScriptable...
You didn't post all your code (only a partial image). If the screen disappears it's probably something you do or need to do on the left of the VI, the part we cant see.
04-01-2022 05:19 AM
Actually I am not getting the connection. please go through the VI which I am sharing. you can understand it clearly
04-01-2022 05:48 AM
If you're not getting a connection, we're back to the part where " you have to implement an interface (IMsTscNonScriptable
) to cast it separately." is a showstopper.
Showstopper as in stopping the show... As in not possible.
At least, I see no easy way out.
Best bet is to use C\C++ to "implement an interface (IMsTscNonScriptable
) to cast it separately.".
Or maybe to look for a .NET wrapper or other replacement.
04-01-2022 06:02 AM - edited 04-01-2022 06:05 AM
Do note that there's no forced sequence between setting the bottom properties and the connect
The connect might happen before the password is set. Use 1 error wire to synchronize everything in time...
Small change, but who knows.
I don't see why you use Settings5 (resulting in Settings4) to set the AuthentificationLevel, and Settings9 (resulting in a Settings8) to set EnableCredSspSupport and ClearTextPassword. Is there any logic behind it?