From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can LabVIEW catch or detect a mouse event of another window program in background process?

As is in the title, I have to catch or detect a mouse click event. But the mouse event is not LabVIEW's one.

 

For example, I'd like to start measurement when a user clicks a mouse right button three times in another window program.

 

Of course, since I'm using not LabVIEW but another program, LabVIEW should be running in background process.

0 Kudos
Message 1 of 3
(2,340 Views)

Look at the Input Device Control VIs. You can create a simple loop that acquires mouse input information (caution: do not create a Greedy Loop). One of the outputs of that VI will tell you what buttons were pressed.

Message 2 of 3
(2,323 Views)

Thank you for your useful answer. I didn't know that LabVIEW is still working even when it is not  under spotlight.

 

I can settle my problem with your advice. ^.^

 

Good luck to you.

0 Kudos
Message 3 of 3
(2,303 Views)