Allows selecting menu programmatically.
MenuSelect( $item, $hwnd, $menu );
Menu item to be selected
Handle of a window hosting a menu. If not given, foreground window is assumed.
Handle to a menu. If not given, the result of GetMenu( $hwnd ) is assumed
Example 9.5. Exit foreground application through application menu
MenuSelect("&File|E&xit");
Example 9.6. Exit foreground application through system menu
MenuSelect("&Close", 0, GetSystemMenu(GetForegroundWindow(), FALSE));