macro recording. macros image-pro plus has an internal programming language called auto-pro. we can...

8
Macro Recording

Upload: laurel-cobb

Post on 04-Jan-2016

216 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Macro Recording. Macros Image-pro Plus has an internal programming language called Auto-Pro. We can use Auto-pro to create: Executable Routines Executable

Macro Recording

Page 2: Macro Recording. Macros Image-pro Plus has an internal programming language called Auto-Pro. We can use Auto-pro to create: Executable Routines Executable

Macros

Image-pro Plus has an internal programming language called Auto-Pro.

We can use Auto-pro to create: • Executable Routines

• Executable Routines with simple user interfaces - to provide options during the routine

• Our own dialog boxes - to offer many user options

Page 3: Macro Recording. Macros Image-pro Plus has an internal programming language called Auto-Pro. We can use Auto-pro to create: Executable Routines Executable

Solution Zone

Not only can we create our own macros, we can also use others made by the thousands of other Image-pro users across the world.

These can be found on the Media Cybernetics web site www.mediacy.com under a section called Solutions Zone

These can be downloaded free of charge in most cases, these are Script files .scr

Page 4: Macro Recording. Macros Image-pro Plus has an internal programming language called Auto-Pro. We can use Auto-pro to create: Executable Routines Executable

Loading script files• Select Macro from the Macro File Menu, this will open the opposite window.

•Select Change and browse to your selected script file.

•Once selected you will find the script name in the dialog box.

•You can now run the macro from this window by selecting run.

Page 5: Macro Recording. Macros Image-pro Plus has an internal programming language called Auto-Pro. We can use Auto-pro to create: Executable Routines Executable

Recording your own macro

•Select Record Macro from the Macro file menu, this opens the opposite dialog box.

•Give your Macro a name.

•Select OK

•Anything you now do in image pro is being recorded in a Visual Basic type code.

Page 6: Macro Recording. Macros Image-pro Plus has an internal programming language called Auto-Pro. We can use Auto-pro to create: Executable Routines Executable

Example Macro

• Open Spots.tif• Start to record your macro• Open the count size dialog box• Select to count dark objects• Select to count perimeter• Select to perform a Watershed Split• Select to Show Statistics• Stop Macro

Page 7: Macro Recording. Macros Image-pro Plus has an internal programming language called Auto-Pro. We can use Auto-pro to create: Executable Routines Executable

Your Macro

You have now recorded your own executable macro.

To run this we can simply select the Macro File menu and we will find the macro name at the bottom. Select your macro to Run.

To View the code of your macro select Edit Macro from the Macro File Menu.

Page 8: Macro Recording. Macros Image-pro Plus has an internal programming language called Auto-Pro. We can use Auto-pro to create: Executable Routines Executable

Example Macro Code