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>hpcallmacro()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
hpCallMacro()

Call macro specified by ID number


Syntax
hpCallMacro(<nId>)


Parameters

<nId>
The ID number of the macro to call.


Returns

0
Successful.

-12
Wrong number of parameters passed.


Remarks

Upon the execution of hpCallMacro() the macro designated by the ID #
<nId> begins performing its commands using the current modified print
environment. When the macro is executed, any changes to the feature
settings are recorded in the modified print environment.  These changes
however, are not retained upon the completion of the macro call.  When
execution of the macro call is completed, the modified print environment
that existed prior to the macro call is restored.


Support By

All HP Laser Printers except the original HP Laserjet


Example

hpPrintOn()
hpConfig('LETTER', 'L')
hpSetFont()

hpStartMacro(1)
.
.    // definition for macro with ID# 1
.
hpEndMacro(1)
hpCallMacro(1)  // call the macro with ID# 1

hpReset()
hpClrMacros()
hpPrintOff()

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

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