From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Example Code

Windows API: Mouse Functions (Events)

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Software

  • LabVIEW Database Connectivity Toolkit
  • LabVIEW

Code and Documents

Attachment

Overview

This example shows you how to perform events with the mouse such as clicking or scrolling.  It uses the Call Library Function Node to reference the API.

 

Description

This code shows how to perform events with the mouse such as clicking or scrolling. The Call Library Function Node calls a DLL or shared library function directly. 

 

Requirements

  • LabVIEW 2012 (or compatible)

 

Steps to Implement or Execute Code

  1. Utilize the attached VI as a subVI.
  2. Create a control or constant from the terminal and select the desired mouse event.

 

Additional Information or References

VI Snippet

121.png

 

**This document has been updated to meet the current required format for the NI Code Exchange.**

Che T.
Applications Engineer
National Instruments

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.