* GetMenu(number menuItem, number subfunction, param)
Get a menu item's properties. Following the menuItem, you can specify what property you would like to obtain with a parameter. Each parameter has a type ID, specified in SCI.SH.
The parameters are as follows:
smMENU_SAID1 parameter, a said string.
Retreives the menu item's said property.
Example(var theSaid)
= theSaid GetMenu($202 smMENU_SAID) smMENU_TEXT1 parameter, a string.
Returns the menu item's text.
ExamplePrint(GetMenu($202 smMENU_TEXT)) smMENU_SHORTCUTKEY1 parameter, a number.
Returns the menu item's shortcut key. See KEYS.SH for the keycodes.
Example(var theKey)
= theKey GetMenu($202 smMENU_SHORTCUTKEY) smMENU_ENABLE1 parameter, a bool.
Returns whether the item is enabled or not.
Example(if(SetMenu($202 smMENU_ENABLE))
Print("The item is enabled!")
)