Status = clearalllisteners ( ), Status = clearlistener ( event ), Eventhandle = create ( eventname, manualreset ) – Casio Naurtech CETerm Ver.5.5 Scripting Guide User Manual
Page 39

N
AURTECH
W
EB
B
ROWSER AND
T
ERMINAL
E
MULATION FOR
W
INDOWS
CE
AND
W
INDOWS
M
OBILE
CETerm Scripting Guide
Page 39
GetHandlerScript
Returns the handler script for an active listener.
IsExistingEvent
Returns status of an event handle.
IsListenerSet
Returns status of a listener on a single event.
Pulse
Signals all listeners that an event is set, then resets the
event to the non-signaled state
Reset
Reset an event to the non-signaled state.
Set
Set an event to the signaled state.
SetListener
Assign a handler script to an event. The handler is run
when the event is signaled.
SetProcessListener Assign a handler script to a running process. The handler
is run when the process exits.
status = ClearAllListeners ( )
Clear all handler scripts that have been assigned to events. ClearAllListeners
will also clear handler scripts waiting for processes. Return 0 for success, or a
negative value for failure.
status = ClearListener ( event )
Clear the handler script for the specified event. The event may be specified by
the integer event handle or the event name. Return 0 for success, or a negative
value for failure.
eventHandle = Create ( eventName, manualReset )
Create an eventHandle for the named event. The eventName cannot be empty.
If manualReset is true, the event will not be reset after waiting for a listener. If
manualReset is false, the event is automatically reset after waiting for a listener.
If the named event already exists within Windows, the manualReset value is
ignored and a handle to the existing event is returned. Otherwise, the event is
created within Windows.
Create is typically used when a new event is created for use exclusively within
CETerm. Create may also be used to create a handle within CETerm to access
an event which is normally created within Windows by another program or driver.
Return the eventHandle for success, 0 for failure.
Use the Event property LastError to get additional error information.