Ericom
®
PowerTerm
®
Pro 97 of 150 User’s Guide
9. SCRIPTS
PowerTerm Pro enables you to create scripts for automating tasks. For
example, you can create a script to login to a PowerTerm Pro session,
execute a file, display a message, etc. Scripts can be run upon startup or
during a PowerTerm Pro session. They can be written in any standard
text editor, like Notepad, and are saved with a .psl extension. This
chapter describes how to create, edit, run, save and activate script in
PowerTerm Pro.
The PowerTerm Pro Script Language (PSL) is PowerTerm Pro's own
programming language. For a full description of the different PSL
commands, see the "PowerTerm Pro Script Language, Programmer's
Reference".
PowerTerm Pro provides the following script options:
Create a Script, creates a script to run upon startup or at any
time during a PowerTerm Pro session.
Edit a Script, edits and modifies an existing script file.
Record a Script, creates a script by recording all the actions
that you perform in the PowerTerm Pro window. Actions can
include selecting a menu option, typing an entry on the
screen, making selections in a dialog, and so on.
Run Scripts, runs specific scripts or individual commands,
upon startup, connection to a host, or during a PowerTerm Pro
session, to automate specific tasks, you can only run saved
scripts.
Activate a Recorded Script, executes a non-saved script from
the current memory.
Save a Recorded Script, saves your script to be used at a later
date.
Assign Scripts, to the Power Pad and Soft buttons.
To create a script file:
1. Select Script | Edit Script. The Edit Script dialog appears.
2. Type a name for the new script in the script Name text box.
3. Click Edit. The PowerTerm Pro Script Editor appears.
4. Type the script and click Save from the File menu to save your
new script. The next time you run or edit a script, this new file
will appear in the Scripts List.
5. Select File | Exit to exit the editor.