LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Left Mouse Click

Is it possible to detect when the left mouse button is clicked in Labview 8.0?
 
Thanks
Tim
 
 
0 Kudos
Message 1 of 3
(3,119 Views)
If you do a search in the
"Help:Find Examples" using the keyword mouse you will find an example called Basic Input Demo.vi which shows how to get info from a number of input devices, including the mouse. In the lower part of the diagram, connected to the mouse refnum, is a vi calle Acquire Input Data.vi, with an output of "button 1" which is the left button pressed signal. On mine, with a Dell scroll mouse, button 2 is the right button.
 
 
The examples really is a gold mine of hints on how to use the various, sometimes obscure, features of LabVIEW and I recommend all users (not just new ones) to "prospect" . Some of the examples are a bit dated and could use an update, but frequently new ways to do things can be found in there.
 
 

Message Edited by LV_Pro on 05-23-2006 10:30 AM

Putnam
Certified LabVIEW Developer

Senior Test Engineer North Shore Technology, Inc.
Currently using LV 2012-LabVIEW 2018, RT8.5


LabVIEW Champion



Message 2 of 3
(3,113 Views)
The event data that is returned with a mouse down event includes button data. A value of 1 is the left button and 2 is the right button.
Message 3 of 3
(3,108 Views)