The following is a list of script commands. For an introduction to writing a script and the script command syntax see Using the Scripting Language.
| AskFor | display a dialog box requesting user input. |
| Command | issue a command in the Windows command environment. |
| Connect | connect to a host using a named session. |
| Convert | convert screen position to row and column or vice versa. |
| CheckList | display a dialog box containing check boxes. |
| Chr | convert an ANSI character code to a character. |
| DDE | perform a complete DDE conversation in a single command. |
| DDEExecute | send a command to a DDE server application. |
| DDEInitiate | begin a DDE conversation with a DDE server application. |
| DDEPoke | send text to a DDE server application. |
| DDERequest | request text from a DDE server application. |
| FileSpec | specify the file to be used in a HostSave, HostPrintScreen, HostEnableLogging or EditSaveClipboard command. |
| FileStat | returns the status from an open request to a disk file. |
| Find | find a substring inside a string. |
| GetField | extract a field from a field-separated string. |
| GetString | read a string from a file into a variable. |
| Global | define a global variable. |
| Goto | branch to a label in the script file. |
| If | branch to a label in the script file based on the results of a comparison. |
| Int | returns the integer portion of a decimal number. |
| Key | simulate a function key. |
| LCase | convert a string to lower case. |
| Left | return characters from the left side of a string. |
| Len | return the length of a string. |
| Mid | return characters from the middle of a string. |
| Replace | replace a character or substring in a string. |
| Right | return characters from the right side of a string. |
| RunDirectory | specify the working directory for a program started by the "run" command. |
| Session | switch to another active session. |
| SetEnv | set the specified value into a local environment variable. |
| SetPrt | change the session printer. |
| SetUsertEnv | set the specified value into a user environment variable. |
| Trim | trim leading and/or trailing characters from a variable. |
| Type | "type" characters into the session terminal. |
| UCase | convert a string to upper case. |
| Wait | wait for the specified number of milliseconds. |
| WaitFor | wait until the specified text string appears in the host session ( WaitFor(USERID)). Or, wait until one of several specified text strings appears in the host session. When one of the text strings is found, branch to the specified label. |
See Also:
Script Variables
Using the Scripting Language
TN3270 Plus is continually being improved. To learn more about the latest enhancements,
please review our Version History web page.