Avery Dennison Platinum 6039 JavaScript User Manual

Page 31

Advertising
background image

Printing Functions 3-13

S e n s o r s

BlackMark

Description

Retrieves the black mark sensor’s latest state. This state is not
necessarily the current state because it is updated only by the Print
subsystem.

Syntax

BlackMark

Parameters

None

Return Values

true

The supplies are aligned on the black mark.

false

The supplies are not aligned on the black mark, or the Print
subsystem is busy or uninitialized.

Example

<SCRIPT src="./jsUltra.js"></SCRIPT>

<SCRIPT type="text/javascript">

blnBlackMark;

blnBlackMark = Printer.BlackMark;

if

(blnBlackMark)

//

If

true

alert("Blocked);

else

//

If

false

alert("Not Blocked”);

</SCRIPT>

<BODY>

<OBJECT id=”PRINTER” style="LEFT: 0px; WIDTH: 0px; TOP: 0px;
HEIGHT:

0px"

classid=clsid:

19C1754D-BA97-43A1-A06D-496D2167400B>

</OBJECT>

//Instantiate

Class

</BODY>

Advertising