Results 1 to 4 of 4

Thread: how to move the mouse into a position

  1. #1

    Thread Starter
    Member
    Join Date
    May 2007
    Posts
    60

    how to move the mouse into a position

    hi i'm looking for a way that can allow me to move my mouse into a posotion , that i have defined earlier .
    thank you

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,222

    Re: how to move the mouse into a position

    vb.net Code:
    1. Windows.Forms.Cursor.Position = somePoint
    Note that somePoint is in screen coordinates. If your Point is relative to some form or control you can call that control's PointToScreen method to convert it to screen coordinates.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Member
    Join Date
    May 2007
    Posts
    60

    Re: how to move the mouse into a position

    thank you very much
    by the way , is it possible to control the left button of the mouse ;
    what i want to do is to move the mouse into a position and press the area that i want (the area can be a button or whatever )

  4. #4
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,222

    Re: how to move the mouse into a position

    You would have to call the mouse_event function from the Windows API. If you search the forum I'm sure you'll find examples.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

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