Jump to content
Sign in to follow this  
darksupernova

Remote Desktop

Recommended Posts

darksupernova

Hi Guys,

I'm very new at all this but have managed to get two or three scripts running, usually by copying or building on something already out there though! However, now I'm stuck, can you help?

I am trying to write a script that will open a remote desktop session and then run a program in that session. Remote desktop is all set up, but every time it runs I need to click 'connect'. Once connected I need a program inside the remote desktop to run.

How do I do this?

I hope you can help!

Share this post


Link to post
Share on other sites
danielcovington

Hmm.. what are trying to accomplish? You may not need to invoke remote desktop in order to run a program on a remote system. Can you elaborate on the whole process you are thinking about.

Share this post


Link to post
Share on other sites
darksupernova

I do not have permission to edit my post :S

So anyway - UPDATE: I have found an option in the Remote Desktop Connection Utility that can start a program on connection! Perfect! Now I just need to:

1) Automate the opening and connection of remote desktop - I plan to use the terminate command with a hot key to close it.

2) Send commands from my bluetooth remote over through remote desktop.

Both of these have me completely stuck!

In reply to Daniel:

I am trying to run a game on my powerful desktop but control it using an old laptop plugged into my tv set up. Surprisingly this works! I was able to manually start remote desktop and smoothly play a game using mouse and keyboard without lag - I was very impressed! Now I just need to automate this process so that I can launch one .exe to do the whole lot for me. My old laptop is my media center running xbmc and I dont have access to use the keyboard or mouse. So the plan is to use the advanced launcher to run the exe (I already do this for simpler tasks so I know it works)Thanks,

Edited by darksupernova

Share this post


Link to post
Share on other sites
Draygoes

Rather than trying to write somthing yourself, have you ever used Teamviewer?


Spoiler

 

"If a vegetarian eats vegetables,What the heck does a humanitarian eat?"

"I hear voices in my head, but I ignore them and continue on killing."

"You have forced me to raise the indifference warning to beige, it's a beige alert people. As with all beige alerts please prepare to think about the possibility of caring."

An optimist says that giving someone power DOESN'T immediately turn them into a sadist. A pessimist says that giving someone power doesn't IMMEDIATELY turn them into a sadist.

 

 

Share this post


Link to post
Share on other sites
darksupernova

I haven't tried it yet as, so far, all the posts I've read say that remote desktop is faster - when playing games, keeping lag to a minimum is a must!

Do you know if teamviewer would solve my problem of sending Bluetooth game-pad commands?

Also do you know if an autoit script already exists to run and connect to a specified host using teamviewer?

Thanks for your quick response!

I have found several USB redirect programs for remote desktop connection, lets say for arguments sake that these work for my usb bluetooth dongle to redirect game-pad inputs, how hard would it be to write a script that automates the redirection?

Edited by darksupernova

Share this post


Link to post
Share on other sites
darksupernova

I've just tried teamviewer and whereas remote desktop is instant, there is substantial lag on teamviewer.

Share this post


Link to post
Share on other sites
danielcovington

You can save the rdp connection as a file then call it with autoit

run('mstsc "Path to rdp file"')

mstsc has a few switches, you can see what they are by typing mstsc -? at a command prompt.

Share this post


Link to post
Share on other sites
darksupernova

Excellent! I dont suppose you know of a way to share bluetooth devices over the network do you? Win 8 pro does not support 'unsupported' devices through remote desktop.

Share this post


Link to post
Share on other sites
danielcovington

does the blue tooth remote have a windows driver??

Share this post


Link to post
Share on other sites
darksupernova

Hi Daniel,

I managed to find a way to share the usb devices across the network, it was a piece of third party software which one can find by googleing 'usb over network'.

Thanks for your help anyway!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×