intro_script
Scripting or tape recording of console programs is available.
A script is a record of the interrupts, cursor movement and key
presses made by a user while running a program.
Scripts can be created by choosing the "Enable Scripting" command
under the "Cmnds" menu on the index page. You are then prompted
to input a 16 character script name. After the script name has been
entered, start up the program to be scripted. Upon program startup,
you will be presented with a dialog which will allow you to determine
which type of script you wish to created or to cancel the script
creation process altogether. If you are on a public console, you
will also be asked to enter your user name and password for accounting
purposes. You then operate the program as you normally would. When
you have completed all the operations you wish to record, simply
exit the program. While you are recording the script, you can press
the "Insert Here" key at any time to insert a special piece of
information. This can be a text file, a GIF image, or a timed pause.
Settings and file write locks can also be turned on and off in this
manner.
Scripts can be replayed by either the 'script_select' or 'script_menu'
routines. The "Pgm_Tools" menu also contains commands for replaying
scripts. Scripts can be replayed at different speeds. A speed of
1.0 plays the script back at the speed in which it was recorded.
A larger speed parameter causes it to be played back more slowly,
while a smaller value plays it back faster. A playback speed value
of 0.0 causes all periodic interrupts and their corresponding cursor
movements to be inhibited. This allows the fastest possible script
playback.
There is a program which contains directories of scripts as well as
other script utilities. This program is called Script Utilities,
and it can be found on D135.
These functions require the following include files:
cbslib_h
Related functions:
script_accept, script_check, script_create, script_delete,
script_get_dir, script_lock, script_menu, script_select,
script_status, script_stop, script_unlock