I am running Windows 95, MS Visual Studios 6.0

Enterprise Edition, MS Visual Basic 6.0 Enterprise

Is there anyway to simulate a mouse click when the

program is run. I mean the program would actually

click the mouse. I am trying to make an automated

Program, one such that the user doesn't need to do



Thank You,

Mark Nauman

I just need to know how to click the mouse in

Microsoft Visual Basic 6.0 Enterprise


  • Hi,

    The mouse_event API can help you. Look for documentation in the MSDN.

    Public 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)

    Hope this helps!


  • It helps, but I cannont find

    mouse_event API on MSDN

    Could someone help me more.

    Thank You,

    Mark Nauman

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!