Howdy, Stranger!

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



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

  • Shawn CarterShawn Carter Member Posts: 0

    _ | | free video tutorials and ebooks about { R Assembly Ruby PHP MATLAB Go Delphi Scratch C++ JavaScript Java Python Visual Basic .NET C# PL/SQL Visual Basic C Perl Swift Objective-C LabVIEW Dart Lisp Clojure Logo Scheme ML Bash Crystal Fortran SAS Prolog Rust Hack Kotlin Transact-SQL VBScript Apex Scala Julia D Alice Ada F# ABAP Awk COBOL FoxPro Lua Erlang } _________

Sign In or Register to comment.