LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

vi runs while mouse down

I need a vi to run while the right mouse click button is down, but as soon as the operator releases the mouse button, the vi closes. And it needs to run under the event structure.
PaulG.

LabVIEW versions 5.0 - 2020

“All programmers are optimists”
― Frederick P. Brooks Jr.
0 Kudos
Message 1 of 5
(2,215 Views)
Does it matter where the mouse is down?

Ton
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 2 of 5
(2,214 Views)
Yes. When the mouse is over a control. I got that part worked out, though. The event structure isn't quite as robust as I like. It gives me the "-2" for the right-click, but it doesn't reset back to zero when the mouse button is relased.
PaulG.

LabVIEW versions 5.0 - 2020

“All programmers are optimists”
― Frederick P. Brooks Jr.
0 Kudos
Message 3 of 5
(2,210 Views)
'-2' of what? My RMB returns 2 for the mouse button.
And you should wait on a mouse up event after the mouse down, see here.


Ton

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 4 of 5
(2,207 Views)
Sorry, mouse button is "2".
PaulG.

LabVIEW versions 5.0 - 2020

“All programmers are optimists”
― Frederick P. Brooks Jr.
0 Kudos
Message 5 of 5
(2,200 Views)