Working With Macros; Recording A Macro; Saving Netlinx Studio Macro Files (*Nsm) - AMX NetLinx Studio Instruction Manual

Netlinx design v3.3 or higher
Table of Contents

Advertisement

Working with Macros

Select Edit > Macros to open the Macros sub-menu. Use the options in this menu to create and manage macros for use
in Editor windows. Alternatively, use the toolbar buttons in the Macros toolbar to access these functions. NetLinx Studio
Macros Files use the file extension *.NSM.
The options in the Macros sub-menu/toolbar are as follows:
Macros Sub-Menu/Toolbar Options
Record
Pause Recording
Cancel Recording Click to cancel the current macro recording.
Stop Recording
Run <macro
name>
Load Macros
Select Macro
Edit Macros
Save Macros

Recording a Macro

1.
Select Edit > Macros to access the Macros sub-menu, and select Record (alternatively, click the Start a New
Recording toolbar button in the Macros toolbar). This opens the New Macro dialog (FIG. 176).
FIG. 176
New Macro dialog
2.
Enter a Name and (optionally) a Description for the new macro.
3.
Click OK to close the dialog and begin recording. All keystrokes that are used within the open Editor windows will
be recorded as part of this macro.

To Pause the recording, click the Pause Recording toolbar button (or select Edit > Macros > Pause
Recording).

To Cancel the recording, click the Cancel Recording toolbar button (or select Edit > Macros > Cancel
Recording).

To Stop the recording, click the Stop Recording toolbar button (or select Edit > Macros > Stop Recording).
4.
Once the macro has been recorded, it can be Played. When a macro is played (via the Play Current Macro toolbar
button or Edit > Macros > Play Current Recording), all keystrokes recorded in the currently loaded macro are
repeated at the cursor position in the active Source Code File.
Unless you have selected a different macro (via the Load Macros toolbar button, or
Edit > Macros > Load Macros), the last recorded macro is the current macro and
therefore will be played when Play Current Macro is selected.

Saving NetLinx Studio Macro Files (*NSM)

1.
Select Edit > Macros to access the Macros sub-menu, and select Save Macros. .
2.
In the Save As dialog, specify a target directory and filename for this macro file and click Save.
NetLinx Studio - Instruction Manual
Click to start recording a new macro. This action open the New Macro dialog, in which you must
provide a name for the new NetLinx Macro File (*.NSM) - required, and a file description (optional).
Click to pause a macro recording in progress. Click Pause Recording again to resume recording the
macro.
Click to stop recording the current macro.
Click to play the currently active macro. If you have just finished recording a macro, that macro will be
run. Otherwise, use the Load Macros and Select Macro options to load and select a different macro,
then select Run.
Click to load one or more macro files. This option invokes the Open dialog to locate and select the
macro file(s) to be loaded. Once one or more macro files are loaded, they can be selected to run via
the Select Macro option.
Click to open the Select a Macro dialog. Use this dialog to select a macro to run.
Click to open the Edit Macros dialog. Use the options in this dialog to delete existing macros.
Click to save all currently loaded macro files, via the Save As dialog.
Programming
103

Advertisement

Table of Contents
loading

Table of Contents