Results 1 to 8 of 8

Thread: [RESOLVED] [2005] Control the users mouse?

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2008
    Posts
    1,754

    Resolved [RESOLVED] [2005] Control the users mouse?

    1. How do i control the users mouse? I can make their mouse move to positions(0,0) etc...
    Even if their mouse is off my program.

    2. Then how do i make their mouse left-click?

  2. #2
    PowerPoster sparrow1's Avatar
    Join Date
    May 2005
    Location
    Globetrotter
    Posts
    2,820

    Re: [2005] Control the users mouse?

    Hi,

    You can use this:

    vb Code:
    1. If e.Button = Windows.Forms.MouseButtons.Left Then
    2.             ' Do something
    3.         End If

    Wkr,

    sparrow1
    Wkr,
    sparrow1

    If I helped you, don't forget to Rate my post. Thank you

    I'm using Visual Studio.Net 2003 and
    2005
    How to learn VB.Net Create setup with VB 2005 Drawing for beginners VB.Net Tutorials GDI+ Tutorials
    Video's for beginners

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2008
    Posts
    1,754

    Re: [2005] Control the users mouse?

    Sparrow1 you misunderstood me i know how to make it so actions are taken when the user left clicks. But how do i CONTROL the users mouse and MAKE their mouse left click for them? kinda like making a macro on their computer...

  4. #4
    Hyperactive Member Philly0494's Avatar
    Join Date
    Apr 2008
    Posts
    485

    Re: [2005] Control the users mouse?

    Is this macro going to be used to click things outside the form?

    Then coords wont be reliable enough to distribute this program.

  5. #5

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2008
    Posts
    1,754

    Re: [2005] Control the users mouse?

    Quote Originally Posted by Philly0494
    Is this macro going to be used to click things outside the form?
    Yes, clicking stuff outside the program or not part of the program, as well as in the program.

    Quote Originally Posted by Phily0494
    Then coords wont be reliable enough to distribute this program.
    ??? ????????? ????

  6. #6
    New Member
    Join Date
    Jul 2008
    Posts
    8

    Re: [2005] Control the users mouse?


  7. #7

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2008
    Posts
    1,754

    Re: [2005] Control the users mouse?

    Thankyou Norther, this thread is resolved.
    Also welcome to the forums.
    And already you have a rate.

  8. #8
    Hyperactive Member
    Join Date
    Jun 2008
    Location
    Nowhere
    Posts
    427

    Re: [RESOLVED] [2005] Control the users mouse?

    "Programming is like sex. One mistake and you have to support it for the rest of your life." ~Michael Sinz


    Code Snippets/Usefull Links:
    WinRAR DLL|Vista Style Form|Krypton Component Library|Windows Form Aero|Parsing XML files|Calculate File's CRC 32|Download a list of files.

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