LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Register a global hotkey with Labview

I need to register a global hotkey, in Windows, in order to fire an
event in a top-level VI application.
I suspect it could be possible by accessing the Windows API but I
don't know how to link a global keystroke event with a labview event.

I use LV 8.2 and Windows XP.

Thanks in advance.
0 Kudos
Message 1 of 4
(2,631 Views)
Monitoring keystrokes within a LabVIEW application can be done with the input VIs. There's an example called "Basic Input Demo" that ships with LabVIEW that shows you how to do this. Open the Example Finder and search for "keyboard".

However, it sounds like you want the LabVIEW application to receive the keystroke if you're in another Windows application, or diddling around in Explorer. Is this the case? If so, you can still use those VIs to monitor the keys. You just need to make sure you're not stealing some keystroke that another process is expecting.
0 Kudos
Message 2 of 4
(2,615 Views)

I have a same question regard this application too.

The structure in the "Basic Input Demo" is polling. I am looking for a way to monitor windows events.

I cannot find any proper structure to finish this since I am going to make this "global" instead of within LabVIEW.

 

Can anyone figure it out how to make such application possible?

 

 

Thank you

 

Ting

0 Kudos
Message 3 of 4
(2,305 Views)

The Windows Message Queue library may provide what you are looking for.

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