Previous Section
Previous Section: Program Differences
Document HomeDocument Home
Next Section: Connecting to a Remote Host
Next Section


Tutorials

This section provides a number of step-by-step guides to using Wozterm to provide typical, basic functionality. It will prove most informative to those that have not used previous versions of Ozterm, as well as describe the usage of changed Ozterm features, such as @menu and @form.

Not all screenshots have been included in these steps. In most cases, there will be a relevant screenshot elsewhere in this User Manual, or the step uses standard Windows™ dialogs, with which users should be familiar.

Opening and Running a Script

 

To gain basic functionality from Wozterm, a user must be able to open and run a Wozterm script. This tutorial is a walk-through of an example script - menu.cmd:

  1. Select the menu.cmd for execution by browsing to it via File>Open, or prepare a new menu.cmd script for use by Copy/Pasting it into Wozterm from the Tutorial Files section of the Appendix or by typing it in manually.
  2. Script>Run. Note that running a script will automatically Syntax Check it and save if required. If no syntax errors are found the script should run.
  3. This script uses the @menu command. After running it, note that execution pauses on line 00010 as indicated by the Script Progress Bar, and the @MENU dialog box is displayed with the annotation "Currency". This indicates that you are required to select an option from the @MENU Currency dialog for execution to continue. @Menu Currency>AUS$.
  4. Figure 4.1 - menu.cmd script

    menu.cmd Script

  5. After selecting AUS$ the execution will again pause on line 00015 as indicated by the Script Progress Bar, and the @FORM dialog box is displayed. This indicates that you are required to complete the fields displayed and select "Ok" (or press ENTER) for execution to continue. Date: 01/01/01, Amount: 100, Reverse conversion also: Checked.
  6. After selecting Ok, the program outputs some related text, and pauses. Note that due to the use of @pause, the script simply stops execution and is not unloaded.
  7. Run the script again using the Run Action Button and try the other options available from @MENU and @FORM dialogs. If you are feeling confident with the scripting language, attempt to change the script to output a "Hello World!" message with a fourth menu option.


Previous Section
Previous Section: Program Differences
Document HomeDocument Home
Next Section: Connecting to a Remote Host
Next Section



This publication has been prepared and written by Telstra Corporation Limited (ACN 051 775 556), and is copyright. Other than for the purposes of and subject to the conditions prescribed under the Copyright Act, no part of it may in any form or by any means (electronic, mechanical, microcopying, photocopying, recording or otherwise) be reproduced, stored in a retrieval system or transmitted without prior written permission from the document controller. Product or company names are trademarks or registered trademarks of their respective holders.

Note for non-Telstra readers: The contents of this publication are subject to change without notice. All efforts have been made to ensure the accuracy of this publication. Notwithstanding, Telstra Corporation Limited does not assume responsibility for any errors nor for any consequences arising from any errors in this publication.