Properties, Property description values – Casio Naurtech CETerm Ver.5.5 Scripting Guide User Manual
Page 42

N
AURTECH
W
EB
B
ROWSER AND
T
ERMINAL
E
MULATION FOR
W
INDOWS
CE
AND
W
INDOWS
M
OBILE
CETerm Scripting Guide
Page 42
status = SetListener ( eventHandleOrName, handlerScript, timeout )
Assign a handler script to an event. The eventHandle is obtained from a Create()
call. If you use an eventName, the event must have been previously created
within Windows by Create() or by another program. The handlerScript will be
queued for execution if the event is signaled within timeout milliseconds. The
handler script is not invoked if the listener times out.
The special timeout value of 0xFFFFFFFF will never timeout. The special
timeout value 0 will cause an immediate check of the event state. NOTE: The
currently running script which invoked SetListener must finish before any handler
can be executed.
Return 0 if a listener is set or a negative value on error.
status = SetProcessListener ( processID, handlerScript, timeout )
The SetProcessListener method assigns a handler to the special event that
occurs when a process exits. The processID is the process id number assigned
when the process is created by Windows. You can find process id values using
the Process object methods. The handlerScript will be queued for execution if
the process exits within timeout milliseconds. The handler script is not invoked if
the listener times out.
The special timeout value of 0xFFFFFFFF will never timeout. The special
timeout value 0 will cause an immediate check of the event state. NOTE: The
currently running script which invoked SetProcessListener must finish before any
handler can be executed.
Return 0 if a listener is set or a negative value on error.
Properties
The Event object has the following properties.
Property
Description
Values
LastError
Returns the last error value associated
with the Event object.
unsigned
integer