LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can I disable F1 for LabVIEW help?

When my VIs are running, I want to disable the help window popping up when the user presses the F1 key. I don't care whether it pops up when I'm editing.
0 Kudos
Message 1 of 4
(3,780 Views)
Hi.

The easiest way is to place a Boolean control on the front panel, in an area where the user does not see it while the VI is running.

Right click on the control, go the Advanced >> Key Navigation, and assign the F1 key to that control. This way, when the user presses F1, he will be changing the value of this control, but since you don't have it connected to anything in the block diagram, the VI won't do anything.

Alejandro
Message 2 of 4
(3,776 Views)
Hi,

You can also programmatically discard the event that is generated when the F1 key is pressed by using filter events in an Event structure. Discard the event by passing a True value to the 'Discard?' input on the Event Filter Node for a Key Down ? event>. The Vkey to be monitored being "F1".

Regards,
Cyril Bouton
Active LabVIEW Developper
0 Kudos
Message 3 of 4
(3,772 Views)
I was hoping for one thing I could do that would affect all my popup windows. I have about 20 of them, so it seems I need to go add a button with F1 enabled or an Event Structure to each one!

The button will be easy to add to each screen, just copy and paste it, but it seems like a clumsy way of programming.

At any rate I have two solutions here, thanks.
0 Kudos
Message 4 of 4
(3,758 Views)