Support for dial-up network scripting production
Dial-up scripting creation command language
table of Contents
1.0 overview
2.0 basic structure of the script
3.0 variable
3.1 system variable
4.0 string
5.0 expression
6.0 Note
7.0 keyword
8.0 command
9.0 reserved word
1.0 overview
Many Internet Service Providers and online services require you to manually enter information, such as user names and passwords to establish a connection. With the script of the dial-up network, you can write a script to make this process automatically.
The script is a text file that contains a series of commands, parameters, and expressions required for Internet service providers and online services to establish a connection and use of services. You can use any text editor, such as Microsoft Notes, to create a script file. Once the script file is established, it can be assigned to a specific dial-up network connection by running the dial script production tool.
2.0 basic structure of the script
The command is the basic structure of the script file. Some commands require parameters to further explain the operations that the command should perform. The expression is a collection of variables and operators and thus draws a result. Expression can be used as a parameter value in any command. Typically, the expression is connected by an arithmetic operator, a relational comparison symbol, and a string.
The following is the basic format of the dial-up network script:
;
The annotation of each line starts with a semicolon until the end.
;
Proc main
Each script can have multiple variables and commands
Variable Declarations
Command Block
ENDPROC
Each script must have a main program, specified by the Proc keyword, and use the EndProc keyword to the end of the program.
Before adding a command, you must first define the variable. After the first command of the main program executes, the following command will be executed in the order in the script, and the end of the main program means the end of the script.
3.0 variable
The script can contain variables. The variable name must begin with letters or underscores ('_'), which can contain cases, numbers, and underscores, but cannot use the reserved word as a variable name. For more information, see the reserved phrase at the end of the document.
Before using the variable, it must be declared. When declaring variables, it must be defined at the same time. Some types of variables can only contain values of the same type. Scripts support the following variable types:
Type description
Integer (integer) positive or negative number, such as 7, -12 or 5698.
String (string type) is included in a set of characters in dual quotation marks (""); such as "Hello World!" Or "Enter Password:".
Boolean (Boolean) logical Boolean, including True and False.
Use the following assignment statements to allocate values for variables:
Variable = expression (variable = expression)
The result of the expression will assign a variable.
E.g:
Integer count = 5
Integer Timeout = (4 * 3)
Integer i
Boolean BDONE = FALSE
String Szip = (Getip 2)
Set ipaddr szip
3.1 system variable
The system variable can be set by command settings of the creation script, or by the information entered when the dial network connection is established. The system variable is read-only and cannot be modified in the script. it includes:
Name type description
$ UserID String The user identity currently used. This variable is "dial-up network connection"
The username defined in the dialog.
$ Password String The password currently used. This variable is the password defined in the Dial Network Connect to the dialog.
$ SUCCESS BOOLEAN This variable is set by a specific command to indicate whether the command is successful. Script will
The value of this variable makes a decision.
$ FAILURE BOOLEAN This variable is set by a specific command to indicate whether the command is failed. Script will
The value of this variable makes a decision.
These variables can be used in any type of expression. Such as:
TRANSMIT $ UserID
Is a valid command because $ userid is a string variable.
4.0 string
The script of the dial-up network supports the ESCAPE sequence and the transition, as described below.
String description
^ char Deuttable conversion
If the Char is between '@' and '_', the character sequence will be converted to a single-by-item value from 0 to 31. For example, ^ m is converted into a carriage return
If the Char is between A and Z, the character sequence will be translated into a single-by-item value from 1 to 26.
If char is other values, there is no special processing method.
/" Double quotes
/ ^ Single dazzle ^
/ // Reverse slope E.g: Transmit "^ M" Transmit "Joe ^ M" Transmit " Waitfor "