Scripting, Introduction, Working with scripts – Hochiki TE-TLE User Manual

Page 40

Advertising
background image

40

Hochiki TE-TLE True Loop Emulator – User Manual

Hochiki Europe (UK) Ltd

2-3-0-416/Mar04/Iss3

Scripting

Introduction

Scripting is an advanced topic and should probably be left until you are familiar with other
aspects of the True Loop Emulator.

A script is a list of commands that will be executed by the True Loop Emulator. The
commands are written in a language that is very similar to the BASIC computer language.
This language is quite easy to learn; there are many books available.

The extensions to the language to make it appropriate for the True Loop Emulator are
covered in the online Help system (Search for 'Script Command' and 'Script Constants').

There are several sample scripts in the Help system that illustrate techniques and features of
scripting (Search for 'Example'). Also available is the "TE-TLE True Loop Emulator -
Software Script Guide (Part Number 2-3-0-460) which details all of the script commands
used in the Emulator software. Please contact Hochiki Europe (UK) Ltd for a copy of this
document.

Working with Scripts

Scripts can be displayed by clicking on the Script tab of the main window. This gives a large
area in which to type and edit a script.

A script can be generated by

Typing one in.

Opening a script file (Open button or Open menu item on Script menu).

Pasting one in from the clipboard (for instance, an example copied there from the
Script Examples).

Translating selected events from the Event Record using the Events button (search
for 'Convert Events' in the online Help).

The script can be saved and printed by using the standard buttons or the menu items on the
Script

menu.

The script can be started and stopped by using the Run and Stop buttons or the menu items
on the Script menu.

Advertising