back to index

Indispensable Properties of the Macro for CZPBatch

The macros, macro sets, and commands described here are supplied by the installation of wshForCZP - you'll find them in the files

Creation is described here just for demonstration purposes to give you a starting point for creating your own macros.

First you need a command to start the console application wshForCzpCounter belonging to wshForCZP. You create this command from CombineZP by means of the menu item «Macro → Edit → Commands»; edit one of the still unused external commands (called «External Command #n»): in the input field «Name» as in the input field «Program» you have to type the string «wshForCzpCounter»; the input field «Command Line» you leave blank. If you save this command it will be available in the listbox «Command» of the macro editor under the name «wshForCzpCounter». A macro intended to cooperate with wshForCZP must contain this command as the last command:

Like wshForCZP.exe the executable file wshForCzpCounter.exe must be located in the same directory as CombineZP.exe and CZPBatch.exe (typically "C:\Programme\Alan Hadley\CombineZP"; you have to select the installation directory of CombineZP during the installation of wshForCZP).

Furthermore we have to look at the macro «Output Active Frame»: using this command a single macro can save multiple output images. To save all results of the standard macro «All Methods» with CZPBatch you have to do the following:

  1. Create by means of the macro editor a short macro called «Save In Loop». It should consist of just three commands:
    • Output Active Frame(1)
    • Go (Relative) to Frame(1)
    • Restart Macro
  2. Create a macro called «wshForCZP All Methods»; for this purpose append to the standard macro «All Methods» the two following commands:
    • ...
    • ...
    • Save In Loop(1,0,1)
    • wshForCzpCounter(0,0,0)

The macro «wshForCZP All Methods» saves the results of all 6 standard macros to a subdirectoriy called "output". wshForCZP in finishing mode searches image files in a subdirectory of this name and moves them to a subdirectory of the source folder (unwieldy file names are shortened to the name of the corresponding macro). To make this function you have to select the macro «wshForCZP All Methods» in the input field «Macro» of the application CZPBatch (or some other equivalent macro with the required properties, if you want to get something else as a result). In any case indispensable for wshForCZP is «wshForCzpCounter(0,0,0)» as the final command.

The macro set is saved as "wshForCZP.czm".

back to index