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

Begin the execution of the macro definition specified by ID number


Syntax

hpExecMacro(<nId>)


Parameters

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


Returns

0
Successful.

-12
Wrong number of parameters passed.


Remarks

Upon the execution of hpExecMacro() 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
are then retained upon the completion of the macro execution.


Support By

All HP Laser Printers except the original HP Laserjet


Example

hpPrintOn()
hpConfig()
hpSetFont()
hpStartMacro(1)
.
.        // macro definition
.
hpEndMacro(1)
hpExecMacro(1)  // execute macro with id# 1
hpReset()
hpClrMacros()
hpPrintOff()

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

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