0 ceterm automation objects, 1 the ceterm object, Methods – Casio Naurtech CETerm Ver.5.5 Scripting Guide User Manual
Page 25

3.0 CETerm Automation Objects
This section describes the Automation Objects available to the CETerm script
engine. These objects provide access to the running CETerm application, TE
session screens, the Windows CE operating system, hardware device
components, and other features for developing rich applications.
The automation objects are accessed in a hierarchical manner similar to the
Document Object Model (DOM) of a webpage. The three top-level objects are
CETerm, Device, and OS. The CETerm object provides access to application
specific features. The Device object provides access to device hardware such
as keyboards and serial ports. The OS object provides access to generic
Operating System (OS) features such as files, events, processes, the network,
and the Windows registry.
Automation objects provide some of the same functionality provided by the
Window object in the web browser. For example, the familiar Window methods
alert() and setTimeout() are provided by the OS.Alert() and
CETerm.SetTimeout() methods.
Many of the automation objects on the OS hierarchy give direct access to low-
level Windows CE features. Although powerful, caution should be exercised
when using these features. We provide the basic API documentation in this
document. More information and useful discussion can be found by searching
the Microsoft msdn.microsoft.com website. Below, we suggest such searches
and provide relevant keywords.
The top-level CETerm objects are described in the first 3 sections below,
followed by all other objects in alphabetical order.
3.1
T
HE
CET
ERM
O
BJECT
The top-level CETerm object gives access to CETerm features, settings, and
session state. This section documents the methods and properties of the
CETerm object.
Methods
The following methods are available
Method
Action
AbortScript
Abort the currently running script
ClearAllTimers
Clear all SetTimeout and SetInterval timers
ClearInterval
Clear a recurring interval timer