There has been a private function sitting dormant for several years in LabVIEW that has been teasing me. There are times when I've wanted a way to programatically invoke a run-time menu item. Some times this is for automation and I just want a single button to perform a set of steps in code that is already developed.
The current private method that doesn't appear to work is called Invoke Built in Menu Item, and there is also another one that could be useful, the Get Menu Item Status, which returns if a menu item is enabled or not. Here's an example.
Here is a custom menu item that was made to perform some operations.
And here is the code where when the user chooses to Load a Config that we handle their selection.
This idea is to complete these two private not implemented functions, so that menu item status can be queried, and invoked so that code reuse can take place, and automation of already created applications.
The work around today either involves programatic mouse clicking, or keyboard invoking to open menu items and navigate to them which is usually platform dependent, and error prone.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Any idea that has not received any kudos within a year after posting will be automatically declined.