Presentation is loading. Please wait.

Presentation is loading. Please wait.

3. The Macro Editor. The Macro Editor The Macro Editor is the dialog box which allows us to view and edit macro code. The Dialog box can be loaded from.

Similar presentations


Presentation on theme: "3. The Macro Editor. The Macro Editor The Macro Editor is the dialog box which allows us to view and edit macro code. The Dialog box can be loaded from."— Presentation transcript:

1 3. The Macro Editor

2 The Macro Editor The Macro Editor is the dialog box which allows us to view and edit macro code. The Dialog box can be loaded from the Macro file menu Macros can also be created from scratch within this interface.

3 Loading and Unloading In order to make changes within the macro editor you must ensure the current macro is unloaded. If the macro is loaded a red square will show on the shortcut menu – select it and it will unload the macro leaving a green triangle in its place.

4 The Macro Editor Interface

5 The Macro Editor Tips Each macro is listed and begins with “Sub” followed by the name e.g. Sub My_Macro() All macros end with “End Sub” All individual macros within a script can be located quickly by using the Proc. dropdown menu. All Image-Pro command lines begin ret = ; using the macro help files you can find explanations and examples of macro code.

6 Auto-Pro Help

7 Commenting Your Macro Anything written in the Macro Editor will be judged as an instruction, so in order to make notes or comments in the macro we must use single quotation marks This allows you to make notes and leave instructions within your macro without any effect on the macro’s function Example: ‘This is the section where I select the count settings’ It also allows you to remove suspect lines of code during testing


Download ppt "3. The Macro Editor. The Macro Editor The Macro Editor is the dialog box which allows us to view and edit macro code. The Dialog box can be loaded from."

Similar presentations


Ads by Google