Click here to load reader

Naurtech CETerm Scripting Guide - Support | Home | CASIO · PDF fileNAURTECH WEB BROWSER AND TERMINAL EMULATION FOR WINDOWS CE AND WINDOWS MOBILE CETerm Scripting Guide Page 8 Additional

  • View
    2

  • Download
    0

Embed Size (px)

Text of Naurtech CETerm Scripting Guide - Support | Home | CASIO · PDF fileNAURTECH WEB BROWSER AND...

  • CETerm Scripting Guide

    for Version 5.5.0 or later

    Naurtech Web Browser And

    Terminal Emulation Clients

    For Windows CE Devices

    CETerm | CE3270 | CE5250 | CEVT220

  • NAURTECH WEB BROWSER AND TERMINAL EMULATION FOR WINDOWS CE AND WINDOWS MOBILE

    CETerm Scripting Guide Page 2

    Copyright Notice

    This document may not be reproduced in full, in part or in any form, without prior written permission of Naurtech Corporation. Naurtech Corporation makes no warranties with respect to the contents of this document and specifically disclaims any implied warranties of merchantability or fitness for any particular purpose. Further, Naurtech Corporation, reserves the right to revise this publication and referenced software without any obligation to notify any person or organization of such revision or changes.

    Trademarks

    CETerm®, CE3270™, CE5250™, CEVT220™ are trademarks of Naurtech Corporation. Other product names mentioned in this manual may be trademarks or registered trademarks of their respective companies and are hereby acknowledged.

    Software Version

    This document is for Version 5.5.0 or later of Naurtech Web Browser and Terminal Emulation clients.

  • NAURTECH WEB BROWSER AND TERMINAL EMULATION FOR WINDOWS CE AND WINDOWS MOBILE

    CETerm Scripting Guide Page 3

    Table of Contents Copyright Notice .............................................................................................................................. 2 Trademarks ...................................................................................................................................... 2 Software Version ............................................................................................................................. 2 Table of Contents ............................................................................................................................ 3 Preface ............................................................................................................................................ 7 Assumptions .................................................................................................................................... 7 Conventions used in this Manual..................................................................................................... 7 Additional Documentation ................................................................................................................ 8 Online Knowledgebase .................................................................................................................... 8 1.0 Introduction ................................................................................................................................ 9

    1.1 Feature Highlights ................................................................................................................ 10 2.0 Getting Started ........................................................................................................................ 12

    2.1 JavaScript Engine ................................................................................................................ 12 2.2 Enabling Scripting and Editing Scripts ................................................................................. 13

    General Settings ..................................................................................................................... 13 Editing Scripts ........................................................................................................................ 13

    2.3 CETerm Automation Objects ............................................................................................... 16 2.4 IDA Action Codes ................................................................................................................. 16 2.5 OnBarcodeRead Script Event .............................................................................................. 16 2.6 Automated Login .................................................................................................................. 19 2.7 Custom Screen Hot-Spots ................................................................................................... 21 2.8 Handling JavaScript Literal Values ...................................................................................... 22

    2.8.1 Array Literals ................................................................................................................. 23 2.8.2 Object Literals ............................................................................................................... 23 2.8.3 Complex Literals ............................................................................................................ 23 2.8.4 Optional Object Properties ............................................................................................ 24

    3.0 CETerm Automation Objects ................................................................................................... 25 3.1 The CETerm Object ............................................................................................................. 25

    Methods .................................................................................................................................. 25 Properties ............................................................................................................................... 30

    3.2 The Device Object ............................................................................................................... 30 Methods .................................................................................................................................. 30 Properties ............................................................................................................................... 32

    3.3 The OS Object ..................................................................................................................... 33 Methods .................................................................................................................................. 33 Properties ............................................................................................................................... 35

    3.4 The Browser Object ............................................................................................................. 37 Methods .................................................................................................................................. 37 Properties ............................................................................................................................... 38

    3.5 The Event Object ................................................................................................................. 38 Methods .................................................................................................................................. 38 Properties ............................................................................................................................... 42

    3.6 The File Object ..................................................................................................................... 43 Methods .................................................................................................................................. 43 Properties ............................................................................................................................... 46

    3.7 The FTP Object .................................................................................................................... 46 Methods .................................................................................................................................. 47

  • NAURTECH WEB BROWSER AND TERMINAL EMULATION FOR WINDOWS CE AND WINDOWS MOBILE

    CETerm Scripting Guide Page 4

    Properties ............................................................................................................................... 49 3.8 The GPS Object ................................................................................................................... 50

    Methods .................................................................................................................................. 51 Properties ............................................................................................................................... 52 Example .................................................................................................................................. 53

    3.9 The Keyboard Object ........................................................................................................... 55 Methods .................................................................................................................................. 55 Properties ............................................................................................................................... 58 Example .................................................................................................................................. 59

    3.10 The Message Object .......................................................................................................... 60 Methods .................................................................................................................................. 60 Prope