Northern Eclipse Help Reference

 Macro Editor


Macro Editor

This function is used to edit recorded macros for use in Northern Eclipse.  Click on Macro and then Edit a macro, or press the macro Edit Macro Button.

  

 The Edit Macro dialog box will appear and you should click on the Open button to open a macro.

 

The options on the macro editor are as follows:

1) New – clears the editor so that a new macro can be opened.

2) Save – saves the current macro.

3) Open – loads a previously saved macro.

4) Toggle – switches execution between interactive and direct. With execution in interactive mode the macro will stop and the operator must input a response before a given function continues. In direct mode the macro function will use the parameters that were used during recording. The example also shows ThresholdGrayScale as interactive and LoadSelectionMask as direct. The default state for all recorded macro functions is set in the Macro Options page.

5) Up – moves the current line in the macro up one line.

6) Down – moves the current line in the macro down one line.

7) Add – allows functions that cannot be recorded with the Macro Recorder to be added to the current macro.

  

In the example, a message was added between live and freeze to allow for focusing on a new specimen before the image was digitized. Click on Live to highlight it, and then on Add. Next click on MessageBox in the Insert Command menu and then click Ok. Any of the macro commands, including the MessageBox, can be edited by double clicking on any given line within the macro editor. The macro line will then come up in an editor box.

When editing the MessageBox keep messages between the quotation marks.  Select help to get information and examples of how to set the options for each command.

8) Delete – deletes the current highlighted macro line.

9) Options – brings up the Macro Options page.

10) Play – plays back the macro.

11) AutoCode – generates automatic Visual Basic or Visual C++ programming code for the production of elaborate applications.  Clicking on AutoCode brings up the following menu.

The macro can now be automatically converted into programming code for Windows 98 or later Visual Basic scripting (VB Script), Visual Basic v.4 or later or Visual C/C++ v.5 (see the OLE Automation Manual).

12) Close – shuts down the Macro Editor.


See Also

Record a Macro
Playback a Macro
OLE Automation Manual

References

Table of Contents
Function Reference
Menu Reference
Toolbar Reference