Status = delete ( eventhandle ), Status = deleteallevents ( ), Script = gethandlerscript ( eventhandleorname ) – Casio Naurtech CETerm Ver.5.5 Scripting Guide User Manual

Page 40: Script = getlist ( )

Advertising
background image

N

AURTECH

W

EB

B

ROWSER AND

T

ERMINAL

E

MULATION FOR

W

INDOWS

CE

AND

W

INDOWS

M

OBILE




CETerm Scripting Guide

Page 40


status = Delete ( eventHandle )

Delete the specified eventHandle from management. The Create() method must
have been used to create the eventHandle. For convenience, you may specify
the eventName used in the Create() call rather than the eventHandle. Delete()
will clear the event listener if it exists. After deleting an eventHandle, it can no
longer be used for any event operations. If Delete() closes the last open handle
to the Windows event, the named event will no longer exist within Windows.

Return 0 for success, or a negative value for failure. Use the Event property
LastError to get additional error information.

status = DeleteAllEvents ( )

Delete all eventHandles obtained with Create(). All event listeners associated
with the events are cleared. DeleteAllEvents() will not clear event listeners that
have been assigned, by name, to Windows events created by other programs.

Return 0 if any events are deleted, or a negative value if none deleted.

script = GetHandlerScript ( eventHandleOrName )

Return the handler script associated with the specified eventHandle or
eventName. Return null if no listener found.

script = GetList ( )

Return a list of events from Create() calls and active SetListener() handlers. The
returned list is in the form of a JavaScript array literal [ …] which contains
JavaScript object lite

rals {…} containing information about each event. See

Section 2.8 for details about handling JavaScript literals. Return empty array or
null if no events found.

Names of events are included in the results if specified in a Create() call. The
manualReset is included if the Create() call actually created the corresponding
Windows CE event.

Here is a sample event list output:

[{id:0xFE490034,name:"MyPrivateEvent",manualReset:false},
{id:0xF345DE00,name:"ExistingEvent"},{id:0xEF546902}]

Advertising
This manual is related to the following products: