LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I use F1 key as Shortcut

In the Run-time menu editor, I want to select F1 as my shortcut.  When I select F1 as you are supposed to , the Labview Help screen comes up and the shortcut is not entered.  Is there a way to turn off the standard F1 - Help shortcut while I use the menu editor?  All of the other function keys work fine in the shortcut box.  I am using a Windows XP system and Labview 8.0.1.
 
Thanks .......
0 Kudos
Message 1 of 4
(2,993 Views)
I don't think you can disable the shortcut (it seems that you can't assign any of the function keys by themselves anyway), but you should be able to use the Key Down? event, discard the event if F1 was pressed and do what you want.

___________________
Try to take over the world!
0 Kudos
Message 2 of 4
(2,987 Views)

Thanks for the tip - but I think that I have decided to just leave F1 as 'Help' and start my special functions with F2.

Ray K.

0 Kudos
Message 3 of 4
(2,958 Views)
Hi, ambe.

Although it may be too late now, you can use F1 exactly as you're asking by using the event structure with filter events. The process is outlined in this KnowledgeBase which also has some example code that does precisely that.

Good luck! (Sorry for the delay in replying; we're closed over July 3rd and 4th.) Let me know if you hit any obstacles.
Sarah K.
Search PME
National Instruments
0 Kudos
Message 4 of 4
(2,941 Views)