javascript| Tutorial
Using JavaScript in HoTMetaL
7. How to identify all predefined macros
HoTMetaL PRO 6.0 defines several internal events that can trigger the corresponding macros. The macros are:
OnAction: When the corresponding menu is clicked, the macro is triggered;
On_application_activate: This macro is triggered when HoTMetaL is loaded from disk or after you run another application and becomes active;
On_application_deactivate: When you run another application, the macro is triggered;
On_application_open: When you open the HoTMetaL, the macro is triggered;
On_application_close: When you close the HoTMetaL, the macro is triggered;
On_before_document_save: When you save a file, the macro is triggered, and the macro is run before the file is saved.
On_before_document_saveas: This macro is triggered when you SaveAs (save As) a document, which runs before SaveAs completes.
On_document_activate: When the document is activated, the macro is triggered;
On_document_deactivate: This macro is triggered when the document is not activated;
On_document_open_complete: The macro is triggered when the user opens the file and the open operation completes;
On_document_close: When you close the document, the macro is triggered;
On_document_save: When you save the document, the macro is triggered;
On_document_saveas: When you SaveAs the document, the macro is triggered;
ON_UPDATE_UI: When the UI is updated, the macro is triggered.