MacrosMacros are recorded sets of keystrokes. You can record macros for common actions, then run the macros whenever convenient. Only keystrokes (not mouse movements) are recorded within macros. Note that, with the exception of the Find dialog, macros that call external dialogs are not supported. For quick access and organization, macros can be assigned to projects and / or stored in the Toolbox. Additionally, you can assign custom key bindings to macros. Recording MacrosTo record a macro, select Tools | Macros | Start Recording or press Ctrl+k, (. The status bar at the bottom of the Komodo workspace will say "Recording Macro". Enter the keystrokes you wish to store in the macro. When you are done, select Tools | Macros | End Recording or press Ctrl+k, ). The status bar will display the message "Macro Recorded". ![]() Saving MacrosTo save the most recent macro to a file, select Tools | Macros | Save to Toolbox. Give the new macro a unique name; a reference to the macro is automatically added to the Toolbox. Macros are stored as JavaScript files. By default, on Windows, macros are
stored in the ![]() Assigning Macros to Projects or the ToolboxMacro references are automatically added to the Toolbox when they are saved to a file (Tools | Macros | Save to Toolbox). However, you can also manually add macro references to the Toolbox, or to a project in the Project Manager. To add a macro to a project, right-click the name of the project, or the name of a folder within a project, and select Add New Macro from the context menu. Alternatively, select Project | Add to Project | Add New Macro from the drop-down menu. To add a macro to the Toolbox, right-click in the Toolbox pane and select Add New Macro. To add a macro to a folder in the Toolbox, right-click the folder and select Add New Macro. When adding macros to a Project or to the Toolbox, you will be prompted for the following items:
You can subsequently alter the name or source location of a macro by right-clicking the macro in the Project Manager pane or the Toolbar and selecting Properties. Alternatively, change the name of the macro by right-clicking the macro and selecting Rename from the context menu. ![]() Assigning Key Bindings to MacrosWhen you add a macro to the Project Manager pane or to the Toolbox, use the Key Binding tab to assign a key binding to the macro. To add a key binding (or alter the existing key binding) of a macro, right-click the macro in the Project Manager or the Toolbox and select Properties to access the Key Binding dialog. If a key binding has already been assigned to the macro, it will be displayed in the Current Key Sequence field. To add a new key binding: enter the desired key combination in the New Key Sequence field, and click the Add button. If the key binding conflicts with another binding, the existing binding will be displayed in the Key Sequence Currently Used By field. Multiple key bindings can be assigned to the same macro. To change an existing key binding: if multiple key bindings have been assigned to the same macro, select the key binding you wish to change from the drop-down list in the Current Key Sequence. Enter the new key binding in the New Key Sequence field, and click Change. To clear an existing key binding: click the Clear button beside the "Current Key Sequence" field. If multiple key bindings have been assigned to the same macro, select the desired binding from the drop-down list before clearing. If multiple bindings are assigned to a macro and you wish to clear them all, use the Clear All button. ![]() Running MacrosTo run the macro that was most recently recorded, select Tools | Macros | Execute Last Macro, or press Ctrl+k, _. To run a macro that has been saved to a file and assigned to a Project or to the Toolbox, double click the macro, or use the key binding assigned to the macro. Alternatively, right-click the macro in the Project Manager or the Toolbox and select Execute Macro from the context menu. ![]()
|