LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Richt Click Mouse with user32.dll and String Constant for Escape Key

Hi, could some one provide the input parameters to use with Mouse_Event function in user32.dll to Right Click the Mouse?   Also, what is the string constant to send if one want to type the Escape Key (Esc)?  
 
I have searched this forrum but only find the parameters for Left Mouse Click.  Thanks for any help.
 
0 Kudos
Message 1 of 2
(3,204 Views)
Hi,

The mouse_event function has been superseded by the sendinput command.  To learn more about the function calls with user32.dll, have a look at the msdn.com website.  The user32.dll website is shown here.  The syntax for the mouse_event function is shown below:

Syntax

VOID mouse_event(      

    DWORD dwFlags,
    DWORD dx,
    DWORD dy,
    DWORD dwData,
    ULONG_PTR dwExtraInfo
);
I hope this helps,

Regards,

Nadim
Applications Engineering
National Instruments
0 Kudos
Message 2 of 2
(3,185 Views)