LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Use mouse click as a boolean variable

Hello, I was wondering if there is any way to use the mouse click (down/up) as a boolean variable where it is false when not clicked and true when it is clicked. I know i can do this with the event structure. I however would like to do this without using the event structure.


Thanks
0 Kudos
Message 1 of 4
(2,431 Views)
Is there a reason that you are trying to avoid the event structure? 

You could have an invisible boolean and poll it or you could use a picture control and get the mouse up / down from it.  But I do think that the event structure is the way to go.

Hope that this helps,
Bob Young

0 Kudos
Message 2 of 4
(2,427 Views)
If you still want to avoid the event structure (although I would advise against that), you can go with the input VIs which can be found in the Advanced palette. They will allow you to read the state of the mouse buttons.

___________________
Try to take over the world!
Message 3 of 4
(2,410 Views)
Of course, I should have thought of that!

Thanks tst!

Bob Young

0 Kudos
Message 4 of 4
(2,389 Views)