CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2000
    Location
    Kansas
    Posts
    49

    Moving mouse cursor with code

    I am trying to make the mouse cursor move by using code so that the cursor will move by itself at set intervals. Any ideas would be great.


  2. #2
    Guest

    Re: Moving mouse cursor with code

    Just Use the following API Call
    Private Declare Function SetCursorPos Lib "user32" (ByVal x As Long, ByVal y As Long) As Long

    And Pass whatever values you want to x and y
    ie SetCursorPos 100,200



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