Introduction to Scripting

As you become proficient with Image-Pro, you may find that you  want to automate routine procedures or tailor its interface to your specific needs.  For example, you may want to automate a series of steps that are performed daily, or perform certain steps only when certain conditions exist.  You might also want to call Image-Pro functions from a program of your own creation.  These levels of customization can be achieved with the macro scripting facility provided with Image-Pro.

Macros  allow you to  translate a sequence of actions into a set of written instructions that can be recalled and “played back” whenever they are needed.  The scripting facility also lets you add variable definition and flow control statements (e.g., looping and branching) to these instructions, so that you can specify when and how often the actions are performed.

The macro scripting features are found in the Macros group on the Scripting ribbon.

Use the Record button to record a series of commands as you perform them.  When Record Macro is enabled, Image-Pro begins saving your commands to a script file using the scripting facility.  It continues to record your actions until you instruct it to stop by clicking the Pause Recording button.