Brother International PDP350CJ Owner's Manual - English - Page 372
GOTO <label>, MATCH <text> GOTO <label>, PROMPT <number>, PORT <port>
View all Brother International PDP350CJ manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 372 highlights
Command END GOTO MATCH GOTO PROMPT PAUSE PORT Description Example This command stops the script and returns control to you. It does not jump to the :ABORT label. Use this command to continue manually what the script has started for you.This is useful for beginning script users as a way to implement a basic script to see how one works. This script dials the phone number, 9,555-1212, then returns the Communication window back to you just as if you had used the Quick Dial option on the Dial menu. DIAL 9,555-1212" END This command instructs Communication For example, the following line: to go to the line specified by the label. You can use the GOTO command to JumpToThisLabel jump to specified label lines (lines that must be referred to in a GOTO begin with a colon). You must enter the command as: GOTO label commands exactly the way GOTO JumpToThisLabel you typed the label. (Be sure to leave off the colon, though.) The MATCH and PROMPT commands work together to make Communication perform some action based on text received from another computer.First, the MATCH command makes Communication look for in the text that is transmitted by the other computer. You can specify many MATCH commands but after them all, you must include a PROMPT command.The text for the MATCH commands must be entered inside quotation marks ( ). The PROMPT command specifies the amount of time your computer waits for the sending computer to supply the Matching text. PROMPT time values are in sixtieths of a second. (That is, 3600 sixtieths is a minute.) If the MATCH command is satisfied within the time specified in the PROMPT command, the script goes to the given label. ?Goes where? Otherwise, Communication goes to next line in the script. MATCH password?" GOTO DoPass MATCH System is down" GOTO SystemDown PROMPT 3600 PRINT No Response" The first MATCH command looks for the text password?" from the remote computer. If the text is sent, the script goes to the label DoPass", otherwise it continues with the next MATCH statement. If the second MATCH is made, the script goes to the label SystemDown." If neither condition is met in the allotted minute (PROMPT 3600), the script prints No Response" in the Script Display window. This command causes Communication to pause for the amount of time specified. The number value is in sixtieths of a second. The default is 60, or one second. To have your script pause for one minute, use the following line: PAUSE 3600 This command instructs Communication to use the Com port specified. (This is a modem connectors on your computer or word processor where your modem is connected) This command is the equivalent of specifying Modem Port in the Protocol dialog box. For more information, see Choosing the Protocol Settings" in this chapter. The following command tells Communication to use Com port 2: PORT 2 Using a Modem 346