CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Jun 2004
    Posts
    170

    Red face how to move mouse to the point

    Hi.
    In my mfc dialog application i want to move mouse to the point,but i can't find any function for it,is it possible?

  2. #2
    Join Date
    Feb 2002
    Posts
    3,788

    Re: how to move mouse to the point

    i'm not sure if i understand what you want. can you elaborate?

  3. #3
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,430

    Re: how to move mouse to the point

    Take a look at API SetCursorPos

  4. #4
    Join Date
    May 2005
    Posts
    4,954

    Re: how to move mouse to the point

    in addition to ::SetCursorPos() you can use also
    ::mouse_event(..)
    ::SendInput(..)

    if i helped dont forget to rate :-)
    Cheers

  5. #5
    Join Date
    May 2005
    Location
    Netherlands
    Posts
    187

    Re: how to move mouse to the point

    For most mice, if you want their movement to be controlled programmatically, you would need a computer-controlled robot...

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

Featured