Results 1 to 4 of 4

Thread: moving a mouse to a specified location

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Aug 2000
    Posts
    183

    Talking

    I here this is a pretty good forum so I'll throw you all of the though questions that I've been fighting with!

    Any idea how to make the mouse move to a specified location on the screen?

  2. #2
    Fanatic Member
    Join Date
    Feb 2000
    Location
    The Netherlands
    Posts
    715

  3. #3
    Guest

    Answer

    lokk at this site there is the answer

    http://www.vbapi.com/ref/m/mouse_event.html


  4. #4
    Guest
    Use the SetCurosrPos API.
    Code:
    Private Declare Function SetCursorPos Lib "user32" (ByVal x As Long, ByVal y As Long) As Long
    
    Private Sub Command1_Click()
        'Move the cursor to 100,100
        SetCursorPos 100, 100
    End Sub

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