home *** CD-ROM | disk | FTP | other *** search
/ Power CD-ROM!! 7 / POWERCD7.ISO / dos / commo641 / macro.doc < prev    next >
Text File  |  1994-11-20  |  150KB  |  5,087 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.     {COMMO} (tm)
  7.  
  8.                    "A New Standard in Telecommunications"
  9.  
  10.  
  11.         by Fred P. Brucker
  12.  
  13.  
  14.  
  15.  
  16.  
  17.             Part II
  18.               Macro Programming Guide
  19.  
  20.  
  21.             Release 6.41
  22.               November 20, 1994
  23.  
  24.  
  25.  
  26.  
  27. The {COMMO} program and associated on-disk documentation are the property
  28. of Fred P. Brucker (the "author") and may not be sold without permission. 
  29. The Shareware version may be distributed, unaltered and as a unit, via
  30. Electronic Bulletin Board Systems.
  31.  
  32. SHAREWARE DISTRIBUTORS and clubs, please see the file VENDOR.DOC for
  33. distribution guidelines.
  34.  
  35.  
  36. THE AUTHOR OF THIS PROGRAM DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR
  37. IMPLIED, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF
  38. MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, WITH REGARD TO THE
  39. SOFTWARE, THE ACCOMPANYING WRITTEN MATERIALS AND THE DISKETTES.  IN NO
  40. EVENT SHALL THE AUTHOR BE LIABLE TO YOU FOR ANY CONSEQUENTIAL, SPECIAL,
  41. INCIDENTAL OR INDIRECT DAMAGES OF ANY KIND ARISING OUT OF THE USE OF THE
  42. SOFTWARE, EVEN IF THE AUTHOR HAS BEEN SPECIFICALLY ADVISED OF THE
  43. POSSIBILITY OF SUCH DAMAGES.  IN NO EVENT WILL THE AUTHOR'S LIABILITY
  44. EXCEED THE ACTUAL PRICE PAID FOR THE LICENSE TO USE THE SOFTWARE.
  45.  
  46. YOUR USE OF THIS PROGRAM CONSTITUTES YOUR ACCEPTANCE OF THESE TERMS.
  47.  
  48.  
  49. {COMMO} is a trademark of Fred P. Brucker.  All other trademarks and
  50. registered trademarks referenced in this document are the property of their
  51. respective owners.
  52.  
  53.  
  54.  
  55.                      ================================
  56.                      {COMMO} Registration Information
  57.                      ================================
  58.  
  59.   {COMMO} is a "SHAREWARE" product.  You are entitled to evaluate it for
  60.   30 days.  If it suits your needs and you would like to continue using
  61.   it, then you must pay the licensing fee.  Please use the REGISTRATION
  62.   FORM on the next page.
  63.  
  64.   When you REGISTER you will be licensed to use all future SHAREWARE
  65.   releases of {COMMO}.  You will never have to pay an "update" charge.
  66.   Registration allows you to eliminate delay screens and to enable extra
  67.   features (see READ.ME for list).  Registered users will receive
  68.   priority support on Bulletin Boards and CompuServe (see READ.ME).
  69.  
  70.   Call or write for pricing information on MULTI-USER (SITE) and
  71.   DISTRIBUTION licenses.  Discounts are given on quantities of 10 or more.
  72.  
  73.   All prices shown are US DOLLARS.  Please remit US FUNDS on US BANK only.
  74.   NET 30 TERMS will be accepted on purchase orders totalling $100.00 or
  75.   more.
  76.  
  77.   The PRINTED MANUAL is 7 x 8.5 (inches) in size and includes an index.
  78.   The DISKETTE has the latest {COMMO} release plus the latest version of
  79.   the Enhanced MOSTHOST host macro.
  80.  
  81.   For orders, inquiries and support for registered users, call MON-SAT,
  82.   9am-5pm, EASTERN time.  If you get my answering machine, please try
  83.   again later (I cannot return long distance calls).
  84.  
  85.   To register by E-mail on CompuServe or Internet, upload the completed
  86.   Registration Form as a message (text or binary).
  87.  
  88.      MAILING ADDRESS:    Fred P. Brucker
  89.                          P.O. Box 141537
  90.                          Columbus, OH 43214
  91.  
  92.      VOICE TELEPHONE:    (614) 326-1309
  93.      COMPUSERVE:         71021,356
  94.      INTERNET:           71021.356@compuserve.com
  95.  
  96.   PAYMENT OPTIONS:
  97.  
  98.   1) CHECK or MONEY ORDER:  make payable to FRED P. BRUCKER.
  99.  
  100.   2) CREDIT CARD:  fill in the credit card information at the bottom of
  101.      the Registration Form (next page).  Credit card orders may be mailed,
  102.      phoned or E-mailed via CompuServe.
  103.  
  104. --------------------------------------------------------------------------
  105.  
  106.  
  107.  
  108.                  {COMMO} 6.41 SINGLE USER REGISTRATION FORM
  109.  
  110.   Name     _______________________________________________________________
  111.  
  112.   Company name (if company address)   ____________________________________
  113.  
  114.   Address  _______________________________________________________________
  115.  
  116.            _______________________________________________________________
  117.  
  118.            _______________________________________________________________
  119.  
  120.              * All prices include shipping and handling *            Number
  121.                                                                     of Copies
  122.   {COMMO} single user license with PRINTED MANUAL and DISKETTE:
  123.          Price in USA/Canada/Mexico ....................... $ 53.00   ____
  124.          OHIO residents (includes sales tax) ..............   56.05   ____
  125.          All other countries ..............................   60.00   ____
  126.  
  127.   {COMMO} single user license, with DISKETTE:
  128.          Price in USA/Canada/Mexico ....................... $ 40.00   ____
  129.          OHIO residents (includes sales tax) ..............   42.30   ____
  130.          All other countries ..............................   42.00   ____
  131.  
  132.   Special price for BBS sysops and students, with DISKETTE:
  133.          Price in USA/Canada/Mexico ....................... $ 30.00   ____
  134.          OHIO residents (includes sales tax) ..............   31.73   ____
  135.          All other countries ..............................   32.00   ____
  136.      Sysops: BBS name and phone number ____________________
  137.      Students: name of school _____________________________
  138.  
  139.   >>>>>>>>>>>>>>>>>>  Specify if OTHER than 3.5" HD diskette: _______
  140.  
  141.  
  142.                                       Enter total AMOUNT:   $ ____________
  143.  
  144.   Payment method:  Check__  Money order__  Visa__  MasterCard__
  145.                    Carte Blanche__  Diners Club__  JCB__   PO__
  146.  
  147.  
  148.      INFORMATION FOR CREDIT CARD PURCHASES ONLY:
  149.  
  150.      Card No. ________  ________  ________  ________  Expires ____/____
  151.                                                                mo.  yr.
  152.      Cardholder signature _____________________________________________
  153.  
  154.      Cardholder name __________________________________________________
  155.  
  156.      Daytime telephone  (_____) _____ _______
  157.  
  158. --------------------------------------------------------------------------
  159.  
  160.  
  161.  
  162.  
  163.   Answers to the following questions will help me serve you better in the
  164.   future:
  165.  
  166.   How did you obtain {COMMO}?  (If BBS, please give name and phone number)
  167.  
  168.   ________________________________________________________________________
  169.  
  170.   In general terms, what do you use {COMMO} for?
  171.  
  172.   ________________________________________________________________________
  173.  
  174.   ________________________________________________________________________
  175.  
  176.   What type of computer and modem do you use?
  177.  
  178.   ________________________________________________________________________
  179.  
  180.   ________________________________________________________________________
  181.  
  182.  
  183.   Comments / Questions ___________________________________________________
  184.  
  185.   ________________________________________________________________________
  186.  
  187.   ________________________________________________________________________
  188.  
  189.   ________________________________________________________________________
  190.  
  191.   ________________________________________________________________________
  192.  
  193.  
  194.   Thank you, and I hope you enjoy {COMMO}.
  195.  
  196.  
  197.  
  198.                                     -6-
  199.  
  200. ========
  201. Contents
  202. ========
  203.  
  204.  
  205. Programming {COMMO} Macros  . . . . . . . . . . . . . . . . . . . . . .   9
  206.      Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . .   9
  207.      Macro Structure  . . . . . . . . . . . . . . . . . . . . . . . . .   9
  208.      Macro Functions  . . . . . . . . . . . . . . . . . . . . . . . . .  10
  209.      Macro Labels . . . . . . . . . . . . . . . . . . . . . . . . . . .  12
  210.      Macro Variables  . . . . . . . . . . . . . . . . . . . . . . . . .  13
  211.      How to Use Variables . . . . . . . . . . . . . . . . . . . . . . .  14
  212.      Reserved Variables . . . . . . . . . . . . . . . . . . . . . . . .  15
  213.      Executing Macros . . . . . . . . . . . . . . . . . . . . . . . . .  16
  214.      Additional Macro Execution Rules . . . . . . . . . . . . . . . . .  16
  215.      Cancelling a Macro . . . . . . . . . . . . . . . . . . . . . . . .  17
  216.      A Macro Example in Detail  . . . . . . . . . . . . . . . . . . . .  17
  217.  
  218. Description of Functions (Alphabetical) . . . . . . . . . . . . . . . .  20
  219.      ALARm  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  20
  220.      ASCIiup  . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  20
  221.      AUTO . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  22
  222.      BEEP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  22
  223.      BREAk  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  22
  224.      CALL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  23
  225.      CALOok . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  24
  226.      CAPMode  . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  25
  227.      CAPTure  . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  25
  228.      CHATmode . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  26
  229.      CLEAr  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  27
  230.      COMPare  . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  27
  231.      CURSor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  28
  232.      DECRement  . . . . . . . . . . . . . . . . . . . . . . . . . . . .  28
  233.      DIAL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  29
  234.           Marking Numbers for Dialing . . . . . . . . . . . . . . . . .  30
  235.           Automatic Resumption of Dialing . . . . . . . . . . . . . . .  31
  236.           Testing Success and Failure Results . . . . . . . . . . . . .  31
  237.           Handling Incoming Calls . . . . . . . . . . . . . . . . . . .  32
  238.      DISPlay  . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  32
  239.      DIVIde . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  33
  240.      DOORway  . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  34
  241.      DPARms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  34
  242.      EDIT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  35
  243.      ELAPse . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  36
  244.      EXECute  . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  36
  245.           Using the Direct Switch: EXEC-D . . . . . . . . . . . . . . .  38
  246.           Using the Swap to Disk Switch: EXEC-S . . . . . . . . . . . .  38
  247.           EXECute Preview Mode  . . . . . . . . . . . . . . . . . . . .  39
  248.      EXIT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  39
  249.      FILE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  40
  250.      FONFile  . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  41
  251.      GETString  . . . . . . . . . . . . . . . . . . . . . . . . . . . .  42
  252.      GOLOok . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  44
  253.  
  254.  
  255.  
  256.                                     -7-
  257.  
  258.      GOTO . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  44
  259.      HANGup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  45
  260.      HELP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  46
  261.      HOLD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  46
  262.      IFCArrier  . . . . . . . . . . . . . . . . . . . . . . . . . . . .  46
  263.      IFCOndition  . . . . . . . . . . . . . . . . . . . . . . . . . . .  47
  264.      IFERrorlevel . . . . . . . . . . . . . . . . . . . . . . . . . . .  49
  265.      IFEXist  . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  50
  266.      INCRement  . . . . . . . . . . . . . . . . . . . . . . . . . . . .  51
  267.      INFOrm . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  51
  268.      INITmodem  . . . . . . . . . . . . . . . . . . . . . . . . . . . .  52
  269.      INPUt  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  52
  270.      INSTring . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  53
  271.      KEYStuff . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  54
  272.      LENGth . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  54
  273.      LIGHts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  54
  274.      LOCAlecho  . . . . . . . . . . . . . . . . . . . . . . . . . . . .  55
  275.      LOOKfor  . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  55
  276.      MACRo  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  57
  277.      MARK . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  58
  278.      MENU . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  59
  279.      MULTiply . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  61
  280.      NOCArrier  . . . . . . . . . . . . . . . . . . . . . . . . . . . .  62
  281.      NOOP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  62
  282.      OFFLog . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  62
  283.      PARMs  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  63
  284.      PASSword . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  63
  285.      PAUSe  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  64
  286.      POPStack . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  64
  287.      PRINtlog . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  65
  288.      PUSHstack  . . . . . . . . . . . . . . . . . . . . . . . . . . . .  65
  289.      RCLOse . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  66
  290.      READ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  66
  291.      RETUrn . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  67
  292.      ROPEn  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  67
  293.      RTRAn  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  68
  294.      RXMOdem  . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  69
  295.      RYMOdem  . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  69
  296.      RZMOdem  . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  71
  297.      SCREen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  72
  298.      SCROllback . . . . . . . . . . . . . . . . . . . . . . . . . . . .  73
  299.      SEND . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  73
  300.      SETDial  . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  74
  301.      SETEsc . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  74
  302.      SETGet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  75
  303.      SETLook  . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  77
  304.      SETR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  78
  305.      SETUp  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  79
  306.      SETVariable  . . . . . . . . . . . . . . . . . . . . . . . . . . .  79
  307.      SFICtrl  . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  80
  308.      SHELl  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  81
  309.      SIGNal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  81
  310.      SOUNd  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  82
  311.  
  312.  
  313.  
  314.                                     -8-
  315.  
  316.      SPDCtrl  . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  82
  317.      SPOCtrl  . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  83
  318.      SSLOok . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  83
  319.      STATusline . . . . . . . . . . . . . . . . . . . . . . . . . . . .  84
  320.      STOP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  85
  321.      STRAn  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  85
  322.      SUBString  . . . . . . . . . . . . . . . . . . . . . . . . . . . .  86
  323.      SXMOdem  . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  87
  324.      SYMOdem  . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  87
  325.      SZMOdem  . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  88
  326.           File Specifications . . . . . . . . . . . . . . . . . . . . .  89
  327.      TOGGles  . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  90
  328.      UNLOad . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  90
  329.      UNMArk . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  90
  330.      VIDEo  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  91
  331.      VTCUr  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  91
  332.      VTPAd  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  92
  333.      WCLOse . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  92
  334.      WINDow . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  92
  335.      WOPEn  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  93
  336.      WRITe  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  94
  337.  
  338. For APPENDICES see Part I, COMMO.DOC. . . . . . . . . . . . . . . . . .  95
  339.  
  340.  
  341.  
  342.                                     -9-
  343.  
  344. ==========  Programming {COMMO} Macros
  345.  
  346. IMPORTANT!  Please read the next few pages before you attempt to write any
  347. macros!  The rules for writing {COMMO} macros are few in number, but must
  348. be followed carefully.
  349.  
  350. Examples of more complex macro programming are given in the sample Macro
  351. File COMMO.MAC, in the supplied file SAMPLES.MAC and in the Host Mode and
  352. Guide macros.  A macro from SAMPLES.MAC is discussed in detail at the end
  353. of this section.
  354.  
  355. The following pages assume familiarity with {COMMO}'s key commands and with
  356. other features of the program.  Since many macro functions have
  357. corresponding key commands, duplicate explanations will not be given here. 
  358. Refer to the description of the key command in Part I (COMMO.DOC).
  359.  
  360.  
  361. -----=====  Overview
  362.  
  363. {COMMO}'s Macro Files may contain any number of macros and are limited in
  364. size to 64k bytes each (total of 128k if auxiliary Macro File is used).
  365.  
  366. Macros are "interpreted," which implies the following:
  367.  
  368.      (1)  Macros are not processed in any way until execution begins. 
  369.           Rules for starting macros are listed under "Executing Macros"
  370.           later in this section.
  371.  
  372.      (2)  Only macros within the currently loaded Macro File(s) are
  373.           available for immediate use.
  374.  
  375.      (3)  Macros added or modified with the Internal Editor are ready for
  376.           execution without additional processing.
  377.  
  378. COMMO.MAC is the resident Macro File.  An auxiliary Macro File may be
  379. loaded (or replaced) at any time using the CALL and GOTO functions (or
  380. manually within the Macro File window).  See the individual descriptions of
  381. the CALL, GOTO and RETUrn functions for details.  See also Appendix K for
  382. more information on Macro Files.
  383.  
  384. Macro Files may be compiled to increase speed, to reduce size and to
  385. improve security of source code.  See "[Alt-M]  Macro File" in Part I
  386. (COMMO.DOC) for details.
  387.  
  388.  
  389. -----=====  Macro Structure
  390.  
  391. Macros consist of a series of items enclosed in curly braces.  Multiple
  392. items may be placed on the same line, but a single item may not be split
  393. between lines.  Lines may be up to 255 characters in length and all text
  394. outside the curly braces is commentary and is ignored when macros are
  395. executing.
  396.  
  397.  
  398.  
  399.                                     -10-
  400.  
  401. There are two types of items: "functions" and "labels."
  402.  
  403.      Functions are action items.  Some are equivalent to {COMMO} key
  404.      commands, such as DIAL, while others are unique to the macro language,
  405.      such as SETVariable.
  406.  
  407.      Labels are macro entry points and may be placed anywhere within the
  408.      Macro File.
  409.  
  410.  
  411. -----=====  Macro Functions
  412.  
  413. Each macro function is described in detail later in this document.  See
  414. also Appendix J "Macro Functions Listed by Class."
  415.  
  416.  
  417. The general form of any macro function is:
  418.  
  419.      {name-switches arg1,arg2,...,argn}
  420.  
  421.           name
  422.                The function name describes the action to be performed and
  423.                consists of four or more characters. Only the first four are
  424.                significant and case is ignored.
  425.  
  426.           switches
  427.                These are used to alter the operation of a function.  Each
  428.                switch is a single letter and may be followed by a numeric
  429.                value, usually "1" or "0" to indicate "yes" or "no"
  430.                respectively.
  431.  
  432.                Switches have default interpretations when the numeric value
  433.                is omitted, or when the switch is not present.
  434.  
  435.                Switches must be separated from the name with a hyphen (no
  436.                intervening spaces).  They may be upper or lower case.
  437.  
  438.                See individual function descriptions for details (note that
  439.                only certain functions have switches).
  440.  
  441.           args
  442.                A SINGLE SPACE separates the arguments from the function
  443.                name and switches.
  444.  
  445.                Individual arguments are separated with commas and may
  446.                contain no extraneous spaces (all spaces are significant).
  447.  
  448. NOTE:  Curly braces may be represented within macro functions by using ^(
  449. for { and ^) for }.
  450.  
  451.  
  452.  
  453.                                     -11-
  454.  
  455. Examples:
  456.  
  457.      {send Hi, how are you?}
  458.  
  459.           This function sends the string "Hi, how are you?" to the modem. 
  460.           SEND has only one argument -- the string to send out.  Since the
  461.           string is the last argument, it may contain commas and spaces. 
  462.           Quotes are not used to define strings.
  463.  
  464.      {ifcon-LE label1,label2}
  465.  
  466.           The IFCOndition function tests for conditions set by other
  467.           functions, such as COMPare.  Here two switches are present,
  468.           telling {COMMO} to test for less than or equal:
  469.  
  470.                L    Test for "less than."
  471.                E    Test for "equal."
  472.  
  473.           The two arguments are labels to GOTO depending on the conditions.
  474.  
  475.           Notice that "name-switches" may be written in a number of
  476.           different ways:
  477.  
  478.                ifco-LE  ifcondition-EL  ifcond-LE
  479.  
  480.      {asci-S0E1 path\filename}
  481.  
  482.           The ASCII Upload function will send the file indicated by
  483.           "path\filename."  The switches override current settings and tell
  484.           {COMMO}:
  485.  
  486.                S0   Do NOT strip linefeeds.
  487.                E1   DO expand blank lines (may also be written "E").
  488.  
  489.      {sound}   {sound yes}
  490.  
  491.           The first function will TOGGLE Master Sound ON/OFF (since there
  492.           is no argument).  The second will turn the sound ON.
  493.  
  494.  
  495. One very important function is the STOP function.  It is used to terminate
  496. macro execution and may appear in either its long form or short form:
  497.  
  498.      ... {stop}     long form
  499.      ... {}         short form
  500.  
  501. Macro execution continues until a STOP function is executed.  Be sure to
  502. use one or execution will continue into the next macro in the Macro File!
  503.  
  504.  
  505.  
  506.                                     -12-
  507.  
  508. -----=====  Macro Labels
  509.  
  510. Labels are identifiers consisting of one or more characters.  When a label
  511. is defined, it must be preceded by a colon.  References to labels, such as
  512. {goto label}, do not require the colon.
  513.  
  514. IMPORTANT!  {COMMO} always searches for labels from the beginning of the
  515. auxiliary Macro File (if one is loaded), then from the beginning of the
  516. resident Macro File.  This means that if a label is duplicated within the
  517. files, the first occurrence will be used.
  518.  
  519. Only the first eight characters in a label are significant.  Case is
  520. ignored.  All characters above ASCII 27 are allowed in labels except the
  521. following:
  522.  
  523.      colon           ":"
  524.      space           " "
  525.      comma           ","
  526.      slash           "/"
  527.      curly braces    "{" or "}"
  528.  
  529. Examples:
  530.  
  531.      {:mailrun} {call login} ...
  532.  
  533.      {:start-here} {:another.entry} {send Begin now!} ...
  534.  
  535.  
  536. A number of three character labels are reserved and are called "key-
  537. labels."  When the corresponding key is pressed from the Terminal Screen,
  538. {COMMO} will look for the key-label in the current Macro File.  If the key-
  539. label is found, macro execution will begin at that location.
  540.  
  541. Any default key assignment may be overridden using a key-label.  For
  542. example, pressing Alt-D normally enters the Dialing Directory.  But suppose
  543. this line is in the Macro File:
  544.  
  545.      {:ald} {clear} {}
  546.  
  547. Now pressing Alt-D will clear the screen.
  548.  
  549. There are predefined key-labels and user-defined key-labels.  See Appendix
  550. H "{COMMO} Macro Key-labels" for complete details.
  551.  
  552.  
  553.  
  554.                                     -13-
  555.  
  556. -----=====  Macro Variables
  557.  
  558. {COMMO} maintains a String Variable Space in which variables appear in the
  559. form:
  560.  
  561.      name,string
  562.  
  563.           name
  564.                An identifier consisting of one or more characters of which
  565.                only the first eight are significant.  Case is ignored.  The
  566.                following are the ONLY valid characters that may be used in
  567.                a variable name:
  568.  
  569.                     "A" through "Z"
  570.                     "a" through "z"
  571.                     "0" through "9"
  572.                     "_" underscore
  573.  
  574.                All other characters will terminate the name.
  575.  
  576.           string
  577.                A text string.  The string must not contain ASCII 0, 10 or
  578.                13 (null/cr/lf).  If a string is set to null (0 characters),
  579.                it is deleted from variable space.  Note the difference
  580.                between the null character (ASCII 0) and a null string (0
  581.                characters).
  582.  
  583.                NOTE:  Any variable not defined is considered to be null.
  584.  
  585.                Strings consisting of only the digits 0-9 and representing a
  586.                decimal number from 0 to 4,294,967,295 (2^32-1) are also
  587.                numeric variables.  There is no other difference between
  588.                string and numeric variables.
  589.  
  590.                The maximum length of strings is 240 characters.
  591.  
  592. The String Variable Space may be viewed from within the Macro File window
  593. (see Online Help).  The amount of unused string space will also be shown.
  594.  
  595. Once a variable is defined, it remains in String Variable Space until it is
  596. redefined or deleted (set to null).  Therefore variables should be deleted
  597. or re-used to prevent String Variable Space from becoming full.
  598.  
  599. The default size of String Variable Space is 3072 bytes, but it may be
  600. adjusted with the "/v" command line switch at program startup.  The valid
  601. range is from 512 bytes to 65535 bytes.  See also "Command Line Options" in
  602. Part I (COMMO.DOC).
  603.  
  604.  
  605.  
  606.                                     -14-
  607.  
  608. ----------  How to Use Variables
  609.  
  610. {COMMO} variables may be set (or "defined") in numerous ways:
  611.  
  612.      1)  With the SET item in the Setup File.
  613.      2)  By various macro functions.
  614.      3)  By variable strings at the end of a Dialing Directory entry.
  615.      4)  During execution of certain program operations.
  616.  
  617. Variables are used (or "referenced") in macro function arguments and in the
  618. telephone number field of the Dialing Directory.  See also "[Alt-D] 
  619. Dialing Directory" in Part I (COMMO.DOC).
  620.  
  621. When a variable name appears, the string assigned to the name is
  622. substituted for the name.  If the variable is null, then the name is
  623. replaced with 0 characters.  {COMMO} will expand the variables in a macro
  624. function before executing it.
  625.  
  626. In order to distinguish variable names from other parts of function
  627. arguments, they must be preceded with a percent sign "%" (use two
  628. consecutive percent signs if a percent sign is needed in the data).
  629.  
  630. The end of the variable name is indicated with another "%" or with the
  631. first character that is not allowed in a name (see list of characters
  632. above).
  633.  
  634.  
  635. A variable definition example:
  636.  
  637.      {setvar animal,Elephant} or {setvar %animal,Elephant}
  638.  
  639.           Notice that the "%" is not required (but is permitted) when the
  640.           variable name is the first argument of a function that defines,
  641.           modifies or tests the value of a variable.  Other such functions
  642.           include INPUt, GETString, INCRement, DECRement, COMPare,
  643.           SUBString, INSTring, READ.
  644.  
  645.           If the variable name itself needs to be a variable, then use two
  646.           percent signs:
  647.  
  648.                {setv %%animal,Elephant}
  649.  
  650.  
  651. Variable usage examples:
  652.  
  653.      {setvar animal,Elephant}
  654.      {send %animal}
  655.           Sends "Elephant" to the modem.
  656.      {send animal}
  657.           Sends "animal".
  658.      {send %animal%s are large animals}
  659.           Sends "Elephants are large animals".  Note that the trailing "%"
  660.           is required here.
  661.  
  662.  
  663.  
  664.                                     -15-
  665.  
  666.  
  667.      {setvar animal,Elephant}
  668.      {setv creature,animal}
  669.      {send creature}
  670.           Sends "creature". 
  671.      {send %creature}
  672.           Sends "animal". 
  673.      {setv %%creature,Giraffe}
  674.      {send %animal}
  675.           Sends "Giraffe".
  676.  
  677.  
  678. IMPORTANT!  Variables may NOT be substituted within the function name or
  679. switches.  They may be substituted anywhere else, even for the commas
  680. separating arguments.
  681.  
  682. See "SETVariable" for additional examples and more ways to set variables.
  683.  
  684.  
  685. ----------  Reserved Variables
  686.  
  687. Certain variables have fixed names so that {COMMO} can find them whenever
  688. they are needed.  The names of these variables begin with an underscore
  689. character "_".  There are two types of reserved variables: "user-defined"
  690. and "built-in" (see Appendix I "List of Reserved Variables" for a complete
  691. list).
  692.  
  693. USER-DEFINED reserved variables are defined in the same way that you define
  694. ordinary variables -- in the Setup File using SET, or in a macro using
  695. functions such as SETVariable, INPUt, etc.  These variables define strings
  696. used by certain program features.  For example, the path\filename of the
  697. Usage Log is defined in the Setup File as follows:
  698.  
  699.      {set _uselog,c:\commo\commo.log}
  700.  
  701. BUILT-IN variables are defined by {COMMO} based on current system 
  702. parameters.  Examples are:
  703.  
  704.      _cap
  705.           Current Capture File path\filename
  706.  
  707.      _tim
  708.           Current time of day
  709.  
  710. Any variable that starts with the same four characters as a built-in
  711. variable ("_" plus the next three) will be considered the same variable. 
  712. For example "_pas" may be written "_password" and "_yea" may be written
  713. "_year".
  714.  
  715. {COMMO} will always search String Variable Space first when looking up the
  716. value of any variable.  This allows built-in variables to be overridden,
  717. but only when using their four character minimum names.  For example, to
  718. override the serial port number, you must use "_por", not "_port".
  719.  
  720.  
  721.  
  722.                                     -16-
  723.  
  724.  
  725. See Appendix I for a complete list of reserved variables.
  726.  
  727.  
  728. -----=====  Executing Macros
  729.  
  730. Macro execution may be started in any of the following ways:
  731.  
  732. 1)   Open the Macro File window by pressing Alt-M.  Position the Selector
  733.      Bar at the desired starting point and press [Enter].  The macro will
  734.      begin executing at the first macro label or function on the line.
  735.  
  736.      NOTE:  Macros started with the Selector Bar do not need macro labels
  737.      and may be started at any point within the macro.
  738.  
  739. 2)   If a macro label is also a key-label, then you may press that key from
  740.      the Terminal Screen.  Note that if the same key-label appears more
  741.      than once, the first occurrence will be used.
  742.  
  743. 3)   A macro may be linked to a Dialing Directory entry (Linked Macro).  In
  744.      this case {COMMO} will GOTO the macro when a connection is established
  745.      with that system (or optionally CALL it, see the DIAL function).
  746.  
  747. 4)   A startup macro may be specified in the Setup File using the
  748.      "{mac=label}" item.
  749.  
  750. 5)   A startup macro may be specified on the command line with the switch
  751.      "/:label".  This will override the Setup File macro.
  752.  
  753. 6)   A macro may be an argument of another function such as CALL, GOTO,
  754.      DIAL or SETLook.
  755.  
  756. Some macro functions show their current action on the Status Line.  In
  757. addition, a "face" character in the middle of the Status Line indicates
  758. that a macro is executing.
  759.  
  760.  
  761. -----=====  Additional Macro Execution Rules
  762.  
  763. Characters may be typed to the serial port during functions that wait
  764. (LOOKfor, GETString, PAUSe, HOLD, etc.).  Command keys will be ignored
  765. during macro execution.
  766.  
  767. Functions will execute IN SEQUENCE until one of the following conditions
  768. occurs:
  769.  
  770. 1)   A CALL, GOTO, RETURn, STOP, EXIT, etc. is encountered.
  771.  
  772. 2)   Control is transferred to an alternate macro from certain functions
  773.      when a special condition occurs.  An example of this is the SETLook
  774.      function.  The alternate will execute when a subsequent LOOKfor times
  775.      out.
  776.  
  777.  
  778.  
  779.                                     -17-
  780.  
  781. 3)   A Macro Error occurs (and SETR has not been executed).  This will
  782.      bring up the Macro File window with the Selector Bar on the problem
  783.      line.  The macro will be terminated.
  784.  
  785. 4)   The end of a Macro File is reached.
  786.  
  787.  
  788. -----=====  Cancelling a Macro
  789.  
  790. The [Esc] key is used to terminate macro execution.  To type an <esc> code
  791. (ASCII 27) to the remote during macro execution (without terminating the
  792. macro), press Ctrl-[ (Ctrl + left bracket).
  793.  
  794. Current function execution may be terminated by pressing [Ctrl-Break].  For
  795. example, this can be used to terminate a LOOKfor, PAUSe or HOLD
  796. prematurely.  Macro execution will advance to the next function.
  797.  
  798. If a macro contains a function that brings up a {COMMO} window (Dialing
  799. Directory, Capture File Options, etc.), then [Esc] will exit the window and
  800. execution continues with the next function.  To terminate macro execution
  801. from a window, press [Ctrl-Break].
  802.  
  803. NOTE:  The SETEsc function may be used to help prevent accidental
  804. termination of macros.
  805.  
  806.  
  807. -----=====  A Macro Example in Detail
  808.  
  809. The following macro example from SAMPLES.MAC can be used to log in to many
  810. types of Bulletin Board Systems.  This is a Linked Macro, so the label
  811. "login" would appear in the Dialing Directory macro field for each system
  812. that uses it.  When you dial and connect to one of the systems, {COMMO}
  813. will automatically GOTO the macro.
  814.  
  815. The subroutine "gls" (generic login subroutine) can also be called from
  816. macros that perform mailruns and other BBS operations.
  817.  
  818. Note that labels and functions may be placed side by side on the same line
  819. (up to 255 characters).  For purposes of this example each item is placed
  820. on its own line.
  821.  
  822. The main routine at "login" performs some initial functions and then calls
  823. the subroutine at "gls".  The subroutine looks for various prompts,
  824. responds to them and returns after responding to the "password" prompt.
  825.  
  826.  
  827. {:login}
  828.      The entry point.  All labels begin with a ":".
  829.  
  830. {capture y,c:\commo\commo.cap}
  831.      "y" means open the Capture File.  The path\filename of the file is
  832.      specified here, otherwise the current Capture File (if there is one)
  833.      would be opened.
  834.  
  835.  
  836.  
  837.                                     -18-
  838.  
  839.  
  840. {asci ,}
  841.      Set ASCII Upload to "no pacing."
  842.  
  843. {call gls}
  844.      CALL the macro at "gls".  When the subroutine executes a RETUrn,
  845.      control will come back here.
  846.  
  847. {}
  848.      STOP and resume manual operation in the Terminal Screen.  Without this
  849.      STOP execution would continue into subsequent macros.  Remember that
  850.      labels are "passed over" during sequential macro execution.
  851.  
  852. {:gls}
  853.      The entry point of the "gls" subroutine.
  854.  
  855. {setlook 60,hng,10,|}
  856.      This function specifies parameters that go into effect whenever a
  857.      LOOKfor executes.  It tells {COMMO} to wait up to 60 seconds for the
  858.      string (or strings) and to GOTO the label "hng" if none of the strings
  859.      appear within that time.  The timer is restarted each time a LOOKfor
  860.      begins to execute.
  861.  
  862.      This SETLook also specifies that a "|" (carriage return) should be
  863.      sent to the modem whenever 10 seconds have elapsed and no characters
  864.      are received.  This is used to respond to prompts that are not
  865.      explicitly specified in SSLOoks/CALOoks/GOLOoks/LOOKfors (e.g., "Press
  866.      any key to continue").
  867.  
  868.      Use this latter facility with care since a BBS may spend time
  869.      processing and not actually be expecting input from the caller.  The
  870.      carriage returns sent will accumulate and be used to satisfy later
  871.      prompts, causing things to get out of "sync."  Adjust the 10 second
  872.      timeout as needed.
  873.  
  874. {setv ss_r,~|}
  875. {setv ss_yr,~y|}
  876.      Variables are set for some common responses.  They will be used later
  877.      by SSLOok functions.  For convenience, these variables may be defined
  878.      in the Setup File (using the "set" keyword).
  879.  
  880.      SSLOoks, CALOoks and GOLOoks store strings to look for, but do not
  881.      wait for the strings (only a LOOKfor can do the actual waiting).
  882.  
  883. {:li1}
  884. {sslo ss_r,(enter)}
  885. {sslo ss_yr,graphics (enter)}
  886. {sslo ss_yr,is this correct} 
  887.      The SSLOoks will send the strings in the variables when the respective
  888.      targets are received.  The looking for all of the stored strings then
  889.      resumes.
  890.  
  891. {calo li1,li2,first name}
  892.  
  893.  
  894.  
  895.                                     -19-
  896.  
  897. {calo li1,li3,last name}
  898.      CALOoks will CALL the second label if the target string appears (the
  899.      LOOKfor is terminated).  When the macro executes a RETUrn, control
  900.      goes to the first label where all of the strings can be set up again. 
  901.      Note that CALOoks are used here for demonstration.  SSLOoks could be
  902.      used as well (and probably should be).
  903.  
  904. {golo li1,;passwor}
  905.      A GOLOok will set up a string and GOTO the label if the string appears
  906.      (only one label is used).  In this example the specified string is to
  907.      be ignored.  This was needed for a BBS that used the string
  908.      "first;last;password" prior to the actual password prompt.
  909.  
  910. {lookfor password}
  911.      This is where the actual "looking" takes place.  Remember that
  912.      SSLOoks, CALOoks and GOLOoks only cause strings to be stored but do
  913.      not actually wait for the strings.
  914.  
  915.      The LOOKfor will wait for the string specified and also any other
  916.      stored strings (up to 16 total).  If the string in the LOOKfor
  917.      appears, control passes to the next macro function.
  918.  
  919.      "password" is assumed to be the last prompt in the login sequence.
  920.  
  921. {send ~%_pas|}
  922.      Control then passes here and the string is sent to the modem.  The
  923.      tilde (~) causes a half-second delay before sending the password.  The
  924.      password in the Dialing Directory entry was stored into the built-in
  925.      variable "_pas" when dialing began.
  926.  
  927.      Finally, a carriage return (|) is sent.
  928.  
  929. {return}
  930.      This will RETUrn to the "login" macro.
  931.  
  932. {:li2}
  933. {send ~Firstname|}
  934.      Response to "first name".
  935.  
  936. {return}
  937.  
  938. {:li3}
  939. {send ~Lastname|}
  940.      Response to "last name".
  941.  
  942. {return}
  943.  
  944.  
  945.  
  946.                                     -20-
  947.  
  948. ==========  Description of Functions (Alphabetical)
  949.  
  950. The purpose of this section is to show the syntax of each function and the
  951. meaning of its arguments through examples.  All functions are listed here,
  952. but details for functions which are also default key commands are found in
  953. Part I (COMMO.DOC) under "{COMMO} Key Commands."
  954.  
  955. Function names are shown with their four-letter abbreviations in uppercase.
  956.  
  957. For consistency, the following conventions are used in many functions:
  958.  
  959.      "y" or "yes" is used to indicate "yes", "on",  "open",  etc.
  960.      "n" or "no"  is used to indicate "no",  "off", "close", etc.
  961.  
  962.  
  963. ===  ALARm  ===
  964.  
  965. Default key:   none
  966. Description:   Ring the alarm.
  967.  
  968. Examples:
  969.  
  970.      {alarm}
  971.           Ring alarm, use ring count in Setup File.
  972.  
  973.      {alarm 2}
  974.           Ring alarm 2 times.
  975.  
  976. {COMMO} will wait until the alarm has stopped ringing before proceeding to
  977. the next macro function (the alarm may be terminated early by pressing a
  978. key).
  979.  
  980.  
  981. ===  ASCIiup  ===
  982.  
  983. Default key:   Alt-A
  984. Description:   Upload an ASCII (text) file.
  985.  
  986. General form:
  987.  
  988.      {ASCIiup path\filename[\],pace}
  989.  
  990.           path\filename
  991.                The complete path and filename (if the path is absent, the
  992.                current directory will be used).
  993.  
  994.                If a path only is used (signified by a "\" at the end) the
  995.                ASCII Upload window will open, prompting you to enter the
  996.                filename.
  997.  
  998.           pace
  999.                The pacing character to be used.
  1000.  
  1001.  
  1002.  
  1003.                                     -21-
  1004.  
  1005. Switches:
  1006.  
  1007.      E1 or E
  1008.           Expand blank lines.  A space will be sent when a zero-character
  1009.           line is encountered.
  1010.  
  1011.      E0
  1012.           Do not expand blank lines.
  1013.  
  1014.      S1 or S
  1015.           Strip linefeeds from outgoing text.
  1016.  
  1017.      S0
  1018.           Do not strip linefeeds.
  1019.  
  1020.           If a switch is absent, the current setting of the toggle will be
  1021.           used.  The toggles can be set in the Setup File or by using the
  1022.           Alt-T key command.
  1023.  
  1024.           Switches apply to the current function only and do not affect the
  1025.           settings of the toggles.
  1026.  
  1027. Examples:    
  1028.  
  1029.      {asci}
  1030.           Open ASCII Upload window.
  1031.  
  1032.      {asci-S}
  1033.           Open ASCII Upload window, strip linefeeds when file is sent.
  1034.  
  1035.      {asci %uldir%\}
  1036.           Open ASCII Upload window, prompt with the current value of the
  1037.           variable "uldir".
  1038.  
  1039.      {asci c:\msgs\file.xyz,:}
  1040.           Upload "file.xyz."  Use ":" for pacing.
  1041.  
  1042.      {asci-E0 c:\msgs\file.xyz}
  1043.           Upload "file.xyz."  Use current pacing character, do not expand
  1044.           blank lines.
  1045.  
  1046.      {asci c:\msgs\file.xyz,}
  1047.           Upload "file.xyz."  Do not use pacing.
  1048.  
  1049.      {asci ,?}
  1050.           Set current pacing character to "?"
  1051.  
  1052.      {asci ,}
  1053.           Set current pacing to "no" pacing.
  1054.  
  1055. The pacing character may be entered according to the rules shown in
  1056. Appendix D.  For example, "^m" or "|" may be used to represent the carriage
  1057. return.
  1058.  
  1059.  
  1060.  
  1061.                                     -22-
  1062.  
  1063.  
  1064.  
  1065. ===  AUTO  ===
  1066.  
  1067. Default key:   none
  1068. Description:   Maintain Auto Receive strings.
  1069.  
  1070. General form:
  1071.  
  1072.      {AUTO label,string}
  1073.  
  1074.           label
  1075.                Label to GOTO when the string is received.
  1076.  
  1077.           string
  1078.                String to look for, may be up to 32 characters.
  1079.  
  1080. Examples:
  1081.  
  1082.      {auto}
  1083.           Clear all Auto Receive strings.
  1084.  
  1085.      {auto zmodem,^XB00}
  1086.           Zmodem Auto Receive string.
  1087.  
  1088. Note that up to 16 Auto Receive strings may be in effect at the same time
  1089. (including any strings defined in the Setup File).
  1090.  
  1091. Use this function with no arguments to clear all strings when necessary.
  1092.  
  1093. See also "TIPS on creating LOOKfor strings" under LOOKfor.
  1094.  
  1095.  
  1096. ===  BEEP  ===
  1097.  
  1098. Default key:   none
  1099. Description:   Sound a beep.
  1100.  
  1101. Example:
  1102.  
  1103.      {beep}
  1104.           No arguments.
  1105.  
  1106.  
  1107. ===  BREAk  ===
  1108.  
  1109. Default key:   Alt-B
  1110. Description:   Send a break.
  1111.  
  1112.  
  1113.  
  1114.                                     -23-
  1115.  
  1116. Switches:
  1117.  
  1118.           Tn
  1119.                Set break duration in system clock ticks.  "n" may range
  1120.                from 1 to 999.  There are 18.2 clock ticks per second.
  1121.  
  1122.           T0 or T
  1123.                Set break duration to 18 clock ticks (default).
  1124.  
  1125. Examples:
  1126.  
  1127.      {break}
  1128.           One second break.
  1129.  
  1130.      {break-t9}
  1131.           One-half second break.
  1132.  
  1133.      {break-t55}
  1134.           Three second break.
  1135.  
  1136.  
  1137. ===  CALL  ===
  1138.  
  1139. Default key:   none
  1140. Description:   Execute a macro subroutine.
  1141.  
  1142. General form:
  1143.  
  1144.      {CALL label,filename}
  1145.  
  1146.           label
  1147.                The label that begins the subroutine to be executed.
  1148.  
  1149.           filename
  1150.                The name of the Macro File where the label is to be found. 
  1151.                This argument is OPTIONAL and is normally used only if the
  1152.                file is not already loaded.  Do NOT specify a path; the
  1153.                {COMMO} home directory will be used.
  1154.  
  1155. Switches:
  1156.  
  1157.           F1 or F
  1158.                Force loading of the specified file (as the auxiliary file). 
  1159.                No filename comparison will be made.
  1160.  
  1161.           F0
  1162.                Compare filenames.  If the file is already loaded (resident
  1163.                or auxiliary), it will not be reloaded (default).
  1164.  
  1165. Examples:
  1166.  
  1167.      {call abc}
  1168.           Execute subroutine "abc".
  1169.  
  1170.  
  1171.  
  1172.                                     -24-
  1173.  
  1174.  
  1175.      {call abc,other.mac}
  1176.           Execute subroutine "abc" in the auxiliary Macro File "other.mac".
  1177.  
  1178. CALL will push the return location onto the macro stack; then it will
  1179. transfer control to the given label.  When a RETUrn is executed, the
  1180. location will be popped and control will return to the function following
  1181. the CALL.  If the CALL is located in the auxiliary Macro File, the filename
  1182. will be saved on the macro stack along with the return location.
  1183.  
  1184. If a filename is specified, {COMMO} will check to see if the file is
  1185. already loaded (resident or auxiliary).  If not, the file will be loaded as
  1186. the auxiliary (the current auxiliary will be saved to disk if there are any
  1187. outstanding changes).
  1188.  
  1189. TIPS on using CALL:
  1190.  
  1191.  *   It isn't necessary to specify a filename if the target label is in the
  1192.      resident Macro File or in the current auxiliary file.
  1193.  
  1194.  *   A Macro Error will result if either the label or the file do not
  1195.      exist.
  1196.  
  1197.  *   CALLs may be nested up to 32 deep.
  1198.  
  1199.  *   Use GOTO when you want to load or execute macros in another file and
  1200.      you do not need to return.  This will prevent the macro stack from
  1201.      filling with "dead" entries.
  1202.  
  1203.  *   Do not modify a Macro File while a CALL from that file is active (the
  1204.      return location may be invalidated).
  1205.  
  1206. See also RETUrn, GOTO, PUSHstack, POPStack, UNLOad, Appendix K.
  1207.  
  1208.  
  1209. ===  CALOok  ===
  1210.  
  1211. Default key:   none
  1212. Description:   CALL a label when a string appears.
  1213.  
  1214. General form:
  1215.  
  1216.      {CALOok label1,label2,target}
  1217.  
  1218.  
  1219.  
  1220.                                     -25-
  1221.  
  1222.           label1
  1223.                The location to return to after label2 is CALLed.
  1224.  
  1225.           label2
  1226.                The label to CALL when the target is received from the
  1227.                serial port.
  1228.  
  1229.           target
  1230.                The ASCII string to look for.  The string begins following
  1231.                the "," and is terminated by the "}".
  1232.  
  1233. CALOok is used in conjunction with the LOOKfor function.  It sets up an
  1234. additional string to look for.  When the target string appears, a CALL is
  1235. made to "label2."  When the routine executes a RETUrn, control will pass to
  1236. "label1".  This is equivalent to:
  1237.  
  1238.      {call label2} {:label1} ...
  1239.  
  1240. See LOOKfor for details, examples and tips on using CALOok.
  1241.  
  1242. See also SSLOok, GOLOok, SETLook.
  1243.  
  1244.  
  1245. ===  CAPMode  ===
  1246.  
  1247. Default key:   none
  1248. Description:   Set Capture Mode.
  1249.  
  1250. Examples:
  1251.  
  1252.      {capmode screen}
  1253.           Set Capture Mode to SCREEN.
  1254.  
  1255.      {capmode filter}
  1256.           Set Capture Mode to FILTER.
  1257.  
  1258.      {capmode raw}
  1259.           Set Capture Mode to RAW.
  1260.  
  1261. See also CAPTure.
  1262.  
  1263.  
  1264. ===  CAPTure  ===
  1265.  
  1266. Default key:   Alt-1
  1267. Description:   Capture File Options.
  1268.  
  1269.  
  1270.  
  1271.                                     -26-
  1272.  
  1273. Switches:
  1274.  
  1275.      N1 or N
  1276.           Do not wait for a keypress if the disk fills up while capturing
  1277.           (a message is displayed for several seconds).  The setting
  1278.           remains in effect until the Capture File is closed.
  1279.  
  1280.           NOTE:  This switch is effective only on a CAPTure function that
  1281.           successfully opens a Capture File.
  1282.  
  1283.      N0
  1284.           Wait for Esc to be pressed if the disk fills up (default).
  1285.  
  1286. Examples:
  1287.  
  1288.      {capture}
  1289.           Open Capture File Options window.
  1290.  
  1291.      {capture y}
  1292.           Open current Capture File.
  1293.  
  1294.      {capture n}
  1295.           Close current Capture File.
  1296.  
  1297.      {capt y,c:\commo\file.xyz}
  1298.           Open indicated Capture File.
  1299.  
  1300.      {capt n,c:\dl\newfile.cap}
  1301.           Close current Capture File, set new file as indicated.
  1302.  
  1303. The current Capture File will always be closed when a new file is opened.
  1304.  
  1305. IMPORTANT!  If the disk fills while capture is open, a "disk full" message
  1306. will appear (see the "N" switch above) and the file will be closed.  The
  1307. built-in variable "_dfc" will be set to 1.
  1308.  
  1309. See also CAPMode.
  1310.  
  1311.  
  1312. ===  CHATmode  ===
  1313.  
  1314. Default key:   Alt-- (Alt minus)
  1315. Description:   Set Chat Mode toggle.
  1316.  
  1317.  
  1318.  
  1319.                                     -27-
  1320.  
  1321. Examples:
  1322.  
  1323.      {chat}
  1324.           Toggle Chat Mode on/off.
  1325.  
  1326.      {chat y}
  1327.           Turn on Chat Mode.
  1328.  
  1329.      {chat n}
  1330.           Turn off Chat Mode
  1331.  
  1332.  
  1333. ===  CLEAr  ===
  1334.  
  1335. Default key:   Alt-C
  1336. Description:   Clear Terminal Screen to default colors.
  1337.  
  1338. Example:
  1339.  
  1340.      {clear}
  1341.           No arguments.
  1342.  
  1343.  
  1344. ===  COMPare  ===
  1345.  
  1346. Default key:   none
  1347. Description:   Compare a string or numeric variable.
  1348.  
  1349. General form:
  1350.  
  1351.      {COMPare name,string}
  1352.  
  1353.           name
  1354.                The name of a variable.
  1355.  
  1356.           string
  1357.                A string of ASCII characters.
  1358.  
  1359. Examples:
  1360.  
  1361.      {comp pword,aardvark}
  1362.           Test if the variable "pword" is set to "aardvark."
  1363.  
  1364.      {comp pword}
  1365.           Test if "pword" is null.
  1366.  
  1367.  
  1368.  
  1369.                                     -28-
  1370.  
  1371.      {comp pword,}
  1372.           Test if "pword" is null.
  1373.  
  1374.      {comp nmbr,5}
  1375.           Compare a numeric variable.
  1376.  
  1377.      {comp abc,%xyz}
  1378.           Test if the variable "abc" is equal to the variable "xyz."
  1379.  
  1380. A numeric variable is a string of ASCII digits, 0-9, forming a positive
  1381. integer.  If the number is outside the allowed range or contains non-
  1382. numeric characters, the results of the compare will be unpredictable.
  1383.  
  1384. COMPare will set flags which can be tested with the IFCOndition function.
  1385.  
  1386.      The Condition Flag will be set to "true" if the two arguments are
  1387.      identical strings (case is ignored).  Otherwise it will be set to
  1388.      "false."
  1389.  
  1390.      The Numeric Flag will be set to "equal", "less than" or "greater
  1391.      than."  This flag is unpredictable unless both arguments are valid
  1392.      numeric variables.
  1393.  
  1394. A variable may be tested for being null (no entry in variable space) by
  1395. omitting the second argument (or by comparing to a null variable).
  1396.  
  1397. See also IFCOndition.
  1398.  
  1399.  
  1400. ===  CURSor  ===
  1401.  
  1402. Default key:   none
  1403. Description:   Terminal Screen cursor on/off.
  1404.  
  1405. Examples:
  1406.  
  1407.      {cursor}
  1408.           Toggle Terminal cursor on/off.
  1409.  
  1410.      {curs y}
  1411.           Turn on Terminal Screen cursor.
  1412.  
  1413.      {curs n}
  1414.           Turn off Terminal Screen cursor.
  1415.  
  1416.  
  1417. ===  DECRement  ===
  1418.  
  1419. Default key:   none
  1420. Description:   Subtract a number from a numeric variable.
  1421.  
  1422.  
  1423.  
  1424.                                     -29-
  1425.  
  1426. Examples:
  1427.  
  1428.      {decr count}
  1429.           Subtract 1 from the variable "count".
  1430.  
  1431.      {decr apples,200}
  1432.           Subtract 200 from "apples".
  1433.  
  1434. The default for the second argument is 1.
  1435.  
  1436. If the result is less than 0 or if either argument is out of range, then
  1437. the variable will be set to the string "ERROR".
  1438.  
  1439. If the variable is not numeric, the results will be unpredictable.
  1440.  
  1441. See also INCRement.
  1442.  
  1443.  
  1444. ===  DIAL  ===
  1445.  
  1446. Default keys:  Alt-D, Alt-N
  1447. Description:   Open Dialing Directory, dial marked systems.
  1448.  
  1449. General form:
  1450.  
  1451.      {DIAL tries,label1,label2}
  1452.  
  1453.           tries
  1454.                The maximum number of dialing tries.  If no connection is
  1455.                established when the try count is exhausted, the macro in
  1456.                the second argument will be started.  May be 0 to 999.  "0"
  1457.                means unlimited.  Default is 0.
  1458.  
  1459.           label1
  1460.                A macro to GOTO if the try count in the first argument is
  1461.                exhausted.  If no macro is specified or if the macro label
  1462.                is invalid, control will pass to the next function.  Default
  1463.                is none.
  1464.  
  1465.                If the "C" switch is used, the macro will be CALLed.  When a
  1466.                RETUrn is executed, control will return to the DIAL
  1467.                function.
  1468.  
  1469.           label2
  1470.                A macro to GOTO when a response is matched during the Inter-
  1471.                dial Delay.  Response strings may be listed in the reserved
  1472.                variable "_dialir" and are usually defined in the Setup
  1473.                File.  If no macro is specified or if the macro label is
  1474.                invalid, the response is ignored.
  1475.  
  1476.                If the "C" switch is used, the macro will be CALLed.  When a
  1477.                RETUrn is executed, control will return to the DIAL
  1478.                function.
  1479.  
  1480.  
  1481.  
  1482.                                     -30-
  1483.  
  1484.  
  1485. Switches:
  1486.  
  1487.      C1 or C
  1488.           Specifies that macros will be started via CALL (instead of GOTO). 
  1489.           When the macros execute a RETUrn, control returns to the DIAL
  1490.           function and Multi Number Dialing will resume.
  1491.  
  1492.           The "C" switch applies to the Linked Macro (from the Dialing
  1493.           Directory), the "tries exhausted" macro and to the Inter-dial
  1494.           Delay macro.
  1495.  
  1496.      C0
  1497.           Start dialing macros via GOTO (default).
  1498.  
  1499. Examples:
  1500.  
  1501.      {dial}
  1502.           Open Dialing Directory window (similar to Alt-D).
  1503.  
  1504.      {dial ,}
  1505.           Multi Number Dial (similar to Alt-N).
  1506.  
  1507.      {dial 25,abc}
  1508.           Multi Number Dial with try count.
  1509.  
  1510.      {dial-C ,}
  1511.           Multi Number Dial, CALL Linked Macros.
  1512.  
  1513.      {dial-c ,,inter}
  1514.           Multi Number Dial with Inter-dial Delay macro.
  1515.  
  1516.  
  1517. ----------  Marking Numbers for Dialing
  1518.  
  1519. Numbers may be marked in one of several ways:
  1520.  
  1521.      1)   Manually in the Dialing Directory window.
  1522.      2)   By placing Dialing Strings on the {COMMO} command line.
  1523.      3)   Using the MARK macro function.
  1524.  
  1525. Marked numbers will be redialed in sequence.  If a connection occurs and a
  1526. valid Linked Macro is specified in the Dialing Directory, the macro will be
  1527. started via GOTO (or CALL if the "C" switch is present).  If no Linked
  1528. Macro is specified in the Dialing Directory or if the macro label is
  1529. invalid, macro execution will STOP.
  1530.  
  1531. If no numbers are marked when executing the DIAL, control will pass to the
  1532. next function.
  1533.  
  1534.  
  1535.  
  1536.                                     -31-
  1537.  
  1538. ----------  Automatic Resumption of Dialing
  1539.  
  1540. Here are two methods for resuming at the end of a Linked Macro.  Both allow
  1541. multiple systems to be called without operator intervention.
  1542.  
  1543.      1)   Use the "C" switch on the DIAL function.  Each Linked Macro
  1544.           should end with a RETUrn which will transfer control back to the
  1545.           DIAL.  When all numbers have been called, control will pass to
  1546.           the function following the DIAL.
  1547.  
  1548.      2)   At the end of each Linked Macro (after logging off), GOTO a macro
  1549.           such as this:
  1550.  
  1551.             {:nocar} {pause 1} {ifcarrier nocar} {dial ,} {}
  1552.  
  1553.           This ensures that carrier has dropped before DIALing the next
  1554.           number.  The PAUSe allows data to display on the screen while
  1555.           waiting for carrier to drop.
  1556.  
  1557.  
  1558. ----------  Testing Success and Failure Results
  1559.  
  1560. Details about a successful or failed dialing attempt are available in
  1561. several reserved variables (see Appendix I "List of Reserved Variables" for
  1562. complete descriptions):
  1563.  
  1564.      _dtc
  1565.           Dialing termination code
  1566.  
  1567.      _dialrt
  1568.           Dialing response text
  1569.  
  1570.      _mod
  1571.           Speed reported by modem (normally in the CONNECT or CARRIER
  1572.           response)
  1573.  
  1574. After a successful attempt the variables "_dialrt" and "_mod" may be tested
  1575. in your Linked Macro.  For example, if you expected a high-speed connect
  1576. and the speed reported was 2400 or 1200, then you may want to hang up and
  1577. try again later.
  1578.  
  1579. You can get control after each failed attempt by using "DIAL 1", with or
  1580. without a macro.  For example:
  1581.  
  1582.      1)   {dial-c 1,nocon} ...
  1583.  
  1584.           The Linked Macro and the "no connect" macro will be CALLed (the
  1585.           "C" switch).  The variables "_dtc" and "_dialrt" may be tested in
  1586.           the macro at "nocon".
  1587.  
  1588.  
  1589.  
  1590.                                     -32-
  1591.  
  1592.      2)   {dial 1} ...
  1593.  
  1594.           Control will pass to the next function if a dialing attempt fails
  1595.           or when no more systems are marked (test "_dtc" to determine
  1596.           which).
  1597.  
  1598. If the testing indicates that the system should not be dialed again (e.g.,
  1599. it did not answer, _dtc = 3), the UNMArk function can be used with the "L"
  1600. switch to unmark the last number dialed: {unmark-l}.
  1601.  
  1602.  
  1603. ----------  Handling Incoming Calls
  1604.  
  1605. Most modems return the string "RING" when a call comes in.  If this happens
  1606. during the Inter-dial Delay, you may choose to stop dialing (to answer a
  1607. voice call) or to send a brief message to a modem caller (during a BBS
  1608. event, for example).
  1609.  
  1610. Use "label2" on the DIAL function to process responses during the Inter-
  1611. dial Delay.  For example:
  1612.  
  1613.      {dial ,,incoming}
  1614.  
  1615. The macro at "incoming" will execute if the modem sends an Inter-dial Delay
  1616. response string (these are normally defined in the Setup File with the
  1617. "_dialir" variable).
  1618.  
  1619. See also SETDial, MARK, UNMArk.
  1620.  
  1621.  
  1622. ===  DISPlay  ===
  1623.  
  1624. Default key:   none
  1625. Description:   Display a string to the screen.
  1626.  
  1627. General form:
  1628.  
  1629.      {DISPlay row,col,attr,string}
  1630.  
  1631.           row
  1632.                The row where the string will display.
  1633.  
  1634.           col
  1635.                The column where the string will display.
  1636.  
  1637.           attr
  1638.                The attribute (colors) of the string.
  1639.  
  1640.           string
  1641.                The text of the string (no quotes).
  1642.  
  1643.  
  1644.  
  1645.                                     -33-
  1646.  
  1647. Examples:
  1648.  
  1649.      {display 12,20,17,Hello!}
  1650.           Display "Hello!" at row 12, column 20.  Colors are white on blue.
  1651.  
  1652.      {disp ,,,Hello, again.^m^j}
  1653.           Display "Hello, again." at the current cursor using the current
  1654.           attribute, followed by a cr/lf.
  1655.  
  1656.      {disp 3,40}
  1657.           Position the cursor at row 3, column 40.
  1658.  
  1659. TIPS on using DISPlay:
  1660.  
  1661.  *   The attribute is specified in the same manner as the colors in the
  1662.      Setup File (press F7 in the Internal Editor to display the Color
  1663.      Chart).
  1664.  
  1665.  *   Setting background colors to high intensity values will cause blinking
  1666.      (for example, using "9" instead of "1" will still give a blue
  1667.      background but the foreground character will blink).  
  1668.  
  1669.  *   After the string is displayed, the previous Terminal Screen attribute
  1670.      will be restored.
  1671.  
  1672.  *   Conversion is performed on the string according to the rules in
  1673.      Appendix D.
  1674.  
  1675.  
  1676. ===  DIVIde  ===
  1677.  
  1678. Default key:   none
  1679. Description:   Divide a numeric variable by a number.
  1680.  
  1681. Example:
  1682.  
  1683.      {divi space,1024}
  1684.           Divide "space" by 1024.
  1685.  
  1686. The divisor (second argument) is limited to 65535 (default is 1).
  1687.  
  1688. The named variable will be set to the quotient, the built-in variable
  1689. "_rem" will be set to the remainder.
  1690.  
  1691. If the divisor is zero or if either argument is out of range, then the
  1692. variable will be set to the string "ERROR".
  1693.  
  1694. If the variable is not numeric, the results will be unpredictable.
  1695.  
  1696.  
  1697.  
  1698.                                     -34-
  1699.  
  1700. ===  DOORway  ===
  1701.  
  1702. Default key:   Alt-=
  1703. Description:   Toggle Doorway Mode.
  1704.  
  1705. Switches:
  1706.  
  1707.      S1 or S
  1708.           Status Line on when entering Doorway Mode.
  1709.  
  1710.      S0
  1711.           Status Line off (default).
  1712.  
  1713.      M0
  1714.           Do not display Doorway enter/exit messages.
  1715.  
  1716.      M1
  1717.           Display enter/exit messages (default).
  1718.  
  1719. Examples:
  1720.  
  1721.      {doorway}
  1722.           Toggle Doorway Mode on/off.
  1723.  
  1724.      {door-S}
  1725.           Status Line on when entering Doorway Mode.
  1726.  
  1727.      {doorway-M0}
  1728.           Do not display enter/exit messages.
  1729.  
  1730. The "S" switch is ignored when exiting Doorway Mode (the Status Line will
  1731. be restored to its prior state).
  1732.  
  1733.  
  1734. ===  DPARms  ===
  1735.  
  1736. Default key:   Alt-P
  1737. Description:   Set Default Dialing Terminal Parameters
  1738.  
  1739. General form:
  1740.  
  1741.      {DPARms speed,format,comport,terminal-type,delay}
  1742.  
  1743.           speed
  1744.                The bps rate: 2400, 38400, etc.
  1745.  
  1746.           format
  1747.                The data format: 8n1, 7e1, etc.
  1748.  
  1749.           comport
  1750.                The serial port number: 1, 2, 3 or 4.
  1751.  
  1752.  
  1753.  
  1754.                                     -35-
  1755.  
  1756.           terminal
  1757.                The terminal-type: A, V or T.
  1758.  
  1759.           delay
  1760.                The inter-character delay factor: 0-999.
  1761.  
  1762. Examples:
  1763.  
  1764.      {dparms 38400,8,1,,20}
  1765.           Set 38400 bps, 8n1, Com1, delay=20.
  1766.  
  1767.      {dparms ,,4,V}
  1768.           Set Com4 VT102.
  1769.  
  1770.      {dparms 19200,7o1}
  1771.           Set 19200 bps, 7o1.
  1772.  
  1773. IMPORTANT!  Omitted parameters are not changed.
  1774.  
  1775. These are the parameters that are set whenever a number is DIALed.  Any of
  1776. them may be overridden in the Dialing Directory entry.
  1777.  
  1778. See also PARMs.
  1779.  
  1780.  
  1781. ===  EDIT  ===
  1782.  
  1783. Default key:   none
  1784. Description:   Edit an external file.
  1785.  
  1786. Example:
  1787.  
  1788.      {edit c:\autoexec.bat}
  1789.           Edit AUTOEXEC.BAT file.
  1790.  
  1791. EDIT may be used to edit any text file up to 64k in length.  The rules are
  1792. the same as for editing a support file with the Internal Editor.  See
  1793. Appendix K for more information.
  1794.  
  1795. TIPS on using EDIT:
  1796.  
  1797.  *   Any data beyond the last cr/lf pair will be removed prior to editing. 
  1798.      There must be at least one valid line in the file or an error will
  1799.      result.
  1800.  
  1801.  *   The file will be saved unconditionally when Alt-F is pressed or
  1802.      conditionally (if changes were made) when Esc is pressed.  The file is
  1803.      "saved in place" (no backup).
  1804.  
  1805.  
  1806.  
  1807.                                     -36-
  1808.  
  1809. ===  ELAPse  ===
  1810.  
  1811. Default key:   none
  1812. Description:   Reset the elapsed timer to 0 minutes.
  1813.  
  1814. Example:
  1815.  
  1816.      {elap}
  1817.           No arguments.
  1818.  
  1819. The elapsed timer is automatically reset whenever dialing begins and when a
  1820. connection is made with a remote system.
  1821.  
  1822.  
  1823. ===  EXECute  ===
  1824.  
  1825. Default key:   none
  1826. Description:   Execute a DOS command.
  1827.  
  1828. Switches:
  1829.  
  1830.      A1 or A
  1831.           Sound the alarm at the end of command execution.
  1832.  
  1833.      A0
  1834.           Do not sound the alarm (default).
  1835.  
  1836.      D1 or D
  1837.           Execute an external program directly, without use of the command
  1838.           processor (see details below).
  1839.  
  1840.      D0
  1841.           Use the command processor (default).
  1842.  
  1843.      N1 or N
  1844.           Do NOT clear the screen before execution.  This is useful when
  1845.           running programs that clear or rewrite the screen.  Also for
  1846.           simple DOS functions like changing directories, renaming files,
  1847.           etc.  
  1848.  
  1849.      N0
  1850.           Clear the screen (default).
  1851.  
  1852.      S1 or S
  1853.           Swap to Disk before executing the program (see details below).
  1854.  
  1855.      S0
  1856.           Do not swap to disk (default).
  1857.  
  1858.  
  1859.  
  1860.                                     -37-
  1861.  
  1862.      W
  1863.           Wait for a key press before restoring the Terminal Screen.  This
  1864.           is useful if you need to see the results of the command
  1865.           execution.
  1866.  
  1867.      Wn
  1868.           Wait for "n" seconds, "n" may range from 0 to 999.  Press a key
  1869.           to cancel the wait.
  1870.  
  1871.           Note:  Default (no "W" switch) is no wait.
  1872.  
  1873. Examples:
  1874.  
  1875.      {exec-AW3 hslink -P%_por %pr_file -U%pr_down}
  1876.           {COMMO} will prepare the HS/Link command by expanding the "%"
  1877.           variables, then call DOS to execute the program.
  1878.  
  1879.           See the section "Macro Variables" for complete details on
  1880.           variable substitution.
  1881.  
  1882.           The alarm will sound at completion (the "A" switch) and {COMMO}
  1883.           will wait for three seconds (the "W3" switch) before restoring
  1884.           the Terminal Screen.
  1885.  
  1886.      {execute-DN c:\utils\list.com %_cap}
  1887.           The LIST program will be directly executed with the current
  1888.           Capture File path\filename as a command line argument.  The
  1889.           screen will not be cleared (LIST will rewrite the screen). 
  1890.           {COMMO} will return immediately to the Terminal Screen when LIST
  1891.           exits.
  1892.  
  1893. The EXECute function enables you to "build" a command to be executed by
  1894. DOS.  The DOS command processor (COMMAND.COM) is normally used (see below),
  1895. which implies that you may specify any command as you would type it from
  1896. the DOS prompt.
  1897.  
  1898. Thus you can execute batch files and internal DOS commands (REN, DEL,
  1899. etc.).  Also you can omit command paths and extensions (if the command is
  1900. in your PATH or in the current directory).
  1901.  
  1902. Character conversion is performed in the EXECute function.  This enables
  1903. you to specify control characters.  For example:
  1904.  
  1905.      {exec echo ^L> prn}   Send a formfeed to the printer
  1906.  
  1907. See Appendix D for details on conversion.  Note that the vertical bar "|"
  1908. is NOT translated to a carriage return in the EXECute function.  
  1909.  
  1910. Key codes may be placed in the keyboard buffer prior to EXECute using the
  1911. KEYStuff function.
  1912.  
  1913.  
  1914.  
  1915.                                     -38-
  1916.  
  1917. ----------  Using the Direct Switch: EXEC-D
  1918.  
  1919. Use this switch to execute .EXE and .COM programs without the use of the
  1920. command processor (usually COMMAND.COM).
  1921.  
  1922. The program's Exit Code (called ERRORLEVEL in batch files) is saved and may
  1923. be tested with the IFERrorlevel function.  The Exit Code is also available
  1924. in the variable "_err".
  1925.  
  1926. There are several advantages to using the "D" switch:
  1927.  
  1928. 1)   Only the memory needed to run the program is required (the command
  1929.      processor requires that about 32k be available, even if the program
  1930.      being run is much smaller).
  1931.  
  1932. 2)   About 4k of memory is saved by not having a copy of the command
  1933.      processor resident when the program is running.
  1934.  
  1935. 3)   The program executes faster, since COMMAND.COM is not loaded from
  1936.      disk.
  1937.  
  1938. 4)   The program's Exit Code is preserved and may be tested with the
  1939.      {COMMO} IFERrorlevel function.
  1940.  
  1941. Two important rules must be followed when using the "D" switch:
  1942.  
  1943. 1)   The full path\filename of the program file must be specified,
  1944.      including the path where the file resides on disk and the file
  1945.      extension.  For example:
  1946.  
  1947.           {exec-D c:\util\list.com file.txt}
  1948.  
  1949. 2)   Only .EXE and .COM files may be run (batch files and internal DOS
  1950.      commands cannot be executed without COMMAND.COM).
  1951.  
  1952.  
  1953. ----------  Using the Swap to Disk Switch: EXEC-S
  1954.  
  1955. Using the "S" switch will free up most of the memory used by {COMMO}.  The
  1956. program and data will be saved to a special disk file.  The path\filename
  1957. of this file is specified with "swp=" in the Setup File (under "Paths and
  1958. Files").  If the Swap File cannot be created or there is not enough disk
  1959. space for the swap, the EXECute (or SHELl) will be attempted without
  1960. swapping.
  1961.  
  1962. When the program or shell exits back to {COMMO}, everything will be
  1963. restored in memory.  Any errors in this process will cause {COMMO} to exit
  1964. to DOS.
  1965.  
  1966.  
  1967.  
  1968.                                     -39-
  1969.  
  1970. TIPS on using Swap to Disk:
  1971.  
  1972.  *   Use Swap to Disk when running major applications such as external
  1973.      protocol programs, offline mail readers, etc.  Using it with internal
  1974.      DOS functions (DEL, COPY, REN, etc.) or very small programs is
  1975.      inefficient and unnecessary.
  1976.  
  1977.  *   If possible, specify the Swap File on a RAMDISK.  This will speed up
  1978.      the swap considerably.  A ramdisk program is supplied with DOS
  1979.      (RAMDRIVE.SYS or VDISK.SYS) or you can obtain one from a BBS.
  1980.  
  1981.  *   Be sure to specify a complete path\filename for the Swap File.
  1982.  
  1983.  *   Do not run any TSR (resident) programs when swapping is in effect. 
  1984.      Doing so may result in a swap error.
  1985.  
  1986.  *   The Dialing Directory, resident Macro File and auxiliary Macro File
  1987.      are saved under their original filenames if they have changed.  Thus
  1988.      they may be utilized and/or modified while in the swap/shell.
  1989.  
  1990.  
  1991. ----------  EXECute Preview Mode
  1992.  
  1993. Use the Set Toggles key command, Alt-T, to turn on "EXECute Preview Mode." 
  1994. This mode is used to test your DOS commands and performs the following
  1995. steps for each EXECute function:
  1996.  
  1997. 1)   The command will be displayed after expanding variables and converting
  1998.      control characters.
  1999.  
  2000. 2)   You will be given an opportunity to edit and/or cancel the command
  2001.      before it is executed.
  2002.  
  2003. 3)   Following execution {COMMO} will wait before restoring the Terminal
  2004.      Screen.  This lets you see any error messages that the command may
  2005.      have displayed.
  2006.  
  2007.  
  2008. ===  EXIT  ===
  2009.  
  2010. Default key:   Alt-X
  2011. Description:   Exit {COMMO}.
  2012.  
  2013. General form:
  2014.  
  2015.      {EXIT number}
  2016.  
  2017.           number
  2018.                The return code to be passed to DOS.  It may be tested with
  2019.                the IF ERRORLEVEL batch command.  Range is 0 to 255.
  2020.  
  2021.  
  2022.  
  2023.                                     -40-
  2024.  
  2025. Switches:
  2026.  
  2027.      D1 or D
  2028.           Drop DTR and RTS.  Dropping DTR will cause the modem to
  2029.           disconnect if it has been properly initialized.  See Appendix A.
  2030.  
  2031.      D0
  2032.           Do not drop DTR and RTS.
  2033.  
  2034.           If the switch is absent, the current setting of the toggle will
  2035.           be used.  The toggle can be set in the Setup File or by using the
  2036.           Alt-T key command.
  2037.  
  2038. Examples:
  2039.  
  2040.      {exit}
  2041.           No arguments (return code = 0).
  2042.  
  2043.      {exit 3}
  2044.           With return code.
  2045.  
  2046.      {exit-D}
  2047.           Drop DTR and RTS.
  2048.  
  2049.  
  2050. ===  FILE  ===
  2051.  
  2052. Default key:   none
  2053. Description:   Find directory entry information.
  2054.  
  2055. General form:
  2056.  
  2057.      {FILE filespec}
  2058.  
  2059.           filespec
  2060.                The path and file mask to be used for finding directory
  2061.                entries (filenames and subdirectories).  May consist of
  2062.                drive, path and filename with wildcards.
  2063.  
  2064. Switches:
  2065.  
  2066.      X1 or X
  2067.           Find next matching entry.
  2068.  
  2069.      X0
  2070.           Find first matching entry (default).
  2071.  
  2072.  
  2073.  
  2074.                                     -41-
  2075.  
  2076. Examples:
  2077.  
  2078.      {file c:\upload\*.*}
  2079.           Find first filename or subdirectory in the directory "c:\upload."
  2080.  
  2081.      {file-x}
  2082.           Find next filename in same directory.
  2083.  
  2084. The FILE function will find directory information about the files and
  2085. subdirectories specified in "filespec."  The data will be made available in
  2086. the following built-in variables:
  2087.  
  2088.      _ffn
  2089.           Filename or subdirectory name.  Subdirectory names will be
  2090.           preceded with a "\".  The parent directory (if any) will be
  2091.           indicated as "\..".
  2092.  
  2093.      _ffs
  2094.           File size in bytes.
  2095.  
  2096.      _ffd
  2097.           File date.  The format will be as specified in Setup File item
  2098.           "dat=".
  2099.  
  2100.      _fft
  2101.           File time.  The format will be as specified in Setup File item
  2102.           "tim=".
  2103.  
  2104. The FILE function must be executed without the "X" switch (or with X0) to
  2105. initialize the directory.  This will also make available the first filename
  2106. or subdirectory.  Subsequent executions (with the "X" switch) will make
  2107. subsequent names available.
  2108.  
  2109. Use the IFCOndition function to determine if a filename was made available. 
  2110. The first label ("true") will be taken if a filename was found;  the second
  2111. label ("false") will be taken if no additional filenames are available.
  2112.  
  2113. TIPS on using FILE:
  2114.  
  2115.  *   IMPORTANT!  Do not use IFEXist until all files have been found (it
  2116.      uses the same DOS file finding functions).
  2117.  
  2118.  *   The built-in variables will always contain the data for the last
  2119.      filename found.  If no filename has ever been found, the contents are
  2120.      unpredictable.
  2121.  
  2122.  
  2123. ===  FONFile  ===
  2124.  
  2125. Default key:   none
  2126. Description:   Load a new Dialing Directory file.
  2127.  
  2128.  
  2129.  
  2130.                                     -42-
  2131.  
  2132. Example:
  2133.  
  2134.      {fonf local.fon}
  2135.           The Dialing Directory is replaced with the file LOCAL.FON.
  2136.  
  2137. (Note that this feature is unavailable during shareware evaluation.)
  2138.  
  2139. The current Dialing Directory file will be saved to disk if there are any
  2140. outstanding changes.  Dialing marks in the new file will be erased if
  2141. {cdm=yes} in the Setup File.
  2142.  
  2143.  
  2144. ===  GETString  ===
  2145.  
  2146. Default key:   none
  2147. Description:   Input a string from the modem to a variable.
  2148.  
  2149. General form:
  2150.  
  2151.      {GETString name,count,label}
  2152.  
  2153.           name
  2154.                The name of the variable to which the string will be
  2155.                assigned.
  2156.  
  2157.           count
  2158.                The maximum number of data characters allowed.  A carriage
  2159.                return will always terminate input.  May be 1 to 240. 
  2160.                Default is 240.
  2161.  
  2162.           label
  2163.                A macro to GOTO if a carriage return is received and no
  2164.                characters have been entered (the string will be assigned as
  2165.                null).  If this argument is omitted, control will pass to
  2166.                the next function.
  2167.  
  2168. Switches:
  2169.  
  2170.      A1 or A
  2171.           "Append" mode.  Characters will be appended to the variable.  If
  2172.           the current length of the variable is greater than the count in
  2173.           the second argument, a count of 240 will be assumed.
  2174.  
  2175.      A0
  2176.           The variable will be replaced (default).
  2177.  
  2178.      H1 or H
  2179.           "Hotkey" mode.  When the maximum number of characters has been
  2180.           entered, control will pass to the next function.
  2181.  
  2182.      H0
  2183.           Ignore all input after the maximum has been entered, except
  2184.           backspace and carriage return (default).
  2185.  
  2186.  
  2187.  
  2188.                                     -43-
  2189.  
  2190.  
  2191.      I1 or I
  2192.           "Input" mode.  In this mode, characters from the modem will be
  2193.           ignored during the GETString (they will be buffered) and
  2194.           characters typed locally will not be sent to the remote.  This is
  2195.           another way to get local input (see also INPUt and INFOrm).  Echo
  2196.           Status from SETGet is ignored.
  2197.  
  2198.      I0
  2199.           Normal mode (default).
  2200.  
  2201.      P1 or P
  2202.           "Password" mode.  Asterisks will be echoed to the remote and
  2203.           local terminals in place of the received characters (Echo Status
  2204.           will be honored, see SETGet).
  2205.  
  2206.      P0
  2207.           Characters are echoed as received (default).
  2208.  
  2209. Examples:
  2210.  
  2211.      {setget 60,timeout,y,^m^j}
  2212.           Set GETString parameters.
  2213.  
  2214.      {gets fonum,12,badinput}
  2215.           Get input to "fonum."
  2216.  
  2217.      {gets-p pword,20}
  2218.           Get a password.
  2219.  
  2220. TIPS on using GETString:
  2221.  
  2222.  *   Use SETGet to set important parameters for GETString.
  2223.  
  2224.  *   A carriage return (ASCII 13) terminates input.  The backspace
  2225.      character (ASCII 8) is used for simple editing.  ASCII 0 and 10 are
  2226.      ignored.  All other characters will be accepted.  Note that tab (ASCII
  2227.      9) will cause problems in host macros.  Use RTRAn to filter tabs if
  2228.      necessary.
  2229.  
  2230.  *   GETString supports "tandem" input.  Characters entered at either end
  2231.      will be input to the string (and displayed at both ends if echo is on
  2232.      (see SETGet).  Turn on Local Echo to see text locally that is sent to
  2233.      the remote with SEND, ASCIiup, etc.
  2234.  
  2235.  *   Use the "H" switch and a character count of 1 for "hotkeys."
  2236.  
  2237.  *   Turn off echo (see SETGet) while waiting for the modem to answer (in
  2238.      host mode).  Some modems react poorly to characters being echoed when
  2239.      they are generating a response (such as "RING").
  2240.  
  2241.  *   Incoming characters displayed during a GETString function are not seen
  2242.      by subsequent SSLOok/CALOok/GOLOok/LOOKfor functions.
  2243.  
  2244.  
  2245.  
  2246.                                     -44-
  2247.  
  2248.  
  2249. See also SETGet, INPUt, INFOrm.
  2250.  
  2251.  
  2252. ===  GOLOok  ===
  2253.  
  2254. Default key:   none
  2255. Description:   GOTO a label when a string appears.
  2256.  
  2257. General form:
  2258.  
  2259.      {GOLOok label,target}
  2260.  
  2261.           label
  2262.                A label to GOTO when the target is received from the serial
  2263.                port.
  2264.  
  2265.           target
  2266.                The ASCII string to look for.  The string begins following
  2267.                the "," and is terminated by the "}".
  2268.  
  2269. GOLOok is used in conjunction with the LOOKfor function.  It sets up an
  2270. additional string to look for.  When the target string appears, control
  2271. will pass to the label.
  2272.  
  2273. See LOOKfor for details, examples and tips on using GOLOok.
  2274.  
  2275. See also SSLOok, CALOok, SETLook.
  2276.  
  2277.  
  2278. ===  GOTO  ===
  2279.  
  2280. Default key:   none
  2281. Description:   Transfer control of macro execution.
  2282.  
  2283. General form:
  2284.  
  2285.      {GOTO label,filename}
  2286.  
  2287.           label
  2288.                The label to which control will be transferred.
  2289.  
  2290.           filename
  2291.                The name of the Macro File where the label is to be found. 
  2292.                This argument is OPTIONAL and is normally used only if the
  2293.                file is not already loaded.  Do NOT specify a path; the
  2294.                {COMMO} home directory will be used.
  2295.  
  2296.  
  2297.  
  2298.                                     -45-
  2299.  
  2300. Switches:
  2301.  
  2302.           F1 or F
  2303.                Force loading of the specified file (as the auxiliary file). 
  2304.                No filename comparison will be made.
  2305.  
  2306.           F0
  2307.                Compare filenames.  If the file is already loaded (resident
  2308.                or auxiliary), it will not be reloaded (default).
  2309.  
  2310. Examples:
  2311.  
  2312.      {goto mail_run}
  2313.           Control transferred to label "mail_run".
  2314.  
  2315.      {goto mail_run,ginger.mac}
  2316.           Control transferred to label "mail_run" in the auxiliary Macro
  2317.           File "ginger.mac".
  2318.  
  2319.      {goto ,ginger.mac}
  2320.           The auxiliary Macro File "ginger.mac" is loaded; macro execution
  2321.           STOPs (no label given).
  2322.  
  2323. If a filename is specified, {COMMO} will check to see if the file is
  2324. already loaded (resident or auxiliary).  If not, the file will be loaded as
  2325. the auxiliary (the current auxiliary will be saved to disk if there are any
  2326. outstanding changes).
  2327.  
  2328. TIPS on using GOTO:
  2329.  
  2330.  *   It isn't necessary to specify a filename if the target label is in the
  2331.      resident Macro File or in the current auxiliary file.
  2332.  
  2333.  *   A Macro Error will result if either the label or the file do not
  2334.      exist.
  2335.  
  2336. See also CALL, UNLOad, Appendix K.
  2337.  
  2338.  
  2339. ===  HANGup  ===
  2340.  
  2341. Default key:   Alt-H
  2342. Description:   Disconnect by dropping DTR.
  2343.  
  2344. Examples:
  2345.  
  2346.      {hangup}
  2347.           Prompt user for disconnect.
  2348.  
  2349.      {hangup y}
  2350.           Disconnect without prompting.
  2351.  
  2352.  
  2353.  
  2354.                                     -46-
  2355.  
  2356. ===  HELP  ===
  2357.  
  2358. Default key:   F1
  2359. Description:   Open Online Help window.
  2360.  
  2361. Examples:
  2362.  
  2363.      {help}
  2364.           Display key command help
  2365.  
  2366.      {help x}
  2367.           Display topic "TX"
  2368.  
  2369. Any single character may be specified.  {COMMO} will prefix it with a "T"
  2370. and search for the topic code.  You may create your own Online Help file. 
  2371. See "Modifying the Help File" in Part I (COMMO.DOC).
  2372.  
  2373.  
  2374. ===  HOLD  ===
  2375.  
  2376. Default key:   none
  2377. Description:   Hold until specified time of day (24 hour format).
  2378.  
  2379. Examples:
  2380.  
  2381.      {hold 3:30}
  2382.           Hold until 3:30 am.
  2383.  
  2384.      {hold 16:10}
  2385.           Hold until 4:10 pm.
  2386.  
  2387.      {hold 0:00}
  2388.           Hold until midnight.
  2389.  
  2390. NOTE:  Incoming characters displayed during a HOLD function are not seen by
  2391. subsequent SSLOok/CALOok/GOLOok/LOOKfor functions.
  2392.  
  2393.  
  2394. ===  IFCArrier  ===
  2395.  
  2396. Default key:   none
  2397. Description:   Test for presence of carrier detect signal.
  2398.  
  2399. General form:
  2400.  
  2401.      {IFCArrier true,false}
  2402.  
  2403.           true
  2404.                A label to GOTO or CALL if carrier is detected.
  2405.  
  2406.           false
  2407.                A label to GOTO or CALL if carrier is not detected.
  2408.  
  2409.  
  2410.  
  2411.                                     -47-
  2412.  
  2413. NOTE:  If a target label is omitted (null), control will pass to the next
  2414. function.
  2415.  
  2416. Switches:
  2417.  
  2418.      C1 or C
  2419.           A CALL is performed on the label.  When the CALLed routine
  2420.           RETUrns, execution will continue following the IFCArrier.
  2421.  
  2422.      C0
  2423.           A GOTO is performed (default).
  2424.  
  2425. Examples:
  2426.  
  2427.      {ifcarrier c10,c20}
  2428.           Using GOTO
  2429.  
  2430.      {ifcarrier-c c10,c20}
  2431.           Using CALL
  2432.  
  2433. TIP on using IFCArrier:
  2434.  
  2435.  *   When using a loop to wait for a change in carrier detect, you should
  2436.      include a short pause in the loop if you want characters to display. 
  2437.      The following sequence will display incoming characters while waiting
  2438.      for carrier detect to drop:
  2439.  
  2440.           ... {:cd1} {pause 1} {ifcarrier cd1} ...
  2441.  
  2442. See also NOCArrier.
  2443.  
  2444.  
  2445. ===  IFCOndition  ===
  2446.  
  2447. Default key:   none
  2448. Description:   Test for conditions set by other functions.
  2449.  
  2450. General form:
  2451.  
  2452.      {IFCOndition true,false}
  2453.  
  2454.           true
  2455.                A label to GOTO or CALL if the Condition Flag is true.
  2456.  
  2457.           false
  2458.                A label to GOTO or CALL if the Condition Flag is false.
  2459.  
  2460. NOTE:  If a target label is omitted (null), control will pass to the next
  2461. function.
  2462.  
  2463.  
  2464.  
  2465.                                     -48-
  2466.  
  2467. Numeric switches:
  2468.  
  2469.      no switches present
  2470.           Test the current state of the Condition Flag.
  2471.  
  2472.      E1 or E
  2473.           Test for numeric equality.  A numeric string contains only the
  2474.           digits 0-9 and is in the range 0 to 65535.
  2475.  
  2476.      L1 or L
  2477.           Numeric test -- if first COMPare argument is less than the
  2478.           second.
  2479.  
  2480.      G1 or G
  2481.           Numeric test -- if first COMPare argument is greater than the
  2482.           second.
  2483.  
  2484. Other switches:
  2485.  
  2486.      C1 or C
  2487.           A CALL is performed on the label.  When the CALLed routine
  2488.           RETUrns, execution will continue following the IFCOndition.
  2489.  
  2490.      C0
  2491.           A GOTO is performed (default).
  2492.  
  2493. Examples:
  2494.  
  2495.      {compare var1,message}
  2496.      {ifcondit match,nomatch}
  2497.           Compare and set Condition Flag.  GOTO "match" if the variable
  2498.           "var1" is set to "message," to "nomatch" if it is not.
  2499.  
  2500.      {compare value,200}
  2501.      {ifcon-GEC toobig,aok}
  2502.           Compare and set conditions.  CALL "toobig" if "value" is greater
  2503.           than or equal to 200, else CALL "aok."
  2504.  
  2505.      {instring zipcode,90}
  2506.      {ifcon yes,no}
  2507.           Test if "zipcode" contains the digits "90".  If "true" GOTO
  2508.           "yes", if "false" GOTO "no".
  2509.  
  2510. Switches may be used in any combination.  If any numeric switches are
  2511. present, the Condition Flag is not tested.
  2512.  
  2513. The difference between testing for string equality and numeric equality is
  2514. shown in this example:
  2515.  
  2516.      The strings "05" and "5" are different text strings, but are
  2517.      numerically equal.
  2518.  
  2519.  
  2520.  
  2521.                                     -49-
  2522.  
  2523. ===  IFERrorlevel  ===
  2524.  
  2525. Default key:   none
  2526. Description:   Test the Exit Code set by certain functions.
  2527.  
  2528. General form:
  2529.  
  2530.      {IFERrorlevel number,true,false}
  2531.  
  2532.           number
  2533.                A number from 0 to 255.  It will be compared to the last
  2534.                Exit Code that was set.
  2535.  
  2536.           true
  2537.                A label to GOTO or CALL if the Exit Code is greater than or
  2538.                equal to "number."
  2539.  
  2540.           false
  2541.                A label to GOTO or CALL if the Exit Code is less than
  2542.                "number."
  2543.  
  2544. NOTE:  If a target label is omitted (null), control will pass to the next
  2545. function.
  2546.  
  2547. Switches:
  2548.  
  2549.      C1 or C
  2550.           A CALL is performed on the label.  When the CALLed routine
  2551.           RETUrns, execution will continue following the IFERrorlevel.
  2552.  
  2553.      C0
  2554.           A GOTO is performed (default).
  2555.  
  2556. Examples:
  2557.  
  2558.      {iferror 1,abc,def}
  2559.           GOTO "abc" if Exit Code is greater than or equal to 1.  Else GOTO
  2560.           def.
  2561.  
  2562.      {ifer-c 2,gtr2}
  2563.           CALL "gtr2" if Exit Code is greater than or equal to 2  Else
  2564.           continue.
  2565.  
  2566. TIPS on using IFERrorlevel:
  2567.  
  2568.  *   The Exit Code is set by certain functions (e.g., EXECute-D, SHELl,
  2569.      RXMOdem, SXMOdem) and should normally be tested immediately following
  2570.      execution of those functions.
  2571.  
  2572.  *   EXECute without the "D" switch or Shell to DOS will normally set the
  2573.      Exit Code to 0.
  2574.  
  2575.  
  2576.  
  2577.                                     -50-
  2578.  
  2579.  *   Many programs return an Exit Code greater than 0 when the result is
  2580.      unsuccessful.  HS/Link, for example, will return an Exit Code of 1 or
  2581.      higher if the file transfer has failed.
  2582.  
  2583.  *   The value of the Exit Code is also stored in the string variable
  2584.      "_err" and may be tested with COMPare.
  2585.  
  2586.  
  2587. ===  IFEXist  ===
  2588.  
  2589. Default key:   none
  2590. Description:   Test for existence of a disk file or files.
  2591.  
  2592. General form:
  2593.  
  2594.      {IFEXist path\filename,true,false}
  2595.  
  2596.           path\filename
  2597.                A DOS path\filename.  If the path is omitted, the current
  2598.                directory will be used.  If wildcards are used the "true"
  2599.                condition will hold if any files match the specification.
  2600.  
  2601.           true
  2602.                A label to GOTO or CALL if the file exists.
  2603.  
  2604.           false
  2605.                A label to GOTO or CALL if no files match.
  2606.  
  2607. NOTE:  If a target label is omitted (null), control will pass to the next
  2608. function.
  2609.  
  2610. Switches:
  2611.  
  2612.      C1 or C
  2613.           A CALL is performed on the label.  When the CALLed routine
  2614.           RETUrns, execution will continue following the IFEXist.
  2615.  
  2616.      C0
  2617.           A GOTO is performed (default).
  2618.  
  2619. Examples:
  2620.  
  2621.      {ifex-c a:file.xyz,,m20}
  2622.           CALL "m20" if not found.
  2623.  
  2624.      {ifex c:\data\words.txt,345}
  2625.           GOTO "345" if found.
  2626.  
  2627.      {ifex c:\ul\*.rep,a01,a02}
  2628.           Using a wildcard.
  2629.  
  2630.  
  2631.  
  2632.                                     -51-
  2633.  
  2634. ===  INCRement  ===
  2635.  
  2636. Default key:   none
  2637. Description:   Add a number to a numeric variable.
  2638.  
  2639. Examples:
  2640.  
  2641.      {incr count}
  2642.           Add 1 to the variable "count".
  2643.  
  2644.      {incr oranges,1234}
  2645.           Add 1234 to "oranges".
  2646.  
  2647. The default for the second argument is 1.
  2648.  
  2649. If either argument or the result is out of range, then the variable will be
  2650. set to the string "ERROR".
  2651.  
  2652. If the variable is not numeric, the results will be unpredictable.
  2653.  
  2654. See also DECRement.
  2655.  
  2656.  
  2657. ===  INFOrm  ===
  2658.  
  2659. Default key:   none
  2660. Description:   Display an advisory message.
  2661.  
  2662. General form:
  2663.  
  2664.      {INFOrm string}
  2665.  
  2666.           string
  2667.                Message to be displayed.
  2668.  
  2669. Switches:
  2670.  
  2671.      Q1 or Q
  2672.           Query the user for a "Yes/No" response.  "Yes" will be the
  2673.           default if Enter is pressed.
  2674.  
  2675.           The Condition Flag will be set to "true" if the response is
  2676.           "yes".  It will be set to "false" if the response is "no".  Test
  2677.           with IFCOndition.
  2678.  
  2679.      Q0
  2680.           Query the user for a "Yes/No" response.  "No" will be the default
  2681.           if Enter is pressed.  The Condition Flag is set as above.
  2682.  
  2683.  
  2684.  
  2685.                                     -52-
  2686.  
  2687.      Dn
  2688.           Display the message for "n" seconds, then continue.  "n" may
  2689.           range from 1 to 999.  This switch is ignored if the "Q" switch is
  2690.           present.
  2691.  
  2692.      S1 or S
  2693.           An error sound will accompany the message (default).  The error
  2694.           sound is controlled with the "ers" item in the Setup File.
  2695.  
  2696.      S0
  2697.           No error sound will be made.
  2698.  
  2699. Examples:
  2700.  
  2701.      {inform Press a key to continue}
  2702.           Wait for Esc.
  2703.  
  2704.      {info-qs0 Overwrite the file?}
  2705.           Yes/No response, no error sound.
  2706.  
  2707.      {info-d3 Login now in progress}
  2708.           Display message for 3 seconds, then continue.
  2709.  
  2710. INFOrm will display a string in a pop-up box over the Terminal Screen. 
  2711. {COMMO} will normally wait for "Esc" to be pressed (switches can alter this
  2712. behavior).  The string length is limited by the width of the screen.
  2713.  
  2714. NOTE:  When the "Q" switch is used, Esc and Ctrl-Break will be ignored.
  2715.  
  2716. See also INPUt, GETString.
  2717.  
  2718.  
  2719. ===  INITmodem  ===
  2720.  
  2721. Default key:   Alt-O
  2722. Description:   Send Modem Initialization String.
  2723.  
  2724. Example:
  2725.  
  2726.      {init}
  2727.           No arguments
  2728.  
  2729.  
  2730. ===  INPUt  ===
  2731.  
  2732. Default key:   none
  2733. Description:   Input a string from the keyboard.
  2734.  
  2735. General form:
  2736.  
  2737.      {INPUt name,prompt}
  2738.  
  2739.  
  2740.  
  2741.                                     -53-
  2742.  
  2743.           name
  2744.                The name of a string variable.  The current value of this
  2745.                variable will appear in the input line.
  2746.  
  2747.           prompt
  2748.                A prompt string that will appear in the input window border.
  2749.  
  2750. Example:
  2751.  
  2752.      {input upfile,Enter a filename:}
  2753.           Input a string to the variable "upfile."
  2754.  
  2755. If 0 data characters are entered, the variable will be set to null.
  2756.  
  2757. NOTE:  If Esc is pressed, macro execution will be terminated unless an exit
  2758. label has been defined with SETEsc.
  2759.  
  2760. See also GETString, INFOrm.
  2761.  
  2762.  
  2763. ===  INSTring  ===
  2764.  
  2765. Default key:   none
  2766. Description:   Find a string within a string, return its position.
  2767.  
  2768. General form:
  2769.  
  2770.      {INSTring name,string}
  2771.  
  2772.           name
  2773.                The name of a variable (string to search in).
  2774.  
  2775.           string
  2776.                The string to search for.
  2777.  
  2778. Example:
  2779.  
  2780.      {inst line,abc}
  2781.           The variable "line" is searched for the string "abc".
  2782.  
  2783. INSTring will set the following:
  2784.  
  2785.      1)   The Condition Flag will be set to "true" if the string is found,
  2786.           to "false" if the string is not found.  Test with IFCOndition, no
  2787.           switches.
  2788.  
  2789.      2)   The starting position of the string will be returned in the
  2790.           built-in variable "_pos" (first character is "1").  "_pos" will
  2791.           be set to zero if the string is not found.
  2792.  
  2793.  
  2794.  
  2795.                                     -54-
  2796.  
  2797. ===  KEYStuff  ===
  2798.  
  2799. Default key:   none
  2800. Description:   Put key codes into the keyboard buffer.
  2801.  
  2802. Examples:
  2803.  
  2804.      {keys 1c0d}
  2805.           Put a carriage return into the keyboard buffer.
  2806.  
  2807.      {keys 1e41,6c00}
  2808.           Put an "A" in the keyboard buffer followed by Alt-F5.
  2809.  
  2810. This function is usually used prior to EXECuting programs, batch files or
  2811. DOS commands that require keys to be pressed.  It allows complete
  2812. automation without operator intervention.
  2813.  
  2814. TIPS on using KEYStuff:
  2815.  
  2816.  *   The key codes are given in hexadecimal (scan code/character code as
  2817.      received from the BIOS).  Press Alt-K in the Internal Editor to view
  2818.      any key code.
  2819.  
  2820.  *   One or more codes may be listed.  Do not insert extra spaces.
  2821.  
  2822.  *   Usually, when specifying an ASCII character, only the character code
  2823.      need be listed.  Thus the second example above could be written:  
  2824.  
  2825.           {keys 41,6c00}
  2826.  
  2827.  
  2828. ===  LENGth  ===
  2829.  
  2830. Default key:   none
  2831. Description:   Determine the length of a string.
  2832.  
  2833. Examples:
  2834.  
  2835.      {leng %line}
  2836.           Find the length of the string in the variable "line".
  2837.  
  2838.      {leng %line1%%line2}
  2839.           Find the combined length of "line1" and "line2".
  2840.  
  2841. The length will be returned in the built-in variable "_len".  If the string
  2842. is null, the length will be set to zero.
  2843.  
  2844.  
  2845. ===  LIGHts  ===
  2846.  
  2847. Default key:   none
  2848. Description:   Set Signal Lights toggle.
  2849.  
  2850.  
  2851.  
  2852.                                     -55-
  2853.  
  2854. Examples:
  2855.  
  2856.      {lights}
  2857.           Toggle Signal Lights on/off.
  2858.  
  2859.      {lights y}
  2860.           Turn on Signal Lights.
  2861.  
  2862.      {lights n}
  2863.           Turn off Signal Lights.
  2864.  
  2865.  
  2866. ===  LOCAlecho  ===
  2867.  
  2868. Default key:   none
  2869. Description:   Set Local Echo toggle.
  2870.  
  2871. Examples:
  2872.  
  2873.      {local}
  2874.           Toggle Local Echo on/off.
  2875.  
  2876.      {local y}
  2877.           Turn on Local Echo.
  2878.  
  2879.      {local n}
  2880.           Turn off Local Echo.
  2881.  
  2882.  
  2883. ===  LOOKfor  ===
  2884.  
  2885. Default key:   none
  2886. Description:   Look for strings in the modem input stream.
  2887.  
  2888. LOOKfor is used in conjunction with SSLOok, CALOok and GOLOok to scan for
  2889. as many as 16 strings at the same time.  When SSLOok, CALOok and GOLOok set
  2890. up additional strings to look for, the actual "looking" does not take place
  2891. until the LOOKfor executes.
  2892.  
  2893. Parameters controlling LOOKfor are set with the SETLook function and may be
  2894. changed at any time with another SETLook.  See the description of the
  2895. SETLook function for details.
  2896.  
  2897. Examples using LOOKfor only:
  2898.  
  2899.      {lookfor first name?}
  2900.           Look for the string "first name?"
  2901.  
  2902.      {look ^(COMMO^)}
  2903.           Look for the string "{COMMO}".
  2904.  
  2905.      When the string comes in, control will pass to the next function.
  2906.  
  2907.  
  2908.  
  2909.                                     -56-
  2910.  
  2911. Example construct using SSLOok/CALOok/GOLOok/LOOKfor:
  2912.  
  2913.                {setlook 60,hng,3,n|}
  2914.                {setv ss_r,|}
  2915.                  ...
  2916.      {:start}
  2917.                {golook label-a,target1}
  2918.                {calook start,label-b,target2}
  2919.                {sslook ss_r,target3}
  2920.                {golook ,target4}
  2921.                {lookfor target5} {send answer5}
  2922.                {goto label-c}
  2923.  
  2924.      {:label-a}     {hangup y} {goto cancel}
  2925.      {:label-b}     {send answer2} {call subr} {return}
  2926.      {:label-c}          ...
  2927.  
  2928.      In this example {COMMO} will look for five target strings.
  2929.  
  2930.      When a target specified in any of the CALOok, GOLOok or LOOKfor
  2931.      functions is received, the LOOKfor is cancelled.  It may be set up
  2932.      again by going to "start".
  2933.  
  2934.      When the target specified in the SSLOok is received, the string in the
  2935.      variable will be transmitted to the serial port.  The LOOKfor will
  2936.      continue to look for the same targets.
  2937.  
  2938.      The GOLOok function for target1 will GOTO "label-a" when the string
  2939.      comes in.  In the example control will pass to "cancel" (macro not
  2940.      shown).
  2941.  
  2942.      If target2 comes in, the CALOok function will set "start" as the
  2943.      return point and then CALL "label-b".  When this routine RETUrns,
  2944.      control returns to "start" and the five string LOOKfor will be set up
  2945.      again.
  2946.  
  2947.      If target3 is received, the string in the variable "ss_r" will be sent
  2948.      (in this case, a carriage return) and looking will continue.
  2949.  
  2950.      The GOLOok for target4 has a null label and control will pass to the
  2951.      function following the LOOKfor if that string comes in.  The "," must
  2952.      be present.
  2953.  
  2954.      If target5 comes in, control will pass to the function following the
  2955.      LOOKfor.
  2956.  
  2957. TIPS on creating LOOKfor strings:
  2958.  
  2959.  *   There should be just one space following the LOOKfor function name. 
  2960.      Any spaces beyond this point are part of the string.  The string ends
  2961.      at the right curly brace.
  2962.  
  2963.  
  2964.  
  2965.                                     -57-
  2966.  
  2967.  *   SSLOok/CALOok/GOLOok/Auto Receive strings begin immediately after the
  2968.      comma delimiter.  There should be no spaces unless they are part of
  2969.      the string.
  2970.  
  2971.  *   Strings may be up to 32 characters in length (control characters like
  2972.      "^M" count as one).  Upper/lower case is ignored.
  2973.  
  2974.  *   ANSI control sequences are filtered if ANSI or VT102 emulation is
  2975.      enabled.
  2976.  
  2977.  *   Short strings may not be unique enough, long strings may not match if
  2978.      there is line noise.
  2979.  
  2980.  *   Rules for representing special characters in
  2981.      SSLOok/CALOok/GOLOok/LOOKfor/Auto Receive strings are given in
  2982.      Appendix D.
  2983.  
  2984.  *   SSLOok, CALOok and GOLOok functions should immediately precede a
  2985.      LOOKfor (no string compares actually occur until the LOOKfor
  2986.      executes).  Up to 15 SSLOok/CALOok/GOLOok strings may be used in
  2987.      addition to the LOOKfor (up to 16 strings total).
  2988.  
  2989.  *   Use FILTER Capture Mode to determine the prompt to look for.
  2990.  
  2991.  *   If two or more strings cause a match at the same time, the LAST such
  2992.      string listed is the one acted upon (for example, if "abcdef" and
  2993.      "def" are listed and the string "abcdef" comes in).
  2994.  
  2995.  *   When an SSLOok causes a string to be sent, the LOOKfor timeout timer
  2996.      is restarted.
  2997.  
  2998. See also SSLOok, CALOok, GOLOok, SETLook.
  2999.  
  3000.  
  3001. ===  MACRo  ===
  3002.  
  3003. Default key:   Alt-M
  3004. Description:   Open Macro File window.
  3005.  
  3006. Examples:
  3007.  
  3008.      {macro}
  3009.           Open window at current position.
  3010.  
  3011.      {macro menu1}
  3012.           Open window at "menu1".
  3013.  
  3014. A string argument may be included to facilitate the creation of menus
  3015. within the Macro File.  The first occurrence of the argument string will
  3016. become the top line of the display when the window is opened.
  3017.  
  3018. The Selector Bar will be positioned on the first screen line that has a
  3019. left curly brace, if any.
  3020.  
  3021.  
  3022.  
  3023.                                     -58-
  3024.  
  3025.  
  3026. Here is an example of how to structure a menu using MACRo:
  3027.  
  3028.                                    | (this is past col. 80)
  3029.                                    | menu111
  3030.           Name of Menu             |
  3031.                                    |
  3032.                                    |
  3033.           Selection 1              | {goto sel1}
  3034.           Selection 2              | {goto sel2}
  3035.           Selection 3              | {goto sel3}
  3036.  
  3037.      {:af1} {macro menu111}
  3038.      {:sel1} ...
  3039.      {:sel2} ...
  3040.      {:sel3} ...
  3041.  
  3042. The upper line with "menu111" will be the top line of the screen.  Pressing
  3043. Alt-F1 will bring up the menu with the Selector Bar on Selection 1.  Macros
  3044. at "sel1", "sel2" and "sel3" will process the respective selections.
  3045.  
  3046. Note that the macro at "af1" to invoke the menu must be below the line with
  3047. "menu111" since it contains the string and would be found in the search. 
  3048. Also the macro at "af1" must be in the same Macro File (resident or
  3049. auxiliary) as the menu itself.
  3050.  
  3051. TIPS on using MACRo:
  3052.  
  3053.  *   The MACRo function always terminates the macro that is currently
  3054.      executing.
  3055.  
  3056.  *   Menu creation using MACRo cannot be used when the Macro File is
  3057.      compiled.  Use MENU instead.
  3058.  
  3059. See also MENU.
  3060.  
  3061.  
  3062. ===  MARK  ===
  3063.  
  3064. Default key:   none
  3065. Description:   Mark Dialing Directory entries for dialing.
  3066.  
  3067. Example:
  3068.  
  3069.      {mark joes-bbs,file-city}
  3070.           Mark entries for dialing.
  3071.  
  3072. Dialing Strings may be separated by spaces or commas.
  3073.  
  3074. {COMMO} will search the Dialing Directory for each string and mark the
  3075. first entry where a match is found.  Case is ignored.
  3076.  
  3077.  
  3078.  
  3079.                                     -59-
  3080.  
  3081. The strings may consist of any part of a Dialing Directory entry line
  3082. (including strings contained within curly braces), but must NOT contain any
  3083. spaces, commas or curly braces.
  3084.  
  3085. See also DIAL, UNMArk.
  3086.  
  3087.  
  3088. ===  MENU  ===
  3089.  
  3090. Default key:   none
  3091. Description:   Create a pop-up macro menu.
  3092.  
  3093. General form:
  3094.  
  3095.      {SETV _menu1,text1}
  3096.      {SETV _menu2,text2}
  3097.           ...
  3098.      {SETV _menuN,textN}
  3099.  
  3100.           text1
  3101.                Text to be placed on first information line in the pop-up
  3102.                window (third line down, counting from the top border).
  3103.  
  3104.                NOTE:  These text strings are simply information and have no
  3105.                effect on which macros will be executed.
  3106.  
  3107.           text2
  3108.                Text to be placed on second information line.
  3109.           ...
  3110.  
  3111.           textN
  3112.                Text to be placed on Nth information line.
  3113.  
  3114.      {SETV _mlabel,label1,label2,...}
  3115.  
  3116.           NOTE:  Labels are positional and may be omitted using null
  3117.           arguments for keys that aren't used.  See example 2 below.
  3118.  
  3119.           label1
  3120.                Label to GOTO if F1, A or 1 is pressed.  Any of the three
  3121.                keys will activate the macro at the first label.
  3122.  
  3123.           label2
  3124.                Label to GOTO if F2, B or 2 is pressed.
  3125.  
  3126.           ... etc.
  3127.  
  3128.      {SETV _menter,label}
  3129.  
  3130.           label
  3131.                Label to GOTO if Enter is pressed.
  3132.  
  3133.  
  3134.  
  3135.                                     -60-
  3136.  
  3137.      {SETV _mcolor,text,border}
  3138.  
  3139.           text
  3140.                Colors for the text area of the pop-up window.
  3141.  
  3142.           border
  3143.                Colors for the window border.
  3144.  
  3145.           NOTE:  The attributes are specified in the same manner as the
  3146.           colors in the Setup File (press F7 in the Internal Editor to
  3147.           display the Color Chart).  
  3148.  
  3149.      {MENU height,width,string}
  3150.  
  3151.           height
  3152.                Total number of rows from top to bottom of pop-up window,
  3153.                including borders.  Minimum is 5.
  3154.  
  3155.           width
  3156.                Total number of columns from left side to right side,
  3157.                including borders.  Minimum is 23.
  3158.  
  3159.           string
  3160.                Title string that will appear in the top border.
  3161.  
  3162. Example 1:
  3163.  
  3164.           {setv _menu1, F1  Call computer at work}
  3165.           {setv _menu3, F2  Call E-mail service}
  3166.           {setv _menu5, F3  Run offline mail reader}
  3167.           {setv _mlabel,work,mail,reader}
  3168.           {setv _mcolor,17,30}
  3169.           {menu 9,32,Daily Activity Menu} {}
  3170.  
  3171.      {:work}    ... macro to call work computer.
  3172.      {:mail}    ... macro to call E-mail service.
  3173.      {:reader}  ... macro to run offline reader.
  3174.  
  3175.      This menu specifies that function keys be pressed to activate the
  3176.      macros.  You could also press A or 1 instead of F1, B or 2 instead of
  3177.      F2, etc.  The macros may be as simple or as complex as desired to
  3178.      complete the task.
  3179.  
  3180. Example 2:
  3181.  
  3182.           {setv _menu1, [D]  Dialing Directory}
  3183.           {setv _menu4, [E]  Edit a file}
  3184.           {setv _menu2, [M]  Macro File}
  3185.           {setv _menu3, [Enter]  Shell to DOS (with swap)}
  3186.           {setv _mlabel,,,,ddir,edit,,,,,,,,mfile}
  3187.           {setv _menter,dos}
  3188.           {setv _mcolor,03,47}
  3189.           {menu 8,39,Common Commands} {}
  3190.  
  3191.  
  3192.  
  3193.                                     -61-
  3194.  
  3195.  
  3196.      {:ddir}  {dial} {}
  3197.      {:edit}  {input efile,Filename to Edit}
  3198.               {edit %efile} {}
  3199.      {:mfile} {macro}
  3200.      {:dos}   {shell-s} {}
  3201.  
  3202.      This menu uses "mnemonic" key labeling -- D for (D)ialing Directory,
  3203.      etc.  Notice that there are three empty positions in the "_mlabel"
  3204.      list prior to "ddir" and "edit".  These correspond to A, B and C,
  3205.      which are not used in this menu.  Then there are empty positions up to
  3206.      "mfile" (M).
  3207.  
  3208. TIPS on using MENU:
  3209.  
  3210.  *   The dimensions of the window are limited by the current size of the
  3211.      Terminal Screen.
  3212.  
  3213.  *   The total number of displayable lines is "height" less 4.  Lines in
  3214.      the window for which no "_menux" variable has been defined will be
  3215.      left blank.
  3216.  
  3217.  *   Up to 26 labels can be specified in each menu.  These correspond to
  3218.      pressing the letters A through Z.  The first 12 labels also correspond
  3219.      to pressing F1 through F12, while the first 9 labels correspond to
  3220.      pressing 1 through 9.
  3221.  
  3222.  *   The built-in variable "_msn" is set to the number of the menu
  3223.      selection when a menu key is pressed: 0 for Enter, 1 to 26 for A to Z,
  3224.      etc.
  3225.  
  3226.  *   All variables used to create the menu are automatically deleted from
  3227.      Variable Space after the menu is displayed. 
  3228.  
  3229.  *   The last colors used to display a menu will persist until they are
  3230.      changed (by setting the "_mcolor" variable).
  3231.  
  3232.  *   If Esc is pressed to exit the menu, macro execution continues in
  3233.      sequence following the MENU function.
  3234.  
  3235. See also MACRo.
  3236.  
  3237.  
  3238. ===  MULTiply  ===
  3239.  
  3240. Default key:   none
  3241. Description:   Multiply a numeric variable by a number.
  3242.  
  3243. Example:
  3244.  
  3245.      {mult money,10}
  3246.           Multiply "money" by 10.
  3247.  
  3248.  
  3249.  
  3250.                                     -62-
  3251.  
  3252. The multiplier (second argument) is limited to 65535 (default is 1).
  3253.  
  3254. If either argument or the result is out of range, then the variable will be
  3255. set to the string "ERROR".
  3256.  
  3257. If the variable is not numeric, the results will be unpredictable.
  3258.  
  3259.  
  3260. ===  NOCArrier  ===
  3261.  
  3262. Default key:   none
  3263. Description:   Sets/resets a macro to execute when carrier detect is lost.
  3264.  
  3265. Examples:
  3266.  
  3267.      {noca carrlost}
  3268.           GOTO the label "carrlost" when the carrier detect signal drops.
  3269.  
  3270.      {noca}
  3271.           Cancel the carrier lost label.
  3272.  
  3273. This function is used to modify the label defined by the "ncr" item in the
  3274. Setup File.  See "Alt-G  Edit Setup File" in Part I (COMMO.DOC) for details
  3275. and restrictions on this feature.
  3276.  
  3277.  
  3278. ===  NOOP  ===
  3279.  
  3280. Default key:   none
  3281. Description:   No-op function, does nothing
  3282.  
  3283. Example:
  3284.  
  3285.      {noop}
  3286.           No arguments.
  3287.  
  3288.  
  3289. ===  OFFLog  ===
  3290.  
  3291. Default key:   none
  3292. Description:   Make an {Off} entry in the Usage Log.
  3293.  
  3294. Example:
  3295.  
  3296.      {offlog}
  3297.           No arguments.
  3298.  
  3299. This function is useful on systems that do not support the carrier detect
  3300. signal.
  3301.  
  3302. NOTE:  An {Off} entry will be made only if an {On} entry was made at
  3303. connection time.
  3304.  
  3305.  
  3306.  
  3307.                                     -63-
  3308.  
  3309.  
  3310. ===  PARMs  ===
  3311.  
  3312. Default key:   Alt-P
  3313. Description:   Set Current Terminal Parameters
  3314.  
  3315. General form:
  3316.  
  3317.      {PARMs speed,format,comport,terminal-type,delay}
  3318.  
  3319.           speed
  3320.                The bps rate: 2400, 38400, etc.
  3321.  
  3322.           format
  3323.                The d ^Ca format: 8n1, 7e1, etc.
  3324.  
  3325.           comport
  3326.                The serial port number: 1, 2, 3 or 4.
  3327.  
  3328.           terminal
  3329.                The terminal-type: A, V or T.
  3330.  
  3331.           delay
  3332.                The inter-character delay factor: 0-999.
  3333.  
  3334. Examples:
  3335.  
  3336.      {parms 38400,8,1,,20}
  3337.           Set 38400 bps, 8n1, Com1, delay=20.
  3338.  
  3339.      {parms ,,4,V}
  3340.           Set Com4 VT102.
  3341.  
  3342.      {parms 19200,7o1}
  3343.           Set 19200 bps, 7o1.
  3344.  
  3345. IMPORTANT!  Omitted parameters are not changed.
  3346.  
  3347. This function will change the current parameters, but has no effect on the
  3348. parameters set when dialing.
  3349.  
  3350. See also DPARms.
  3351.  
  3352.  
  3353. ===  PASSword  ===
  3354.  
  3355. Default key:   Alt-W
  3356. Description:   Send current password.
  3357.  
  3358. Example:
  3359.  
  3360.      {password}
  3361.           No arguments.
  3362.  
  3363.  
  3364.  
  3365.                                     -64-
  3366.  
  3367.  
  3368. The current password is obtained from the Dialing Directory entry whenever
  3369. a number is dialed.  If no password is specified no characters will be
  3370. sent.
  3371.  
  3372.  
  3373. ===  PAUSe  ===
  3374.  
  3375. Default key:   none
  3376. Description:   Pause for a time interval.
  3377.  
  3378. Switches:
  3379.  
  3380.      T or T1
  3381.           Time is specified in DOS clock ticks (there are 18 clock ticks
  3382.           per second).
  3383.  
  3384.      T0
  3385.           Time is specified in seconds (default).
  3386.  
  3387. Examples:
  3388.  
  3389.      {pause 25}
  3390.           Pause for 25 seconds.
  3391.  
  3392.      {pause-t 9}
  3393.           Pause for 9 clock ticks (one half second).
  3394.  
  3395. NOTE:  Incoming characters displayed during a PAUSe function are not seen
  3396. by subsequent SSLOok/CALOok/GOLOok/LOOKfor functions.
  3397.  
  3398.  
  3399. ===  POPStack  ===
  3400.  
  3401. Default key:   none
  3402. Description:   Pop an element from the macro stack.
  3403.  
  3404. Switches:
  3405.  
  3406.      C1 or C
  3407.           Clear all elements from the stack.
  3408.  
  3409.      C0
  3410.           Pop the top element (default).
  3411.  
  3412. Examples:
  3413.  
  3414.      {pops}
  3415.           Pop the top element.
  3416.  
  3417.      {pops-c}
  3418.           Clear the stack.
  3419.  
  3420.  
  3421.  
  3422.                                     -65-
  3423.  
  3424. POPStack throws away the top element on the macro stack.  This element
  3425. would have been used by the next RETUrn function.
  3426.  
  3427. See also CALL, RETUrn, PUSHstack.
  3428.  
  3429.  
  3430. ===  PRINtlog  ===
  3431.  
  3432. Default key:   Alt-2
  3433. Description:   Set Print Log toggle.
  3434.  
  3435. Examples:
  3436.  
  3437.      {print}
  3438.           Toggle Print Log on/off.
  3439.  
  3440.      {print y}
  3441.           Turn on Print Log.
  3442.  
  3443.      {print n}
  3444.           Turn off Print Log.
  3445.  
  3446.  
  3447. ===  PUSHstack  ===
  3448.  
  3449. Default key:   none
  3450. Description:   Push a return point onto the macro stack.
  3451.  
  3452. Examples:
  3453.  
  3454.      {push}
  3455.           Push the current location.
  3456.  
  3457.      {push abc}
  3458.           Push the location "abc".
  3459.  
  3460. When there are no arguments, the location pushed is the location of the
  3461. PUSHstack function itself (i.e., it will be executed again when a RETUrn is
  3462. encountered).
  3463.  
  3464. PUSHstack will push a return point onto the macro stack without
  3465. transferring control to the location (control continues in sequence).  A
  3466. subsequent RETUrn will transfer control to the location that was pushed.
  3467.  
  3468. POPStack will remove the top stack element without transferring control to
  3469. it (control continues in sequence).
  3470.  
  3471. TIPS on using PUSHstack:
  3472.  
  3473.  *   The return point will include the name of the current auxiliary file
  3474.      if the PUSHstack function is located in the auxiliary.
  3475.  
  3476.  
  3477.  
  3478.                                     -66-
  3479.  
  3480.  *   PUSHstack cannot save a location that is in a Macro File that is not
  3481.      currently loaded.
  3482.  
  3483. See also CALL, RETUrn, POPStack.
  3484.  
  3485.  
  3486. ===  RCLOse  ===
  3487.  
  3488. Default key:   none
  3489. Description:   Close the read file.
  3490.  
  3491. Example:
  3492.  
  3493.      {rclose}
  3494.           No arguments.
  3495.  
  3496. NOTE:  The read file will be closed automatically in the following
  3497. situations:
  3498.  
  3499.      1)   When an attempt is made to read past the end of the file.
  3500.      2)   When the macro terminates (STOP, EXIT, etc.).
  3501.  
  3502. See also ROPEn, READ.
  3503.  
  3504.  
  3505. ===  READ  ===
  3506.  
  3507. Default key:   none
  3508. Description:   Read a line from the read file to a variable.
  3509.  
  3510. Example:
  3511.  
  3512.      {read nextline}
  3513.           Read the next line in the file into the variable "nextline."
  3514.  
  3515. TIPS on reading files:
  3516.  
  3517.  *   A file must be open for reading or a Macro Error will result.
  3518.  
  3519.  *   Each READ will get the next line in the file (lines are terminated by
  3520.      carriage return and linefeed).
  3521.  
  3522.  *   When an attempt is made to read past the end of file, control will
  3523.      GOTO the label specified in the ROPEn.  If no label was specified or
  3524.      if the label was invalid, control will continue in sequence.  In
  3525.      either case the file is automatically closed and the variable is set
  3526.      to null.
  3527.  
  3528.  *   READ will set the Exit Code to 0 unless the end of file was
  3529.      encountered, in which case it will be set to 1.  The Exit Code is
  3530.      stored in the built-in variable "_err" and can be tested with the
  3531.      IFERrorlevel function.
  3532.  
  3533.  
  3534.  
  3535.                                     -67-
  3536.  
  3537.  *   ALL control characters (below ASCII 28) will be discarded, including
  3538.      the carriage return/linefeed that terminates the line.
  3539.  
  3540.  *   Lines longer than 240 characters will be truncated to a length of 240.
  3541.  
  3542. See also ROPEn, RCLOse
  3543.  
  3544.  
  3545. ===  RETUrn  ===
  3546.  
  3547. Default key:   none
  3548. Description:   Return from a CALLed macro.
  3549.  
  3550. Example:
  3551.  
  3552.      {return}
  3553.           No arguments.
  3554.  
  3555. This function will return control to the last location pushed onto the
  3556. macro stack (by CALL, PUSHstack, etc.).  The location may reside in a Macro
  3557. File that is not currently loaded (loading will occur automatically).
  3558.  
  3559. TIPS on using RETUrn:
  3560.  
  3561.  *   If a RETUrn is encountered and no elements remain on the macro stack,
  3562.      a STOP will occur.  This is useful in macros that are CALLed and also
  3563.      used standalone (such as protocol file transfer macros).
  3564.  
  3565.  *   If the macro filename popped from the macro stack is the same as the
  3566.      current auxiliary file, no load will occur.
  3567.  
  3568. See also CALL, CALOok, DIAL, PUSHstack, POPStack.
  3569.  
  3570.  
  3571. ===  ROPEn  ===
  3572.  
  3573. Default key:   none
  3574. Description:   Open a file for reading.
  3575.  
  3576. General Form:
  3577.  
  3578.      {ROPEn path\filename,label}
  3579.  
  3580.           path\filename
  3581.                The path\filename of the file to open.
  3582.  
  3583.           label
  3584.                A label to GOTO when a READ is attempted at the end of the
  3585.                file.
  3586.  
  3587.                IMPORTANT!  If the READ is in a CALLed subroutine, be sure
  3588.                to execute a RETUrn or POPS at the label.
  3589.  
  3590.  
  3591.  
  3592.                                     -68-
  3593.  
  3594. Example:
  3595.  
  3596.      {ropen c:\bbs\file.txt,nomore}
  3597.           Open the file and set the label "nomore" to GOTO when the end of
  3598.           the file is reached.
  3599.  
  3600. TIPS on using ROPEn:
  3601.  
  3602.  *   Only one file may be opened for reading (and one for writing).
  3603.  
  3604.  *   The file will be automatically closed when the end of the file is
  3605.      encountered during a READ (whether or not a label is specified).  An
  3606.      RCLOse is not needed in this situation.
  3607.  
  3608. See also READ, RCLOse.
  3609.  
  3610.  
  3611. ===  RTRAn  ===
  3612.  
  3613. Default key:   none
  3614. Description:   Maintain Receive Translate Table.
  3615.  
  3616. Switches:
  3617.  
  3618.      I1 or I
  3619.           Initialize Receive Translate Table to default values (consecutive
  3620.           0 to 255).
  3621.  
  3622.      I0
  3623.           Do not initialize (default).
  3624.  
  3625. Examples:
  3626.  
  3627.      {rtran y}
  3628.           Turn receive translation ON.
  3629.  
  3630.      {rtran-i n}
  3631.           Initialize the table and turn it OFF.
  3632.  
  3633.      {rtran 26,0}
  3634.           Change ASCII 26 to null (ASCII 0, which will not display).
  3635.  
  3636.      {rtran-i y,#8,224,240}
  3637.           Initialize the table, turn receive translation ON, change ASCII
  3638.           224 to 240, 225 to 241, ..., 231 to 247.  
  3639.  
  3640.      {rtran}
  3641.           Toggle receive translation ON/OFF.
  3642.  
  3643.      {rtran #13,65,78,#13,78,65,#13,97,110,#13,110,97}
  3644.           ROT13 translation.  This exchanges each letter in the first half
  3645.           of the alphabet with the corresponding letter from the second
  3646.           half (and vice-versa).
  3647.  
  3648.  
  3649.  
  3650.                                     -69-
  3651.  
  3652.  
  3653. Rules for RTRAn arguments are the same as for the {rtr=} item in the Setup
  3654. File.  In addition, "n" may be used as the first argument to turn receive
  3655. translation OFF at any time.
  3656.  
  3657. See "Edit Setup File" in Part I (COMMO.DOC) for details and more examples.
  3658.  
  3659. TIPS on using RTRAn:
  3660.  
  3661.  *   Some control characters are unaffected by translation when certain
  3662.      features are enabled.  Examples:  XON (17) and XOFF (19) are not
  3663.      translated when Software Flow Control is on.  ENQ (5) is not
  3664.      translated when ENQ/ACK emulation is on.
  3665.  
  3666.  *   When the Capture Mode is set to RAW, data will be captured prior to
  3667.      translation.  FILTER and SCREEN captures will contain translated data.
  3668.  
  3669.  *   LOOKfor will always see translated data.  Use FILTER Capture Mode to
  3670.      see what LOOKfor sees.
  3671.  
  3672.  *   In GETString, incoming data (as well as locally typed characters) will
  3673.      be translated with the Receive Translate Table (it may be necessary to
  3674.      turn receive translation off during certain GETString functions).
  3675.  
  3676. See also STRAn.
  3677.  
  3678.  
  3679. ===  RXMOdem  ===
  3680.  
  3681. Default key:   none
  3682. Description:   Receive a file using the Xmodem protocol.
  3683.  
  3684. Switches:
  3685.  
  3686.      See RYMOdem (switches are the same).
  3687.  
  3688. Example:
  3689.  
  3690.      {rxmo-ya c:\dl\file.zip}
  3691.           Receive "file.zip", overwrite the file if it exists, sound the
  3692.           alarm.
  3693.  
  3694. Only one file may be received with each RXMOdem function (the file must be
  3695. explicitly named, but need not be given the same name as on the remote
  3696. system).
  3697.  
  3698. See RYMOdem for tips that apply to both RXMOdem and RYMOdem.
  3699.  
  3700.  
  3701. ===  RYMOdem  ===
  3702.  
  3703. Default key:   none
  3704. Description:   Receive files using the Ymodem Batch protocol.
  3705.  
  3706.  
  3707.  
  3708.                                     -70-
  3709.  
  3710.  
  3711. Switches:
  3712.  
  3713.      NOTE: N, D, A and W switches are the same as for RZMOdem.
  3714.  
  3715.      C1 or C
  3716.           Use CRC error correction (default).
  3717.  
  3718.      C0
  3719.           Use Checksum error correction.
  3720.  
  3721.      G1 or G
  3722.           Use streaming (fast) transfer method.
  3723.  
  3724.           IMPORTANT!  Use only with error-correcting modems or direct
  3725.           connections between computers.
  3726.  
  3727.      G0
  3728.           Use normal (error-correcting) transfer method (default).
  3729.  
  3730.      Y1 or Y
  3731.           Overwrite an existing file when a received file has the same name
  3732.           (the existing file will be erased).
  3733.  
  3734.      Y0
  3735.           Cancel the transfer if a received file has the same name as an
  3736.           existing file (default).
  3737.  
  3738. Examples:
  3739.  
  3740.      {rymo-ya %dldir}
  3741.           Receive files into the download directory, overwrite a file if it
  3742.           exists, sound the alarm.
  3743.  
  3744.      {rymo-gw3}
  3745.           Receive files using the "G" method into the current directory. 
  3746.           Wait 3 seconds before returning to the Terminal Screen.
  3747.  
  3748. Ymodem is a "batch" protocol that will receive multiple files.  Filenames
  3749. are transmitted by the sender and are used to name files at the receiving
  3750. end.  A filename "collision" will cause the transfer to cancel unless the
  3751. "Y" switch is used.  File sizes are also transmitted by the sender and are
  3752. used to truncate the file to the proper size.
  3753.  
  3754. TIPS on using RYMOdem and RXMOdem:
  3755.  
  3756.  *   The "G" method is specified by the receiver.  Be sure that the sender
  3757.      allows it before starting.
  3758.  
  3759.  *   Block size is established by the sender and may be changed on a block-
  3760.      by-block basis.
  3761.  
  3762.  *   Some conditions that will cancel a transfer:
  3763.  
  3764.  
  3765.  
  3766.                                     -71-
  3767.  
  3768.        1)  10 consecutive errors.
  3769.        2)  Any error when "G" method is used.
  3770.        3)  File exists and the "Y" switch is not present.
  3771.        4)  The sender has transmitted CAN (^X) characters.
  3772.        5)  Loss of carrier.
  3773.  
  3774.  *   The Exit Code (test with IFER) will be set at the end of the transfer
  3775.      and will also be stored in the variable "_err".  0 means all files
  3776.      were transferred successfully.  1 means one or more files in the batch
  3777.      were not completed.
  3778.  
  3779.  *   If the Usage Log is enabled, an entry will be made after each file is
  3780.      transferred (or if a transfer is cancelled).
  3781.  
  3782.  
  3783. ===  RZMOdem  ===
  3784.  
  3785. Default key:   none
  3786. Description:   Receive a file using the Zmodem protocol.
  3787.  
  3788. Switches:
  3789.  
  3790.      R1 or R
  3791.           Resume like-named files.  If the incoming file is longer, the
  3792.           transfer will resume at the end of the existing file.  No check
  3793.           is made to determine if the common portion of the file is
  3794.           identical.
  3795.  
  3796.      N1 or N
  3797.           Rename incoming files if like-named files exists.  A letter "A"
  3798.           through "Z" will be used in place of the last character of
  3799.           "filename.ext".
  3800.  
  3801.      Y1 or Y
  3802.           Overwrite like-named files.  The existing file will be deleted at
  3803.           the start of the transfer.
  3804.  
  3805.      D1 or D
  3806.           Cancel transfer if carrier detect is lost (default).
  3807.  
  3808.           NOTE:  If carrier detect is off when the transfer is started,
  3809.           this switch will behave as if "D0" had been set.
  3810.  
  3811.      D0
  3812.           Ignore state of carrier detect.
  3813.  
  3814.      A1 or A
  3815.           Sound the alarm at the end of the transfer.
  3816.  
  3817.      A0
  3818.           Do not sound the alarm (default).
  3819.  
  3820.  
  3821.  
  3822.                                     -72-
  3823.  
  3824.      W
  3825.           Wait for a keypress at end of transfer.
  3826.  
  3827.      Wn
  3828.           Wait for "n" seconds, "n" may range from 0 to 999.  Press a key
  3829.           to cancel the wait.
  3830.  
  3831.           Note:  Default (no "W" switch) is no wait.
  3832.  
  3833. The "R", "N" and "Y" switches are mutually exclusive (use only one).  If
  3834. none of the three is present, the file will be "skipped" if a like-named
  3835. file exists in the download directory.
  3836.  
  3837. Example:
  3838.  
  3839.      {rzmo-ra %dldir}
  3840.           Receive files into the download directory, resume partial files,
  3841.           sound the alarm.
  3842.  
  3843. TIPS on using RZMOdem:
  3844.  
  3845.  *   Some conditions that will cancel a transfer:
  3846.        1)  20 consecutive errors.
  3847.        2)  The sender has cancelled.
  3848.        3)  Unable to open a file.
  3849.        4)  Disk is full.
  3850.        5)  Loss of carrier.
  3851.  
  3852.  *   The Exit Code (test with IFER) will be set at the end of the transfer
  3853.      and will also be stored in the variable "_err".  0 means all files
  3854.      were transferred successfully.  1 means one or more files in the batch
  3855.      were not completed.
  3856.  
  3857.  *   If the Usage Log is enabled, an entry will be made after each file is
  3858.      transferred (or if a transfer is cancelled).
  3859.  
  3860.  
  3861. ===  SCREen  ===
  3862.  
  3863. Default key:   Alt-I
  3864. Description:   Screen Image Save.
  3865.  
  3866. Examples:
  3867.  
  3868.      {screen}
  3869.           Open Screen Image Save window.
  3870.  
  3871.      {screen y}
  3872.           Append screen image to current file.
  3873.  
  3874.  
  3875.  
  3876.                                     -73-
  3877.  
  3878.      {screen y,commo.scr}
  3879.           Append screen image to indicated file. (and change current
  3880.           path\filename).
  3881.  
  3882.      {screen n,c:\file.xyz}
  3883.           Change current screen image path\filename (don't save screen to
  3884.           file).
  3885.  
  3886.  
  3887. ===  SCROllback  ===
  3888.  
  3889. Default key:   Alt-K
  3890. Description:   Display Scrollback Buffer
  3891.  
  3892. Example:
  3893.  
  3894.      {scroll}
  3895.           No arguments.
  3896.  
  3897.  
  3898. ===  SEND  ===
  3899.  
  3900. Default key:   none
  3901. Description:   Send a string to the modem (serial port).
  3902.  
  3903. Switches:
  3904.  
  3905.      N1 or N
  3906.           Do NOT convert control characters.
  3907.  
  3908.      N0
  3909.           Convert control characters as described in Appendix D (default).
  3910.  
  3911. Examples:
  3912.  
  3913.      {send Firstname|~~Lastname|~~%_pass%|}
  3914.           Send first and last names with carriage returns and 1 second
  3915.           delays, then send the current password and a <cr>.
  3916.  
  3917.      {send ^[^[}
  3918.           Send two <esc> characters.
  3919.  
  3920.      {send  }
  3921.           Send a space (there must be two spaces, the first is the
  3922.           separator).
  3923.  
  3924.      {send %line}
  3925.           Send the string in the variable "line".
  3926.  
  3927.      {send-n ^A|~}
  3928.           Send the characters as written.  Do not convert the special
  3929.           characters.
  3930.  
  3931.  
  3932.  
  3933.                                     -74-
  3934.  
  3935. Normally, conversion will occur as shown in Appendix D.  With the "N"
  3936. switch, all characters will be sent exactly as written.
  3937.  
  3938.  
  3939. ===  SETDial  ===
  3940.  
  3941. Default key:   none
  3942. Description:   Set parameters for dialing.
  3943.  
  3944. Examples:
  3945.  
  3946.      {setdial 60,15}
  3947.           Set the dialing cycle timer to 60 seconds and the Inter-dial
  3948.           Delay to 15 seconds.
  3949.  
  3950.      {setd ,3}
  3951.           Change only the Inter-dial Delay timer.
  3952.  
  3953. The first argument is the dialing cycle time limit.  This is the number of
  3954. seconds {COMMO} will allow after sending the dial command to the modem. 
  3955. Range is from 1 to 999.
  3956.  
  3957. The second argument is the inter-dial delay timer.  This is the number of
  3958. seconds before {COMMO} dials the next number.  Range is from 1 to 999.
  3959.  
  3960. NOTE:  Changes to dialing parameters override the Setup File values and
  3961. remain in effect until {COMMO} is exited.
  3962.  
  3963. See also DIAL.
  3964.  
  3965.  
  3966. ===  SETEsc  ===
  3967.  
  3968. Default key:   none
  3969. Description:   Define a label to GOTO when Esc is pressed.
  3970.  
  3971. General form:
  3972.  
  3973.      {setesc label}
  3974.  
  3975.           label
  3976.                A label to GOTO when the user presses Esc during macro
  3977.                execution.
  3978.  
  3979.  
  3980.  
  3981.                                     -75-
  3982.  
  3983. Switches:
  3984.  
  3985.      P1 or P
  3986.           The user will be prompted with, "A macro is running.  Terminate
  3987.           it?."  If the user answers "no," macro execution will continue as
  3988.           if nothing had happened.  If "yes," the macro will be STOPped and
  3989.           the macro at the label will be started.  If the label does not
  3990.           exist, a STOP will be executed.  P1 is the default.
  3991.  
  3992.      P0
  3993.           The user will not be prompted.  The macro will be STOPped and the
  3994.           macro at the label will be started.  If the label does not exist,
  3995.           a STOP will be executed.
  3996.  
  3997. Examples:
  3998.  
  3999.      {setesc finish}
  4000.           GOTO label, with prompt.
  4001.  
  4002.      {sete-p0 done}
  4003.           GOTO label, without prompt.
  4004.  
  4005.      {setesc}
  4006.           Reset to no label (STOP on Esc).
  4007.  
  4008.  
  4009. This function is used to "capture" the Esc key during macro execution.  It
  4010. can help to prevent accidental macro terminations.
  4011.  
  4012. NOTE:  In the various command windows, Esc is normally used to exit the
  4013. window.  Use Ctrl-Break to bring up the prompt.
  4014.  
  4015.  
  4016. ===  SETGet  ===
  4017.  
  4018. Default key:   none
  4019. Description:   Set parameters for GETString functions.
  4020.  
  4021. General form:
  4022.  
  4023.      {SETGet seconds,label,y/n/l,string}
  4024.  
  4025.           seconds
  4026.                GETString timeout.  If a character is not entered in the
  4027.                specified amount of time, the macro in the second argument
  4028.                will be started.  May be 0 to 999.  Default is 0 (disabled).
  4029.  
  4030.           label
  4031.                Timeout macro.  Macro to GOTO if the time in the first
  4032.                argument expires.  If no macro is specified or if the macro
  4033.                label is invalid, control will pass to the function
  4034.                following the GETString.  Default is no macro.
  4035.  
  4036.  
  4037.  
  4038.                                     -76-
  4039.  
  4040.                Note that if the timer expires no variable assignment will
  4041.                be made.  Any previous assignment will be unaltered.
  4042.  
  4043.                IMPORTANT!  If the GETString is in a CALLed subroutine, be
  4044.                sure to execute a RETUrn or POPS at the label.
  4045.  
  4046.           y/n/l
  4047.                Echo Status.  If this is "yes", characters entered at the
  4048.                local or remote terminals will be echoed back to the remote
  4049.                and displayed locally.  This is the default.
  4050.  
  4051.                If "no", characters will not be echoed to either location.
  4052.  
  4053.                If "local", characters will be displayed locally, but not
  4054.                echoed to the remote.  This should be used when the remote
  4055.                is a host system.
  4056.  
  4057.                IMPORTANT!  This setting is independent of Local Echo.  Turn
  4058.                on Local Echo if necessary for local display of data
  4059.                transmitted with SEND, ASCIiup, etc.
  4060.  
  4061.           string
  4062.                Terminator response.  This string will be sent and/or
  4063.                displayed locally (in accord with the Echo Status) when a
  4064.                carriage return is received (input terminated).  This is
  4065.                typically a carriage return/linefeed.  May be up to 32
  4066.                characters.  Default is no string.
  4067.  
  4068. Example:
  4069.  
  4070.      {setg 120,noget,y,^m^j}
  4071.           Set GETString parameters.
  4072.  
  4073.  
  4074. The SETGet function will set parameters for all subsequent GETString
  4075. functions.  It may be executed at any time to modify the parameters.
  4076.  
  4077. When macro execution terminates, the parameters will be reset to the
  4078. default values.
  4079.  
  4080. Default arguments are:
  4081.  
  4082.      GETString timeout        0 (disabled)
  4083.      Timeout macro            none 
  4084.      Echo status              y (echo on)
  4085.      Terminator response      none
  4086.  
  4087. IMPORTANT!  Null arguments in the SETGet function will be set to these
  4088. defaults.
  4089.  
  4090. See also GETString.
  4091.  
  4092.  
  4093.  
  4094.                                     -77-
  4095.  
  4096. ===  SETLook  ===
  4097.  
  4098. Default key:   none
  4099. Description:   Set parameters for LOOKfor functions.
  4100.  
  4101. General form:
  4102.  
  4103.      {SETLook seconds,label,seconds,string}
  4104.  
  4105.           seconds
  4106.                LOOKfor timeout.  Maximum time in seconds to look for
  4107.                strings.  If no string is found in the allotted time, the
  4108.                macro in the second argument will be started.  May be 0 to
  4109.                999.  Note that this timer is restarted whenever a string is
  4110.                sent by SSLOok.  Default is 0 (disabled).
  4111.  
  4112.           label
  4113.                Timeout macro.  Macro to GOTO if the time in the first
  4114.                argument expires.  If no macro is specified or if the macro
  4115.                label is invalid, control will pass to the function
  4116.                following the LOOKfor.
  4117.  
  4118.                IMPORTANT!  If the LOOKfor is in a CALLed subroutine, be
  4119.                sure to execute a RETUrn or POPS at the label.
  4120.  
  4121.           seconds
  4122.                Prompt timeout.  During a LOOKfor function unwanted prompts
  4123.                may appear like "Press any key" or "More [Y/n]", etc.  This
  4124.                argument is the time in seconds to wait at a prompt (no
  4125.                input from the modem) before sending the string in the
  4126.                fourth argument.  Usually you would send "|" or "n|".
  4127.  
  4128.                When the response string is sent the timer is restarted,
  4129.                allowing any number of prompts to be satisfied (until the
  4130.                LOOKfor itself is satisfied or times out).
  4131.  
  4132.                The timer will also be restarted if any keys are typed while
  4133.                waiting.  This allows a manual response to a prompt which
  4134.                the macro does not handle.
  4135.  
  4136.                IMPORTANT!  The prompt timeout should be long enough (or
  4137.                disabled entirely) to prevent the response from being sent
  4138.                when there is a long delay without a prompt.  This might
  4139.                occur right after connection while the BBS software is
  4140.                loading or when a "door" program is loading.
  4141.  
  4142.                Failure to heed this warning will result in "n" responses to
  4143.                "First name?" and other undesirable effects.
  4144.  
  4145.                May be 0 to 999.  Default is 0 (disabled).
  4146.  
  4147.  
  4148.  
  4149.                                     -78-
  4150.  
  4151.           string
  4152.                Prompt response.  String to send when the time in the third
  4153.                argument runs out.  May be up to 32 characters.  Default is
  4154.                no string.
  4155.  
  4156. Example:
  4157.  
  4158.      {setl 60,abc,4,n|}
  4159.           Set LOOKfor parameters
  4160.  
  4161.  
  4162. The SETLook function will set parameters for subsequent LOOKfor functions
  4163. and may be executed at any time to modify the parameters.
  4164.  
  4165. When macro execution terminates, the parameters will be reset to the
  4166. default values.
  4167.  
  4168. Default arguments are:
  4169.  
  4170.      LOOKfor timeout     0 (disabled)
  4171.      Timeout macro       none 
  4172.      Prompt timeout      0 (disabled)
  4173.      Prompt response     none
  4174.  
  4175. IMPORTANT!  Null arguments in the SETLook function will revert to these
  4176. defaults.
  4177.  
  4178. See also LOOKfor, SSLOok, CALOok, GOLOok.
  4179.  
  4180.  
  4181. ===  SETR  ===
  4182.  
  4183. Default key:   none
  4184. Description:   Define a label to GOTO when a Macro Error occurs.
  4185.  
  4186. Examples:
  4187.  
  4188.      {setr error}
  4189.           GOTO "error" when any Macro Error occurs.
  4190.  
  4191.      {setr}
  4192.           Reset to no label.
  4193.  
  4194. SETR allows a macro to get control when a Macro Error occurs.  All macro
  4195. parameters (see STOP) will be reset after the error (including the SETR
  4196. label).
  4197.  
  4198. TIPS on using SETR:
  4199.  
  4200.  *   The built-in variable "_met" will contain an error message describing
  4201.      the most recent error.
  4202.  
  4203.  *   Variable Space will not be changed.
  4204.  
  4205.  
  4206.  
  4207.                                     -79-
  4208.  
  4209.  
  4210.  *   If the specified label does not exist, or if no label is currently
  4211.      specified, {COMMO} will STOP and indicate the location of the error.
  4212.  
  4213.  
  4214. ===  SETUp  ===
  4215.  
  4216. Default key:   Alt-G
  4217. Description:   Edit Setup File.
  4218.  
  4219. Example:
  4220.  
  4221.      {setup}
  4222.           No arguments.
  4223.  
  4224.  
  4225. ===  SETVariable  ===
  4226.  
  4227. Default key:   none
  4228. Description:   Assign a string to a variable name.
  4229.  
  4230. General form:
  4231.  
  4232.      {SETVariable name,string}
  4233.  
  4234.           name
  4235.                The name of the variable to which the string will be
  4236.                assigned.
  4237.  
  4238.           string
  4239.                The string may be the name of another {COMMO} variable or an
  4240.                environment variable.  In these cases further expansion is
  4241.                controlled by switches (see below).
  4242.  
  4243. Switches:
  4244.  
  4245.      E1 or E
  4246.           This switch indicates that the second argument is a DOS
  4247.           environment variable.  If it is not found in the environment, the
  4248.           {COMMO} variable will be set to NULL.
  4249.  
  4250.           Note that environment variable names are CASE SENSITIVE (they are
  4251.           usually upper case).
  4252.  
  4253.      E0
  4254.           Normal variable (default).
  4255.  
  4256.  
  4257.  
  4258.                                     -80-
  4259.  
  4260.      S1 or S
  4261.           This switch will cause "double expansion" of the second argument
  4262.           (indirect variable).  First {COMMO} will substitute any variables
  4263.           indicated by "%" signs.  The resulting string (which must NOT
  4264.           begin with a "%") will then be treated as a variable name and
  4265.           expanded again.
  4266.  
  4267.           This facility may be used to create a "subscript."
  4268.  
  4269.      S0
  4270.           Single expansion (default).
  4271.  
  4272. Examples:
  4273.  
  4274.      {setv net,nodeid}
  4275.           Assign the string "nodeid" to the variable name "net".
  4276.  
  4277.      {setv nodeid,ggcs_bbs}
  4278.           Assign the string "ggcs_bbs" to the variable name "nodeid".
  4279.  
  4280.      {setv-s bbs,nodeid}
  4281.           Assuming the above examples have been executed, this will set the
  4282.           variable "bbs" to "ggcs_bbs".
  4283.  
  4284.      {setv-s board,%net}
  4285.           Assuming the above examples have been executed, this will set the
  4286.           variable "board" to "ggcs_bbs".
  4287.  
  4288.      {setv-s xxx,yyy%index}
  4289.           Suppose the variable "index" has the value "3".  It will be
  4290.           expanded first, then "yyy3" will be expanded and its value
  4291.           assigned to "xxx".
  4292.  
  4293.      {setv-e abc,TABLE}
  4294.           Assuming a "SET TABLE=" DOS command has been executed prior to
  4295.           running {COMMO}, the variable "abc" will be set to the
  4296.           environment string.
  4297.  
  4298.      {setv abc} or {setv abc,}
  4299.           Set the variable "abc" to null (it will be deleted from variable
  4300.           space).
  4301.  
  4302.  
  4303. ===  SFICtrl  ===
  4304.  
  4305. Default key:   none
  4306. Description:   Speech Friendly Interface control.
  4307.  
  4308.  
  4309.  
  4310.                                     -81-
  4311.  
  4312. Examples:
  4313.  
  4314.      {sfic}
  4315.           Toggle Speech Friendly Interface on/off.
  4316.  
  4317.      {sfic y}
  4318.           Turn on Speech Friendly Interface.
  4319.  
  4320.      {sfic n}
  4321.           Turn off Speech Friendly Interface.
  4322.  
  4323.  
  4324. ===  SHELl  ===
  4325.  
  4326. Default key:   Alt-S
  4327. Description:   Shell to DOS.
  4328.  
  4329. Switches:
  4330.  
  4331.      S1 or S
  4332.           Swap to disk before shelling to DOS (see details under EXECute,
  4333.           "Using the Swap to Disk Switch").
  4334.  
  4335.      S0
  4336.           Do not swap to disk (default).
  4337.  
  4338. Examples:
  4339.  
  4340.      {shell}
  4341.           No arguments.
  4342.  
  4343.      {shell-s}
  4344.           Swap to disk before shelling to DOS.
  4345.  
  4346.  
  4347. ===  SIGNal  ===
  4348.  
  4349. Default key:   none
  4350. Description:   Set state of hardware signals.
  4351.  
  4352. Switches:
  4353.  
  4354.      D1 or D
  4355.           Set DTR high.
  4356.  
  4357.      D0
  4358.           Set DTR low.
  4359.  
  4360.      R1 or R
  4361.           Set RTS high.
  4362.  
  4363.      R0
  4364.           Set RTS low.
  4365.  
  4366.  
  4367.  
  4368.                                     -82-
  4369.  
  4370.  
  4371. Example:
  4372.  
  4373.      {signal-d0r1}
  4374.           Turn off DTR, turn on RTS.
  4375.  
  4376. The "D" and "R" switches are used to control the RS-232C signals DTR (Data
  4377. Terminal Ready) and RTS (Request To Send).  The default for each switch is
  4378. to leave the signal unchanged.  Use these with care due to interaction with
  4379. Hardware Flow Control, etc.
  4380.  
  4381.  
  4382. ===  SOUNd  ===
  4383.  
  4384. Default key:   none
  4385. Description:   Set Master Sound toggle.
  4386.  
  4387. Examples:
  4388.  
  4389.      {sound}
  4390.           Toggle Master Sound on/off.
  4391.  
  4392.      {sound y}
  4393.           Turn on Master Sound.
  4394.  
  4395.      {sound n}
  4396.           Turn off Master Sound.
  4397.  
  4398.  
  4399. ===  SPDCtrl  ===
  4400.  
  4401. Default key:   none
  4402. Description:   Serial port display control.
  4403.  
  4404. Examples:
  4405.  
  4406.      {spdc y}
  4407.           Serial port display is ON.
  4408.  
  4409.      {spdc n}
  4410.           Serial port display is OFF.
  4411.  
  4412. This function will suppress display of any data received from the serial
  4413. port.  It can be used when a "clean" display is desired during automated
  4414. procedures.
  4415.  
  4416. TIPS on using SPDCtrl:
  4417.  
  4418.  *   Serial port display can be suppressed only while a macro is running
  4419.      (it will be restored to ON at macro termination).
  4420.  
  4421.  *   ANSI control sequences are not processed while the display is OFF
  4422.      (Terminal Emulation effectively reverts to TTY).
  4423.  
  4424.  
  4425.  
  4426.                                     -83-
  4427.  
  4428.  
  4429.  *   LOOKfor will function normally, but remember that ANSI sequences are
  4430.      not stripped.  Make a manual run using TTY emulation to see what the
  4431.      LOOKfor will see.
  4432.  
  4433.  *   SCREEN Capture Mode will not capture any of the incoming data.  If
  4434.      capture is required, RAW mode or FILTER mode must be used (note that
  4435.      ANSI sequences will not be removed).
  4436.  
  4437.  
  4438. ===  SPOCtrl  ===
  4439.  
  4440. Default key:   none
  4441. Description:   Serial port output control.
  4442.  
  4443. Examples:
  4444.  
  4445.      {spoc y}
  4446.           Serial port output is ON.
  4447.  
  4448.      {spoc n}
  4449.           Serial port output is OFF.
  4450.  
  4451. This function will inhibit any data from being sent to the serial port. 
  4452. All other program operations will be normal.  It is used for "local mode"
  4453. in host macros (no data is sent to the modem).
  4454.  
  4455. TIPS on using SPOCtrl:
  4456.  
  4457.  *   Serial port output can be inhibited only while a macro is running (it
  4458.      will be restored to ON at macro termination).
  4459.  
  4460.  *   Dialing and internal protocols will not operate properly if serial
  4461.      port output is turned OFF.
  4462.  
  4463.  
  4464. ===  SSLOok  ===
  4465.  
  4466. Default key:   none
  4467. Description:   Send a string when a string appears.
  4468.  
  4469. General form:
  4470.  
  4471.      {SSLOok name,target}
  4472.  
  4473.           name
  4474.                The name of a string variable (MUST be a variable).
  4475.  
  4476.           target
  4477.                The ASCII string to look for.  The string begins following
  4478.                the "," and is terminated by the "}".
  4479.  
  4480.  
  4481.  
  4482.                                     -84-
  4483.  
  4484. Switches:
  4485.  
  4486.      R or R1
  4487.           Send a carriage return after sending the variable string to the
  4488.           serial port.
  4489.  
  4490.      R0
  4491.           Do not send a carriage return (default).
  4492.  
  4493. Example:
  4494.  
  4495.      {setv ss_r,|} {setv ss_nr,n|}
  4496.      ...
  4497.      {sslo-r _pas,password:}
  4498.      {sslo ss_r,Press enter to continue}
  4499.      {sslo ss_nr,Do you want to log off?}
  4500.      {look command?} ...
  4501.  
  4502. SSLOok is used in conjunction with the LOOKfor function.  It sets up an
  4503. additional string to look for.  When the target string appears, the string
  4504. in the variable is sent to the serial port.  The LOOKfor timeout (specified
  4505. in a SETLook) is restarted and the LOOKfor continues to look for all
  4506. specified strings.
  4507.  
  4508. See LOOKfor for details, examples and tips on using SSLOok.
  4509.  
  4510. See also CALOok, GOLOok, SETLook.
  4511.  
  4512.  
  4513. ===  STATusline  ===
  4514.  
  4515. Default key:   none
  4516. Description:   Set Status Line toggle.
  4517.  
  4518. IMPORTANT!  The Status Line is {COMMO}'s instrument panel.  You should not
  4519. turn it off until you are familiar with operating the program.
  4520.  
  4521. Examples:
  4522.  
  4523.      {statusline}
  4524.           Toggle Status Line on/off.
  4525.  
  4526.      {status y}
  4527.           Turn on Status Line.
  4528.  
  4529.      {status n}
  4530.           Turn off Status Line.
  4531.  
  4532. When the Status Line is off (not visible), The Terminal Screen has one
  4533. additional display row (e.g., 25 rows instead of 24).
  4534.  
  4535. The STATusline function is ignored while in Chat Mode.
  4536.  
  4537.  
  4538.  
  4539.                                     -85-
  4540.  
  4541.  
  4542. ===  STOP  ===
  4543.  
  4544. Default key:   none
  4545. Description:   Halt macro execution.
  4546.  
  4547. Examples:
  4548.  
  4549.      {stop}
  4550.           No arguments.
  4551.  
  4552.      {}
  4553.           Short form.
  4554.  
  4555. STOP always returns {COMMO} to manual operation in the Terminal Screen. 
  4556. All macro parameters are reset (except string variables).  This includes
  4557. the macro push/pop stack, SETLook, SETGet, SETEsc, etc.  Files opened with
  4558. ROPEn and WOPEn will be closed.
  4559.  
  4560.  
  4561. ===  STRAn  ===
  4562.  
  4563. Default key:   none
  4564. Description:   Maintain Send Translate Table.
  4565.  
  4566. Switches:
  4567.  
  4568.      I1 or I
  4569.           Initialize Send Translate Table to default values (consecutive 0
  4570.           to 255).
  4571.  
  4572.      I0
  4573.           Do not initialize (default).
  4574.  
  4575. Examples:
  4576.  
  4577.      {stran y}
  4578.           Turn send translation ON.
  4579.  
  4580.      {stran-i n}
  4581.           Initialize the table and turn it OFF.
  4582.  
  4583.      {stran-i y,92,47}
  4584.           Initialize the table, turn send translation ON, change "\" to
  4585.           "/".
  4586.  
  4587.      {stran}
  4588.           Toggle send translation ON/OFF.
  4589.  
  4590.      {stran #13,65,78,#13,78,65,#13,97,110,#13,110,97}
  4591.           ROT13 translation.  This swaps the first 13 letters of the
  4592.           alphabet for the second 13.
  4593.  
  4594.  
  4595.  
  4596.                                     -86-
  4597.  
  4598. Rules for STRAn arguments are the same as for the {str=} item in the Setup
  4599. File.  In addition, "n" may be used as the first argument to turn send
  4600. translation OFF at any time.
  4601.  
  4602. See "Edit Setup File" in Part I (COMMO.DOC) for details and more examples.
  4603.  
  4604. TIPS on using STRAn:
  4605.  
  4606.  *   Some control characters are unaffected by translation when certain
  4607.      features are enabled.  Examples:  XON (17) and XOFF (19) are not
  4608.      translated when Software Flow Control is on.  When ENQ/ACK emulation
  4609.      is on, an ACK sent in response to an ENQ will not be translated.
  4610.  
  4611.  *   In GETString, data echoed to the modem (and displayed locally) will be
  4612.      translated with the Send Translate Table (it may be necessary to turn
  4613.      send translation off during certain GETString functions).
  4614.  
  4615. See also RTRAn.
  4616.  
  4617.  
  4618. ===  SUBString  ===
  4619.  
  4620. Default key:   none
  4621. Description:   Move a substring to a variable.
  4622.  
  4623. General form:
  4624.  
  4625.      {SUBString name,start,count,string}
  4626.  
  4627.           name
  4628.                The name of the variable to which the substring will be
  4629.                assigned.
  4630.  
  4631.           start
  4632.                The starting character number (first character is "1").  If
  4633.                it is negative, {COMMO} will count in from the end of the
  4634.                string.
  4635.  
  4636.                If it is too large and positive, the substring will be null.
  4637.  
  4638.                If it is too large and negative, the substring will start at
  4639.                the beginning of the string.
  4640.  
  4641.           count
  4642.                The number of characters to use.  If the number is too
  4643.                large, {COMMO} will use as many as possible.  If the count
  4644.                is 0, the substring will be null.
  4645.  
  4646.           string
  4647.                The string to use.
  4648.  
  4649.  
  4650.  
  4651.                                     -87-
  4652.  
  4653. Examples:
  4654.  
  4655.      {subs var_sub,2,4,abcdefgh}
  4656.           Set "var-sub" to "bcde".
  4657.  
  4658.      {subs newvar,-5,20,abcdefgh}
  4659.           Set "newvar" to "defgh".
  4660.  
  4661.  
  4662. ===  SXMOdem  ===
  4663.  
  4664. Default key:   none
  4665. Description:   Send a file using the Xmodem protocol.
  4666.  
  4667. Switches:
  4668.  
  4669.      See SYMOdem (switches are the same).
  4670.  
  4671. Example:
  4672.  
  4673.      {sxmo-ka c:\ul\file.zip}
  4674.           Send "file.zip" using 1024 byte block size (Xmodem-1k), sound the
  4675.           alarm.
  4676.  
  4677. Only one file may be sent with each SXMOdem function.
  4678.  
  4679. See SYMOdem for tips that apply to both SXMOdem and SYMOdem.
  4680.  
  4681.  
  4682. ===  SYMOdem  ===
  4683.  
  4684. Default key:   none
  4685. Description:   Send a file using the Ymodem Batch protocol.
  4686.  
  4687. Switches:
  4688.  
  4689.      NOTE: U, D, A and W switches are the same as for SZMOdem.
  4690.  
  4691.      K1 or K
  4692.           Use 1024 byte block size.
  4693.  
  4694.      K0
  4695.           Use 128 byte block size (default).
  4696.  
  4697. Examples:
  4698.  
  4699.      {symo-ka %uldir\*.zip}
  4700.           Send all .ZIP files in the upload directory using 1024 byte block
  4701.           size, sound the alarm.
  4702.  
  4703.      {symo-k c:\subdir\*.*,@c:\ul\file.lst,info.txt,a:*.qw?}
  4704.           Send all files listed using 1024 byte block size.
  4705.  
  4706.  
  4707.  
  4708.                                     -88-
  4709.  
  4710. See "File Specifications" under SZMOdem for more details on specifying
  4711. files for uploading.
  4712.  
  4713. TIPS on using SYMOdem and SXMOdem:
  4714.  
  4715.  *   CRC vs. Csum mode and use of "G" method is determined by the receiver. 
  4716.      Block size is determined by the sender.  {COMMO} will always use 1024
  4717.      byte blocks with "G" method.
  4718.  
  4719.  *   Some conditions that will cancel a transfer:
  4720.        1)  10 consecutive errors.
  4721.        2)  Any error when "G" method is used.
  4722.        3)  The receiver has transmitted CAN (^X) characters.
  4723.        4)  Loss of carrier.
  4724.  
  4725.  *   The Exit Code (test with IFER) will be set at the end of the transfer
  4726.      and will also be stored in the variable "_err".  0 means all files
  4727.      were transferred successfully.  1 means one or more files in the batch
  4728.      were not completed.
  4729.  
  4730.  *   If the Usage Log is enabled, an entry will be made after each file is
  4731.      transferred (or if a transfer is cancelled).
  4732.  
  4733.  
  4734. ===  SZMOdem  ===
  4735.  
  4736. Default key:   none
  4737. Description:   Send a file using the Zmodem Batch protocol.
  4738.  
  4739. Switches:
  4740.  
  4741.      R1 or R
  4742.           Tell the receiving program to resume the transfer at the end of
  4743.           the existing file.
  4744.  
  4745.      U1 or U
  4746.           Delete files after successful transmission.  Use with CAUTION!
  4747.  
  4748.      D1 or D
  4749.           Cancel transfer if carrier detect is lost (default).
  4750.  
  4751.           NOTE:  If carrier detect is off when the transfer is started,
  4752.           this switch will behave as if "D0" had been set.
  4753.  
  4754.      D0
  4755.           Ignore state of carrier detect.
  4756.  
  4757.      A1 or A
  4758.           Sound the alarm at end of transfer.
  4759.  
  4760.      A0
  4761.           Do not sound the alarm (default).
  4762.  
  4763.  
  4764.  
  4765.                                     -89-
  4766.  
  4767.      W
  4768.           Wait for a keypress at end of transfer.
  4769.  
  4770.      Wn
  4771.           Wait for "n" seconds, "n" may range from 0 to 999.  Press a key
  4772.           to cancel the wait.
  4773.  
  4774.           Note:  Default (no "W" switch) is no wait.
  4775.  
  4776. Examples:
  4777.  
  4778.      {szmo-a %uldir\*.*}
  4779.           Send all files in the upload directory, sound the alarm when
  4780.           finished.
  4781.  
  4782.      {szmo-u ginger.rep}
  4783.           Send "ginger.rep" and delete it after a successful transfer.
  4784.  
  4785.  
  4786. ----------  File Specifications
  4787.  
  4788. Any combination of file specifications may be listed in the SZMOdem or
  4789. SYMOdem functions.  These must be separated with commas and may include
  4790. wildcard specifiers (*,?), the indirect file specifier (@) and any single
  4791. files.
  4792.  
  4793. If a filespec is preceded with the "@" sign, it will be assumed to be an
  4794. "indirect file."  This means that it is a text file containing a list of
  4795. filespecs.  Filespecs should be listed one per line and each line should
  4796. end with a cr/lf (i.e., a normal text file).  Each filespec may contain
  4797. wildcards.  For example:
  4798.  
  4799.      c:\subdir\*.*
  4800.      info.txt
  4801.      a:*.qw?
  4802.  
  4803. TIPS on using SZMOdem:
  4804.  
  4805.  *   Some conditions that will cancel a transfer:
  4806.        1)  20 consecutive errors.
  4807.        2)  The receiver has cancelled.
  4808.        3)  Loss of carrier.
  4809.  
  4810.  *   The Exit Code (test with IFER) will be set at the end of the transfer
  4811.      and will also be stored in the variable "_err".  0 means all files
  4812.      were transferred successfully.  1 means one or more files in the batch
  4813.      were not completed.
  4814.  
  4815.  *   If the Usage Log is enabled, an entry will be made after each file is
  4816.      transferred (or if a transfer is cancelled).
  4817.  
  4818.  
  4819.  
  4820.                                     -90-
  4821.  
  4822. ===  TOGGles  ===
  4823.  
  4824. Default key:   Alt-T
  4825. Description:   Set various toggle parameters.
  4826.  
  4827. Example:
  4828.  
  4829.      {toggles}
  4830.           Open Set Toggles window.
  4831.  
  4832.  
  4833. ===  UNLOad  ===
  4834.  
  4835. Default key:   none
  4836. Description:   Unload the current auxiliary Macro File.
  4837.  
  4838. Examples:
  4839.  
  4840.      {unload}
  4841.           No arguments.
  4842.  
  4843. The auxiliary Macro File will be released from memory.  If no auxiliary is
  4844. loaded, no action will be taken.
  4845.  
  4846. If this function is executed from the auxiliary file, a STOP will occur
  4847. after the auxiliary is released.
  4848.  
  4849. See also CALL, GOTO.
  4850.  
  4851.  
  4852. ===  UNMArk  ===
  4853.  
  4854. Default key:   none
  4855. Description:   Unmark Dialing Directory entries.
  4856.  
  4857. Switches:
  4858.  
  4859.      L1 or L
  4860.           Unmark last-dialed entry only.
  4861.  
  4862.      L0
  4863.           Unmark all or listed entries (default).
  4864.  
  4865. Examples:
  4866.  
  4867.      {unmark joes-bbs,file-city}
  4868.           Unmark listed entries.
  4869.  
  4870.      {unmark}
  4871.           Unmark all entries.
  4872.  
  4873.      {unmark-L}
  4874.           Unmark last-dialed entry.
  4875.  
  4876.  
  4877.  
  4878.                                     -91-
  4879.  
  4880.  
  4881. NOTE:  When the "L" switch is present, any Dialing Strings listed will be
  4882. ignored.
  4883.  
  4884. Dialing Strings may be separated by spaces or commas.
  4885.  
  4886. {COMMO} will search the Dialing Directory for each string and unmark the
  4887. first entry where a match is found.  Case is ignored.
  4888.  
  4889. The strings may consist of any part of a Dialing Directory entry line
  4890. (including strings contained within curly braces), but must NOT contain any
  4891. spaces, commas or curly braces.
  4892.  
  4893. See also DIAL, MARK.
  4894.  
  4895.  
  4896. ===  VIDEo  ===
  4897.  
  4898. Default key:   none
  4899. Description:   Change to an alternate hardware video mode.
  4900.  
  4901. Switches:
  4902.  
  4903.      M1 or M
  4904.           Change to the alternate display mode.
  4905.  
  4906.      M0
  4907.           Change back to the normal display mode.
  4908.  
  4909. Examples:
  4910.  
  4911.      {video-m1}
  4912.           Change to the alternate mode.
  4913.  
  4914.      {video-m0}
  4915.           Change back to the normal mode.
  4916.  
  4917. The "alternate" mode is defined by Setup File item {avm=}.  The "normal"
  4918. mode is the mode in effect when you start {COMMO}.
  4919.  
  4920.  
  4921. ===  VTCUr  ===
  4922.  
  4923. Default key:   none
  4924. Description:   Define a VT102 cursor (arrow) key.
  4925.  
  4926. Example:
  4927.  
  4928.      {vtcur ^[[A|^[OA}
  4929.           Define up-arrow key strings.
  4930.  
  4931.  
  4932.  
  4933.                                     -92-
  4934.  
  4935. The first string is sent when cursor mode is active; the second string is
  4936. sent when application mode is active (these modes are controlled by the
  4937. host).
  4938.  
  4939. The two strings must be separated by a "|".  Use "^m" for carriage return
  4940. if necessary.
  4941.  
  4942. See also VTPAd.
  4943.  
  4944.  
  4945. ===  VTPAd  ===
  4946.  
  4947. Default key:   none
  4948. Description:   Define a VT102 keypad key.
  4949.  
  4950. Example:
  4951.  
  4952.      {vtpad 5|^[Ou}
  4953.           Define keypad "5" key strings.
  4954.  
  4955. The first string is sent when numeric mode is active; the second string is
  4956. sent when application mode is active (these modes are controlled by the
  4957. host).
  4958.  
  4959. The two strings must be separated by a "|".  Use "^m" for carriage return
  4960. if necessary.
  4961.  
  4962. See also VTCUr.
  4963.  
  4964.  
  4965. ===  WCLOse  ===
  4966.  
  4967. Default key:   none
  4968. Description:   Close the write file.
  4969.  
  4970. Example:
  4971.  
  4972.      {wclose}
  4973.           No arguments.
  4974.  
  4975. NOTE:  The write file will be closed automatically when the macro
  4976. terminates (STOP, EXIT, etc.).
  4977.  
  4978. See also WOPEn, WRITE.
  4979.  
  4980.  
  4981. ===  WINDow  ===
  4982.  
  4983. Default key:   none
  4984. Description:   Preserve window display.
  4985.  
  4986.  
  4987.  
  4988.                                     -93-
  4989.  
  4990. Switches:
  4991.  
  4992.      K1 or K
  4993.           Do not allow the Terminal Screen to be restored when exiting from
  4994.           a window.
  4995.  
  4996.      K0
  4997.           Allow the Terminal Screen to be restored when exiting from a
  4998.           window (default).
  4999.  
  5000. Examples:
  5001.  
  5002.      {window-k}
  5003.           Don't restore the Terminal Screen.
  5004.  
  5005.      {wind-k0}
  5006.           Restore the Terminal Screen.
  5007.  
  5008. This function will prevent the Terminal Screen from being restored after a
  5009. window function exits.  It is useful for making smooth, flicker-free
  5010. transitions between windows or for placing one pop-up window on top of
  5011. another.
  5012.  
  5013. The condition will remain active until either the "k0" switch is used or
  5014. the macro terminates.
  5015.  
  5016.  
  5017. ===  WOPEn  ===
  5018.  
  5019. Default key:   none
  5020. Description:   Open a file for writing.
  5021.  
  5022. Switches:
  5023.  
  5024.      A1 or A
  5025.           Open the file in "append" mode.  New lines written to the file
  5026.           will be added at the end.  If the file doesn't exist, it will be
  5027.           created.
  5028.  
  5029.      A0
  5030.           Open the file in "create" mode.  If the file exists, it will be
  5031.           erased (default).
  5032.  
  5033. Examples:
  5034.  
  5035.      {wopen c:\bbs\file.txt}
  5036.           Open the file in create mode.
  5037.  
  5038.      {wopen-a c:\data\word.fil}
  5039.           Open the file in append mode.
  5040.  
  5041.  
  5042.  
  5043.                                     -94-
  5044.  
  5045. TIP on using WOPEn:
  5046.  
  5047.  *   Only one file may be opened for writing (and one for reading).
  5048.  
  5049. See also WRITe, WCLOse.
  5050.  
  5051.  
  5052. ===  WRITe  ===
  5053.  
  5054. Default key:   none
  5055. Description:   Write a string to the write file.
  5056.  
  5057. Examples:
  5058.  
  5059.      {write %nextline}
  5060.           Write the contents of the variable "nextline" to the write file.
  5061.  
  5062.      {write}
  5063.           Write a carriage return/linefeed only (blank line) to the file.
  5064.  
  5065.      {write %num%> }
  5066.           Write the contents of "num" followed by a ">" and a space.
  5067.  
  5068. TIPS on using WRITe:
  5069.  
  5070.  *   A file must be open for writing or a Macro Error will result.
  5071.  
  5072.  *   The string will be written as one line, terminated by a carriage
  5073.      return/linefeed.
  5074.  
  5075.  *   Control character conversion is NOT performed on the write string.
  5076.  
  5077.  *   A Macro Error will result if the disk is full.
  5078.  
  5079. See also WOPEn, WCLOse
  5080.  
  5081.  
  5082.  
  5083.                                     -95-
  5084.  
  5085. For APPENDICES see Part I, COMMO.DOC.
  5086.  
  5087.