Distinct IntelliTerm supports the defining of Quick-Keys. A quick-key is
a collection of keystrokes that can be easily referenced and assigned to
keys.
To create, edit, and delete macros, select the Quick-Key option from the
Terminal Settings command in the Options menu.
Quick-Keys can contain two types of objects—quoted text strings and system
commands. A quoted string is an ASCII string enclosed by double quotes.
The sample dialog box above has some quoted text. A system command is one
of the system commands displayed in the list box.
Creating a Quick-Key
To create a new Quick-Key:
1
First enter the Quick-Key name in the Quick-Key Name text box.
2
Tab to the Assigned Quick-Key String text box and enter the Quick-Key string.
A Quick-Key can be up to 1000 bytes long and contain an unlimited number
of strings and commands. All words must be separated by a space. For example,
you must have a space between system commands and quoted strings.
3
To add system commands to the Assigned Quick-Key String edit box, simply
click on the function and then press the Append function. The program will
append the command name and add a space if necessary.
When you select System Commands, their descriptions display in the Description
box.
4
Click on the Set button to save the Quick-Key.
Once you have added the Quick-Key(s) you want, you can run them by selecting
them in the Quick-Key name text box, and clicking on the Run button.
Editing a Quick-Key
To edit an existing Quick-Key, select the Quick-Key name in the list box
of existing Quick-Keys. This will copy the name to the Quick-Key name text
box and copy the value to the Assigned Quick-Key String text box. Change
the Quick-Key as desired and then click on Set to save the new Quick-Key
value.
Renaming a Quick-Key
To rename a Quick-Key, select the Quick-Key name in the list box of existing
Quick-Keys. This will copy the name to the macro name text box and copy
the value to the Assigned Quick-Key String text box. Then, change the name
to the new name and click on Set to save the new Quick-Key. Delete the
old Quick-Key by selecting the old Quick-Key name and clicking on Clear.
Deleting a Quick-Key
To delete a Quick-Key, select the Quick-Key name in the list box of existing
macros. Then click on the Clear button to delete the entry.
Special Quick-Key Functions
There are some special functions which are available only in Quick-Keys.
These functions can be used to automate certain operations.
IPause The Intelligent Pause function can be used to synchronize AID generating
keys. This function causes the Quick-Key to pause for up to 5 second or
until the 3270 keyboard unlocks, whichever comes first. You can insert
more than one IPause function if you need to wait for a longer time.
Pause The Pause function can be used to synchronize AID generating keys.
This function causes the macro to pause for a ½ second interval regardless
of the state of the keyboard. This can be useful if you want a macro to
press multiple AID generating keys.
Password The Password function can be used to type the contents of the Password
edit field stored in the session profile. This allows you to save a password
(encrypted) in a profile and use it without knowing its contents. The password
text is only entered if the current field is a non-display field.
Prompt-Password The Prompt-Password function can be used to prompt the user
for a password. The contents of the password are stored in an internal
variable which can be entered into a hidden field using the Password command
described above. For example, if you wanted to create a script that logged
you into CMS automatically, your Quick-Key might look something like this:
Home Prompt-Password “CMSUSER” Tab Password Enter
This Quick-Key presses the Home key, prompts for the password, enters a
user id called “CMSUSER”, presses the Tab key, enters the password contents,
and presses the Enter key.
Run The Run function allows you to run an external program
directly. The
function and options are passed by entering text immediately after the
Run command in a macro. For example:
Run “NOTEPAD.EXE C:\CONFIG.SYS”
When
using the Run function, a text string must follow the Run function. The
text string contains the full command name and any command line options.
Any other functions entered after the string are ignored.
Start-Session The Start-Session function allows you to start a new terminal
session. The function is passed by entering text immediately after the
Start-Session function in a Quick-Key. For example:
Start-Session “profilename”
When
using the Start-Session function, a text string must follow the Start-Session
function. The text string contains the profile name. Any other functions
entered after the string are ignored.