
ECDIALER and ISDN 86
ECDIALER Script Language
A modem script tells your dialer what information to send in response to
specific cues. A script is like a program, and elaborate scripts can be written
to automate a wide range of communications functions. ECDIALER script is
used for the AT Dialer and programming of external asynchronous/
synchronous Hayes compatible modems.
The ECDIALER Script feature supports most external modems. Use any
ASCII text editor to create the script file.
Blank lines are accepted in the script. All commands must start in the first
column.
Valid commands are as follows:
:label
When you use a GOTO label command, the script jumps to the specified
label and continues execution from there. A label is any alphanumeric ASCII
string with a colon in the first position. The “—” (dash) and “_” (underscore)
characters can also be used for the label.
*comment
Any script line starting with an asterisk (*) in the first column is
treated as a comment, and ignored by the script. A comment is used only for
your information.
CLOSE_COMM
This command closes the Eiconcard port that is connected
to the external modem. This does not hang up the modem. CLOSE_COMM
must be the last statement executed when you are finished with the port.
DIAL number
This command dials the specified number. Success or failure
can be tested with the IFERROR statement. A MATCH command is commonly
used directly after DIAL to look for the CONNECT message from the modem.
GOTO label
This command causes processing of the script file to continue
at the specified label. The label can be forward or backward, and can thus be
used for looping.
IFERROR label
This command causes execution of the script file to continue
from the specified label if an error occurred during one of the following
commands: MATCH, DIAL, OPEN_COMM, or TYPE. Use IFERROR
immediately after these commands to test for errors.
MATCH string
This command pauses execution of the script file until input
is received that matches the specified string. For instance, a Hayes modem
Komentáře k této Příručce