Any menu’s name can be used unadorned as a command in a macro:
Bold
Display As UPPERCASE
The above macro code would make all selected text appear as if the bold and uppercasing menus had been activated. If a menu name is ambiguous, you can use a menu path to differentiate them:
Text Color:White
You can also activate menus in macros using the explicit Menu command:
Menu path
Activates a menu with the specified path, just as if a user had chosen the menu. The given menu path can be a full absolute path starting with a colon, a path suffix, or simply a menu title.
Menu ":Format:Size:12" # full path
Menu "Text Color:Red" # path suffix
Menu "Heading 1" # menu title
If the path is ambiguous (eg: "Red") then which menu is activated is undefined.
Previous Chapter Menus |
<< index >> |
Next Chapter Menu Object |