To download NI software, including the products shown below, visit ni.com/downloads.
Overview
This example application logs triple clicks.
Description
This program will log Triple Clicks, but could be modified to count any number of mouse clicks. The program also uses a timeout for the clicks, so that they will be counted as a triple click vs. three separate clicks. The last piece of functionality is the coordinates of the mouse click. These coordinations are logged and compared to the previous so that extraneous clicks are not counted as part of the triple click.
The length of the timeout, the number of clicks counted, and the pixel spacing allowed between clicks can all be changed to fit specific applications needs.
Requirements
Steps to Implement or Execute Code
Additional Information or References VI Block Diagram
VI Block Diagram
**This document has been updated to meet the current required format for the NI Code Exchange.**
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.