Casio Naurtech CETerm Ver.5.5 Scripting Guide User Manual

Page 5

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 5


Example for Windows Mobile devices .................................................................................... 88

4.6 The OnNavigateRequest Event ........................................................................................... 89

Syntax ..................................................................................................................................... 89

Example .................................................................................................................................. 89

4.7 The OnNetCheckFailed Event ............................................................................................. 90

Syntax ..................................................................................................................................... 90

Example .................................................................................................................................. 90

4.8 The OnProgramExit Event ................................................................................................... 91

Syntax ..................................................................................................................................... 91

Example .................................................................................................................................. 91

4.9 The OnProgramStart Event ................................................................................................. 91

Syntax ..................................................................................................................................... 92

Example .................................................................................................................................. 92

4.10 The OnSerialPortEvent Event ............................................................................................ 92

Syntax ..................................................................................................................................... 92

Example .................................................................................................................................. 92

4.11 The OnSessionConnect Event........................................................................................... 93

Syntax ..................................................................................................................................... 93

Example .................................................................................................................................. 93

4.12 The OnSessionDisconnect Event ...................................................................................... 93

Syntax ..................................................................................................................................... 94

Example .................................................................................................................................. 94

4.13 The OnSessionDisconnected Event .................................................................................. 94

Syntax ..................................................................................................................................... 94

Example .................................................................................................................................. 94

4.14 The OnSessionReceive Event ........................................................................................... 95

Syntax ..................................................................................................................................... 95

Example .................................................................................................................................. 95

4.15 The OnSessionSwitch Event ............................................................................................. 96

Syntax ..................................................................................................................................... 96

Example .................................................................................................................................. 96

4.16 The OnStylusDown Event .................................................................................................. 96

Syntax ..................................................................................................................................... 97

Example .................................................................................................................................. 97

4.17 The OnTriggerEvent Event ................................................................................................ 97

Syntax ..................................................................................................................................... 97

Example .................................................................................................................................. 98

4.18 The OnVTCommand Event ................................................................................................ 98

Syntax ..................................................................................................................................... 98

Example .................................................................................................................................. 98

4.19 The OnWakeup Event ........................................................................................................ 99

Syntax ..................................................................................................................................... 99

Example ................................................................................................................................ 100

5.0 Scripting Techniques and Tips .............................................................................................. 102

5.1 Expect and ExpectMonitor for Automating Tasks .............................................................. 102

5.1.1 Expect Script ............................................................................................................... 102

5.1.2 ExpectMonitor Class ................................................................................................... 103

5.1.3 Automating Tasks with Expect .................................................................................... 106

5.2 Presenting Visual Feedback During Script Execution ....................................................... 107

5.3 Getting User Input to a Script............................................................................................. 108

5.4 Running an External Program............................................................................................ 109

5.5 Using Timers to Run Scripts .............................................................................................. 109

Advertising
This manual is related to the following products: