Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Escape! V3.0 - <b>hpendmacro()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
hpEndMacro()

End a macro definition


Syntax

hpEndMacro(<nId>)


Parameters

<nId>
The ID # of the macro definition to end.


Returns

0
Successful.

-12
Wrong number of parameters passed.


Remarks

After beginning a macro definition using hpStartMacro(), all subsequent
data is read and stored as the definition of that macro.  To end a macro
definition, use hpEndMacro().  hpEndMacro() will mark the end of the
definition and cause the specified macro to be made permanent.


Support By

All HP Laser Printers except the original HP Laserjet


Example

hpPrintOn()
hpConfig()
hpSetFont()
hpStartMacro(1)
.
.         // macro definition
.

hpEndMacro(1)
hpOverlay(1)  // enable auto macro overlay
.
.         // print routine
.

hpReset()
hpOverOff()
hpClrMacros()
hpPrintOff()

See Also: hpStartMacro() hpExecMacro() hpClrMacros() hpCallMacro() hpOverlay() hpOverOff()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson