beautypg.com
N
AURTECH
W
EB
B
ROWSER AND
T
ERMINAL
E
MULATION FOR
INDOWS
CE
AND
M
OBILE
CETerm Scripting Guide
Page 6
5.6 Accessing a File ................................................................................................................. 110
5.7 Accessing the Registry ...................................................................................................... 111
5.8 Controlling a Serial Port from CETerm .............................................................................. 112
5.8.1 SerialPort Objects ....................................................................................................... 112
5.8.2 Setting the PortName .................................................................................................. 113
5.8.3 Configuring SerialPort Properties ................................................................................ 113
5.8.4 Using WaitForEvent to Detect Data and State Changes ............................................ 115
5.8.5 Using Single Byte Reads............................................................................................. 117
5.9 Writing Efficient Scripts ...................................................................................................... 118
5.9.1 Use Local Variables .................................................................................................... 118
5.9.2 Encapsulate Code in Functions .................................................................................. 119
5.9.3 Limit Execution Time ................................................................................................... 120
5.10 Debugging Scripts ............................................................................................................ 120
5.10.1 Show Script Errors .................................................................................................... 120
5.10.2 OS.Alert() .................................................................................................................. 121
Appendix 1 - IDA Action Codes ................................................................................................... 122
Appendix 2 - Properties ............................................................................................................... 131
Application Properties .............................................................................................................. 131
Device Properties ..................................................................................................................... 131
Session Properties ................................................................................................................... 132
Scanner Properties .................................................................................................................. 133
Common Symbology Properties .............................................................................................. 134
Codabar Symbology Properties ............................................................................................... 135
Code39 Symbology Properties ................................................................................................ 136
Code 128 Symbology Properties ............................................................................................. 137
UPC-EAN General Symbology Properties ............................................................................... 138
Symbology Names ................................................................................................................... 139
Appendix 3
– Symbology LabelTypes ......................................................................................... 141
Appendix 4 - Constants ............................................................................................................... 143
Battery and Power Management Constants ............................................................................ 143
Browser Error Constants .......................................................................................................... 144
File Attribute Constants ............................................................................................................ 145
IBM Status Constants .............................................................................................................. 145
Keyboard Constants ................................................................................................................ 146
MessageBox Constants ........................................................................................................... 147
PlaySound Constants .............................................................................................................. 147
Registry Constants ................................................................................................................... 148
Service State Constants .......................................................................................................... 148
Serial Port Constants ............................................................................................................... 149
Window Constants ................................................................................................................... 151
Appendix 5
– Microsoft Virtual-Key (VK) Codes .......................................................................... 153
Glossary ....................................................................................................................................... 158
Index ............................................................................................................................................ 159