LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Key Navigation when window doesn't have focus

Using key navigation I want to allow the user to instigate a program function by with a key sequence like Ctrl-F1. This works fine as long as the window has focus but does not work if another window is active. Is there any way to get my vi to respond to the key sequence when that vi does not have the focus?
0 Kudos
Message 1 of 4
(2,965 Views)
I believe the answer is NO, you can't get around this.  This is an OS issue of directing the key press to the application that has focus. 
Matthew Fitzsimons

Certified LabVIEW Architect
LabVIEW 6.1 ... 2013, LVOOP, GOOP, TestStand, DAQ, and Vison
0 Kudos
Message 2 of 4
(2,958 Views)
You can use the keyboard input VIs to continuously poll for that key combination. Not as good as an event, but will work without focus. The VIs can be found in the Advanced palette before 8.0 and in the Connectivity palette (I think) later.

___________________
Try to take over the world!
Message 3 of 4
(2,954 Views)

Yup!  Tested it myself and it will work.  Good save fro my flawed answer.  It will not work they way initially specified but should work by using the keyboard VIs.

Thanks!

 

Matthew Fitzsimons

Certified LabVIEW Architect
LabVIEW 6.1 ... 2013, LVOOP, GOOP, TestStand, DAQ, and Vison
0 Kudos
Message 4 of 4
(2,948 Views)