LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Hot key for run time menu

I want a hotkey (preferbly the ENTER button) to initiate a menu. That is when I press ENTER, the FILE menu gets highlighted with all the pull down options are displayed. Please give me a solution.
0 Kudos
Message 1 of 4
(2,740 Views)
Hi rberger,

There is no simple setting that will allow you to dedicate the ENTER button to open the menu. However, with a little bit of magic (Event Structure looking for ENTER key press), you can programmatically (using the "keybd_event" function in "User32.dll") click the ALT (Menu) key and then the ENTER key. This combination will always open the menu list (try it manually first; ALT and then ENTER).

Try the attached VI that I created for you.

Have fun!
- Philip Courtois, Thinkbot Solutions

Thinkbot Solutions
Message 2 of 4
(2,718 Views)
Thanks for your reply. However, there is a subVI missing in your file attachment.
0 Kudos
Message 3 of 4
(2,709 Views)
Ooops - sorry rberger!

Here's the VI including the very necessary subVI. Let me know if you can use it, thanks.


Have fun!
- Philip Courtois, Thinkbot Solutions

Thinkbot Solutions
Message 4 of 4
(2,694 Views)