Results 1 to 13 of 13

Thread: Ideas on gaining desktop control over an internet connection

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Apr 2006
    Posts
    137

    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
    Jesse Bunch
    www.getbunch.com/
    If I have helped you, please rate my posts!

    Unless otherwise indicated, I am using the following Products:

    Visual Studio .NET 2010
    .NET Framework 4.0

  2. #2
    "Digital Revolution"
    Join Date
    Mar 2005
    Posts
    4,471

    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.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Apr 2006
    Posts
    137

    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.
    Jesse Bunch
    www.getbunch.com/
    If I have helped you, please rate my posts!

    Unless otherwise indicated, I am using the following Products:

    Visual Studio .NET 2010
    .NET Framework 4.0

  4. #4
    "Digital Revolution"
    Join Date
    Mar 2005
    Posts
    4,471

    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.
    Attached Files Attached Files
    Last edited by DigiRev; Dec 10th, 2006 at 07:32 PM.

  5. #5
    New Member
    Join Date
    Dec 2006
    Posts
    2

    Angry 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

  6. #6
    New Member
    Join Date
    Dec 2006
    Posts
    2

    Re: Ideas on gaining desktop control over an internet connection

    arghh11

  7. #7
    "Digital Revolution"
    Join Date
    Mar 2005
    Posts
    4,471

    Re: Ideas on gaining desktop control over an internet connection

    Why would I make it for you?

    www.RentACoder.com

  8. #8

    Thread Starter
    Addicted Member
    Join Date
    Apr 2006
    Posts
    137

    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!
    Jesse Bunch
    www.getbunch.com/
    If I have helped you, please rate my posts!

    Unless otherwise indicated, I am using the following Products:

    Visual Studio .NET 2010
    .NET Framework 4.0

  9. #9
    "Digital Revolution"
    Join Date
    Mar 2005
    Posts
    4,471

    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.

  10. #10
    Frenzied Member the182guy's Avatar
    Join Date
    Nov 2005
    Location
    Cheshire, UK
    Posts
    1,473

    Re: Ideas on gaining desktop control over an internet connection

    The code wont convert as there is no winsock in .net
    Chris

  11. #11
    "Digital Revolution"
    Join Date
    Mar 2005
    Posts
    4,471

    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.

  12. #12
    Frenzied Member the182guy's Avatar
    Join Date
    Nov 2005
    Location
    Cheshire, UK
    Posts
    1,473

    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
    Chris

  13. #13

    Thread Starter
    Addicted Member
    Join Date
    Apr 2006
    Posts
    137

    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!
    Jesse Bunch
    www.getbunch.com/
    If I have helped you, please rate my posts!

    Unless otherwise indicated, I am using the following Products:

    Visual Studio .NET 2010
    .NET Framework 4.0

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width