CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Mouse_event

  1. #1

    Mouse_event

    Does anyone know the correct use of this api call?
    mouse_event

    Declare Sub mouse_event Lib "user32" Alias "mouse_event" (ByVal dwFlags As Long, ByVal dx As Long, ByVal dy As Long, ByVal cButtons As Long, ByVal dwExtraInfo As Long)



  2. #2
    Join Date
    May 1999
    Posts
    3,332

    Re: Mouse_event

    e.g. to move the mouse programmatically:


    Public Declare Sub mouse_event Lib "user32" (ByVal dwFlags As Long, ByVal dx As Long, ByVal dy As Long, ByVal cButtons As Long, ByVal dwExtraInfo As Long)
    Public Const MOUSEEVENTF_MOVE = &H1

    Public Sub MoveMouse(xMove As Long, yMove As Long)


    mouse_event MOUSEEVENTF_MOVE, xMove, yMove, 0, 0
    End Sub

    (sample from planet-source, don't know the author)



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