Invoking Image-Pro Plus or Analyzer functionality from another application
If you have a macro written for Image-Pro Plus or ANalyzer, you can run the macro from another application by invoking Image-Pro from a command line using the following syntax:
C:\IPWIN70\ipwin32.exe -m MacroName -s C:\IPWIN70\Scripts\ScriptFileName.ipm
This assumes that a script name "ScriptFileName.ipm" in the Image-Pro Scripts folder has a macro named "MacroName" that contains the functionality that you want to invoke. Note that the /s parameter needs to be a full path to the script containing the macro.
The exact details of how to invoke Image-Pro from the other application depends on exactly how you are adding this functionality to the other application. If the other application has a scripting environment that allows you to start other installed programs, then you can "start" Image-Pro with the /m and /s parameters. If Image-Pro is already running, the command parameters will be passed to the running instance.
If the other application does not have a scripting environment, then you'll have to be able to add code to the application that uses a Shell or Windows SDK API to start Image-Pro with the specified parameters.
Categories
- All Categories
- 961 Image-Pro v9 and higher
- 9 Image-Pro FAQs
- 18 Image-Pro Download & Install
- 448 Image-Pro General Discussions
- 486 Image-Pro Automation (Macros, Apps, Reports)
- 20 AutoQuant Deconvolution
- 2 AutoQuant Download & Install
- 18 AutoQuant General Discussions
- 195 Image-Pro Plus v7 and lower
- 3 Image-Pro Plus Download & Install
- 106 Image-Pro Plus General Discussions
- 86 Image-Pro Plus Automation with Macros
- 19 Legacy Products
- 16 Image-Pro Premier 3D General Discussions
- 26 Image-Pro Insight General Discussions