Script Command Summary (Release 3.6 and above)

Return to Introduction  Previous page  Next page

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.

 

CommandDescription        

AskFor   display a dialog box requesting user input.
 
Commandissue 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.
 
CheckListdisplay a dialog box containing check boxes.
 
Chrconvert an ANSI character code to a character.
 
CursorTomove the cursor.
 
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.
 
DDEPokesend text to a DDE server application.
 
DDERequest request text from a DDE server application.
 
DDETerminate close a DDE channel.
 
EditSelect select data for cut and copy.
 
Exitexit the script.
 
FileSpecspecify the file to be used in a HostSave, HostPrintScreen, HostEnableLogging or EditSaveClipboard command.
 
FileStatreturns the status from an open request to a disk file.
 
FileTransferinitiate a file transfer.
 
Findfind a substring inside a string.
 
GetFieldextract a field from a field-separated string.
 
GetStringread a string from a file into a variable.
 
Globaldefine a global variable.
 
Gotobranch to a label in the script file.
 
Ifbranch to a label in the script file based on the results of a comparison.
 
Includecall another script file.
 
Intreturns the integer portion of a decimal number.
 
Keysimulate a function key.
 
LCaseconvert a string to lower case.
 
Leftreturn characters from the left side of a string.
 
Lenreturn the length of a string.
 
Midreturn characters from the middle of a string.
 
MsgBoxdisplay a dialog box.
 
Optionset script options.
 
PutStringwrite a string to a file.
 
Replacereplace a character or substring in a string.
 
Rightreturn characters from the right side of a string.
 
Roundround a number.
 
Runrun an application. 
 
RunDirectoryspecify the working directory for a program started by the "run" command.
 
Sessionswitch to another active session.
 
SetEnvset the specified value into a local environment variable.
 
SetPrtchange the session printer.
 
SetUsertEnvset the specified value into a user environment variable.
 
SSLConnectbegin a TLS connection.
 
TextBoxdisplay a dialog box.
 
Trimtrim leading and/or trailing characters from a variable.
 
Type"type" characters into the session terminal.
 
UCaseconvert a string to upper case.
 
Waitwait 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.