PDA

View Full Version : .NET Programming with Remote Desktop


Norseman
07-17-2009, 10:15 AM
Hey all,

Recently I've been trying to automate logging into a Remote Desktop Connection and have been having really limited, and inconsistent, results. I've tried using Ranorex to get the forms and controls to click, but every now and then it just won't find a control for no reason. Sometimes I can click a button 2 or 3 times before it finds the control it should.

So that leads me to my next idea: is there an easy way for me to use a Remote Desktop Connection from code? Basically what I want to do is remote connect to another PC and run an application I have on that machine. It sounds like something pretty simplistic, but it's been a huge headache. So far anything I've found dealing with Remote Desktop in code is tons of forms, controls, and components. I really don't want this to turn into a huge project, I just need to run a simple .exe on a client machine.

Thanks in advance for any help!

Ryan6491
07-17-2009, 06:10 PM
I knew I just read about this...

From the July 2009 of MSDN Magainze, http://terminals.codeplex.com/

It's an open source .NET based RDP client using the Terminal Services ActiveX Client (mstscax.dll). Don't know if it contains the code you're looking for, but I'd take a look.