Ideas on gaining desktop control over an internet connection
Hello
I was wondering if anyone had any ideas on how I would go about creating a program similar to the GoToMyPc client where I would be able to connect to a computer via its IP address and then gain control over the mouse and display the computer screen on my desktop? Thanks.
Jesse
Re: Ideas on gaining desktop control over an internet connection
The mouse would be easy.
The hard part would be getting the desktop to show as fast as the one on GotoMyPC or VNC does.
You would first need to compress the desktop image into a small format (JPEG/GIF), in 256 color format or something similar.
Then you would need to scan the desktop and only send parts that have changed, instead of sending the whole thing everytime.
Re: Ideas on gaining desktop control over an internet connection
so how do you think you will be able to send the mouse? would you just send the coordinates? if so, how would you accurately be able to judge where the mouse is and how to take control of the mouse from the remote application? thanks.
1 Attachment(s)
Re: Ideas on gaining desktop control over an internet connection
A combination of the GetCursorPos() and SetCursroPos() API functions which are very simple to use.
The client (person controlling the other computer) could send the x,y coordinates of the mouse to the server via Winsock.
The server could receive those coordinates and use the SetCursorPos() API function to change the mouse position.
Here's an example program I wrote for someone else a couple days ago, but it should help you too.
Edit: You may need to modify the client/server code a little to take into account the differences in screen resolution between the client and server computers.
Re: Ideas on gaining desktop control over an internet connection
yeah, works but mouse is slow, i need thast only for network. with making the screren part work you could make it send it through wsock and then make it update whenever it needs to or just an interval. active window update only execpt for every five or so seconds, that way it would update the active window more frequently than the background cause they aren't goibng to change much and you could jsut click onto them anyway. well enough ****.
MAKE ME A PROGRAM THAT DOES IT CAUSE I DONT GET ALL THE WINSOCK SEND AND LIUSTEN **** CAUSE IUT DOSN"T WORK FOR ME!!!!!!!!!!
MAKE ME A PROGRAM QUICK!!!!!!!!
I NEED IT!!!!
PS: im angry
PSS: soz for being angry
Re: Ideas on gaining desktop control over an internet connection
Re: Ideas on gaining desktop control over an internet connection
Why would I make it for you?
www.RentACoder.com
Re: Ideas on gaining desktop control over an internet connection
DigiRev,
I appreciate the help on this matter and am sorry that it took so long to reply as I have been out of town. Now, the only problem is I am using Visual Studio 2005 so could you please convert your mouse mover code? I started with .net and really have no skills in vb6.
Thanks!
Re: Ideas on gaining desktop control over an internet connection
Quote:
Originally Posted by jesse_mac07
DigiRev,
I appreciate the help on this matter and am sorry that it took so long to reply as I have been out of town. Now, the only problem is I am using Visual Studio 2005 so could you please convert your mouse mover code? I started with .net and really have no skills in vb6.
Thanks!
I don't know .net.
.Net has an upgrade feature that lets you import VB6 code and it will convert it to .Net automatically. It's not perfect but it should get it pretty close.
Also you will probably want to replace the Winsock control with the socket class in .Net. I have no experience with that at all.
You could try the .Net forum.
Re: Ideas on gaining desktop control over an internet connection
The code wont convert as there is no winsock in .net
Re: Ideas on gaining desktop control over an internet connection
Quote:
Originally Posted by the182guy
The code wont convert as there is no winsock in .net
.Net will load the Winsock control on its own.
axMSWinsockLib.AxWinsock
But it's still best to use the socket classes in .net as opposed to the Winsock ActiveX control.
Re: Ideas on gaining desktop control over an internet connection
the socket classes in .net are nothing short of a nightmare it's very difficult to create even the most trivial apps, nothing like the old winsock control, however some clever one has created a control that behaves as a vb6 winsock for .net 2005 here:
http://www.codeproject.com/useritems/winsock2005.asp
and for previous versions of .net:
http://www.codeproject.com/vb/net/winsockdotnet.asp
Re: Ideas on gaining desktop control over an internet connection
yes I was looking at this control and it seems to do the trick for anything I would want to use it for...is anyone currently using this control or have any experience using this control? I have a few questions...thanks!