|
Onetastic Macro Documentation >
>
>
Main Main
The main function of a macro. Every macro has a Main function and the statements of the Main function are executed when the macro is ran.
Syntax
void Main(
String arg,
String context)
Parameters
- String arg
- The argument passed into the Main function through a menu item. If the macro is executed by its main button on the ribbon, the value of this parameter is empty string.
- String context
- The context menu from which the macro is being executed from. Possible values are
"Text", "Image", "EmbeddedFile", "Page", "Section", "SectionGroup", "Notebook". If the macro is executed by its button on the ribbon, the value of this parameter is empty string.
|