Do
Do

Simulates the user clicking the given menu item

bSuccess = myMainMenu.Do( Item_Name )

Return value
TRUE if the action completed successfully, otherwise FALSE.

Parameters
  • Item_Name
    The name (ID) of the item to simulate.
Comments

This function is used internally to allow keyboard shortcuts to work. It could also be used for a custom menu system.
The Item_Name does not have to be an item in the menu, for example, if the menu has no pause option, sending "PAUSE" will still work.

See also
MainMenu:OnSelectItem



JAM © 2005 no one in partiular
Project started by David Evans in 2005