EscapeE not only enables you to save any macros which have been downloaded with a PCL document, but also to create new macros from a page of the document. These are placed directly into the Resident macros library, emulating a printer's filestore. Page(s) may also be exported as .MCR or .PCL files to other locations.
To save any macros found in a file:
Message(s) will be logged will confirm that the macro has been created. EscapeE stores the macro in the Resident macro library as a file named xxx.MCR where xxx is the macro number – no conventional output stream will be produced.
In most cases the best way to create a new macro is to export the page(s) to be saved in .PCL format: see PCL export options. The resulting output will be completely rewritten in a style that uses mainly HPGL. For cases where the original PCL is straightforward and does not rely on previously downloaded fonts, palettes etc. there is another mechanism which merely copies the original PCL of the page with the appropriate start macro command at the beginning and an end macro command at the end. There are two ways to invoke this – either
Or, to save a single page as a .MCR file:
escapee test.prn /macro 123
A batch file may be used to create a PCL macro from a non-PCL file by specifying a subsequent /HP option.
When the macro is opened in EscapeE, its identification number is shown on the Tool-bar. It may be invoked in a command such as
To include it in the Resident macro library it would need to be copied to the appropriate folder with the name 123.mcr.
This is the search order used for finding the folder in which Macros are stored:
|3.||A folder named MACROS in the 'library root folder'.|
The 'library root folder' is determined as follows:
|a.||From the RTLIBROOT symbol. If it does not exist, then|
|b.||if an "RTFDL" symbol specifying a folder with subfolder \* is found then that folder would be used. For example:|
yields folder D:\REDTITAN.
|c.||Failing that the folder given by INSTALLROOTDIR with sub-folder MACROS is used.|