home *** CD-ROM | disk | FTP | other *** search
/ ProfitPress Mega CDROM2 …eeware (MSDOS)(1992)(Eng) / ProfitPress-MegaCDROM2.B6I / COMM / MISC / COMMO52.ZIP / ADDENDUM.DOC next >
Encoding:
Text File  |  1992-03-07  |  16.9 KB  |  495 lines

  1.  
  2.  
  3.  
  4.                             {COMMO} 5.2 Addendum
  5.                             ____________________
  6.  
  7.      This Addendum contains the major additions and/or changes to the
  8.      {COMMO} 5.1 documentation.  Print out this file and keep it with
  9.      your printed manual.
  10.  
  11.  
  12.      ===============================
  13.      In the User Guide and Reference
  14.      ===============================
  15.  
  16.      Setup File additions
  17.      --------------------
  18.  
  19.      ____________________________________________________
  20.  
  21.      {ncr=}         Macro to execute when carrier is lost
  22.      ____________________________________________________
  23.  
  24.      Specify a macro label here and {COMMO} will execute the macro
  25.      when carrier detect is lost.  Example:
  26.  
  27.           {ncr=carrlost}
  28.  
  29.      IMPORTANT:  This feature is enabled only when a connection is
  30.      made using {COMMO}'s Auto Dialer.  Also, if carrier drops while a
  31.      macro is running or a command window is open (such as the Dialing
  32.      Directory or Capture File Options), the carrier lost macro will
  33.      not activate.
  34.  
  35.      Be sure that you have your modem configured to provide the
  36.      carrier detect signal.  See Appendix A for modem information.
  37.  
  38.  
  39.      ________________________________________________
  40.  
  41.      {rtr=}    Receive Translate Table initialization
  42.      {str=}    Send Translate Table initialization
  43.      ________________________________________________
  44.  
  45.           These items are used to place values into the character
  46.           translation tables at program startup and, if desired, to
  47.           turn translation ON.  Multiple receive or send items may be
  48.           present.
  49.  
  50.           Character translation is used when you wish certain
  51.           characters to be changed into other characters as they are
  52.           received from, or as they are sent to, the remote system. 
  53.           You may also cause received characters to be ignored.
  54.  
  55.           Examples:
  56.  
  57.                {rtr=y,7,0,36,156}
  58.  
  59.  
  60.  
  61.                     Turn ON receive translation ("y").
  62.  
  63.                     Change the bell character (ASCII 7) to null (ASCII
  64.                     0, which will not display).
  65.  
  66.                     Change the "$" (ASCII 36) to ASCII 156.
  67.  
  68.                {str=#26,97,65,42,43,#10,48,128}
  69.  
  70.                     Change 26 consecutive values starting at 97 to
  71.                     consecutive values starting at 65.  This will
  72.                     change all lowercase letters (ASCII 97 to 122) to
  73.                     uppercase letters (ASCII 65 to 90).
  74.  
  75.                     Change the "*" (ASCII 42) to a "+" (ASCII 43).
  76.  
  77.                     Change 10 consecutive values starting at 48 to
  78.                     consecutive values starting at 128.  This will
  79.                     change the digits 0 through 9 (ASCII 48 to 57) to
  80.                     ASCII 128 to 137.
  81.  
  82.                     The ON/OFF state of send translation will not be
  83.                     changed (no "y" or "n" is present).
  84.  
  85.           A "y", to turn translation ON, must be the first argument,
  86.           if present.  It may be used on any "rtr" or "str" item and
  87.           will apply to all 256 values in either the receive table or
  88.           the send table.  Note that translation defaults to OFF when
  89.           {COMMO} is started.
  90.  
  91.           Use a PAIR of arguments to change a single value.
  92.  
  93.           Use THREE arguments to change a range of consecutive values
  94.           to another range of consecutive values.  The "#" operator on
  95.           the first argument specifies the number of values to change,
  96.           followed by the starting values for each range.
  97.  
  98.           The macro functions RTRAn and STRAn have similar argument
  99.           lists.  In addition they allow you to restore each Translate
  100.           Table to default values and to turn translation ON and OFF
  101.           without disturbing the values in the tables.  See the Macro
  102.           Programming Guide for more details.
  103.  
  104.  
  105.  
  106.      Under "[Alt-P]  Set Terminal Parameters"
  107.      ----------------------------------------
  108.  
  109.           _______________________
  110.  
  111.           Terminal Emulation Type
  112.           _______________________
  113.  
  114.      {COMMO} supports the following terminal types:
  115.  
  116.           ANSI-BBS  (A)  For calling most bulletin board systems.
  117.           VT102     (V)  For calling certain mainframes and online
  118.                          services.
  119.           TTY       (T)  For turning off almost all control functions
  120.                          (lets you see ANSI control sequences).
  121.           TTY(40)   (H)  HP 95LX version only.  Wraps terminal lines
  122.                          at 40 columns.  Use when the host cannot be
  123.                          configured for 40 columns.
  124.  
  125.  
  126.  
  127.      ==============================
  128.      In the Macro Programming Guide
  129.      ==============================
  130.  
  131.      New or changed function descriptions
  132.      ------------------------------------
  133.  
  134.      ______
  135.  
  136.      CALOok
  137.      ______
  138.  
  139.      Default key:   none
  140.      Description:   Set up an additional string to look for during a
  141.                     subsequent LOOKfor function.
  142.  
  143.      General form:
  144.  
  145.           {CALOok label1,label2,string}
  146.  
  147.                label1    The return point for the CALL to label2.
  148.  
  149.                label2    The label to CALL when "string" is received
  150.                          from the serial port.
  151.  
  152.                string    The ASCII string to look for.  The string
  153.                          begins following the "," and is terminated by
  154.                          the "}".
  155.  
  156.      When the routine at "label2" executes a RETUrn, control will pass
  157.      to "label1".  This is equivalent to:
  158.  
  159.           {call label2} {:label1} ...
  160.  
  161.      See LOOKfor for details, examples and tips on using CALOok.
  162.  
  163.      See also: GOLOok, SETLook.
  164.  
  165.      ______
  166.  
  167.      GOLOok
  168.      ______
  169.  
  170.      Default key:   none
  171.      Description:   Set up an additional string to look for during a
  172.                     subsequent LOOKfor function.
  173.  
  174.      General form:
  175.  
  176.           {GOLOok label,string}
  177.  
  178.                label     A label to GOTO when "string" is received
  179.                          from the serial port.
  180.  
  181.  
  182.  
  183.                string    The ASCII string to look for.  The string
  184.                          begins following the "," and is terminated by
  185.                          the "}".
  186.  
  187.      See LOOKfor for details, examples and tips on using GOLOok.
  188.  
  189.      See also: CALOok, SETLook.
  190.  
  191.      _______
  192.  
  193.      LOOKfor
  194.      _______
  195.  
  196.      Default key:   none
  197.      Description:   Look for strings in the modem input stream.
  198.  
  199.      LOOKfor may be used in conjunction with CALOok and GOLOok to scan
  200.      for up to 16 strings at the same time.  When CALOok and GOLOok
  201.      set up additional strings to look for, the actual "looking" does
  202.      not take place until the LOOKfor executes.
  203.  
  204.      Parameters controlling LOOKfor execution are set with the SETLook
  205.      function, which should be executed before any LOOKfor functions. 
  206.      See the description of the SETLook function for details.
  207.  
  208.      Examples using LOOKfor only:
  209.  
  210.           {lookfor first name?}    Look for the string "first name?"
  211.  
  212.           {look ^(COMMO^)}         Look for the string "{COMMO}".
  213.  
  214.           When the string comes in, control will pass to the next
  215.           function.
  216.  
  217.      Example construct using CALOok/GOLOok/LOOKfor:
  218.  
  219.                     {setlook 60,hng,3,n|}
  220.                       ...
  221.  
  222.           {:m_1234}
  223.                     {golook aaa,string1}
  224.                     {calook m_1234,bbb,string2}
  225.                     {calook m_1234,ccc,string3}
  226.                     {golook ,string4}
  227.                     {lookfor string5} {send answer5|} {goto ddd}
  228.  
  229.           {:aaa}    {hangup y} {goto cancel}
  230.           {:bbb}    {send answer2|} {return}
  231.           {:ccc}    {send answer3|} {call subr} {return}
  232.  
  233.           {:ddd}      ...
  234.  
  235.           In this example {COMMO} will look for five strings.  When
  236.           any string comes in, the LOOKfor is terminated (all strings
  237.  
  238.  
  239.  
  240.           are cancelled).  It may be set up again by going back to
  241.           "m_1234".
  242.  
  243.           The GOLOok function for string1 will GOTO "aaa" when the
  244.           string comes in.  In the example control will pass to
  245.           "cancel".
  246.  
  247.           If string2 or string3 come in the CALOok functions will set
  248.           "m_1234" as the return point and then CALL "bbb" or "ccc"
  249.           respectively.  When these routines RETUrn, control returns
  250.           to "m_1234" and the five string LOOKfor will be set up
  251.           again.
  252.  
  253.           The GOLOok for string4 has a null label and control will
  254.           pass to the function following the LOOKfor if that string
  255.           comes in.  The "," must be present.
  256.  
  257.           If string5 comes in, control will also pass to the function
  258.           following the LOOKfor.
  259.  
  260.      TIPS on creating LOOKfor strings:
  261.  
  262.      >    There should be just one space following the LOOKfor
  263.           function name.  Any spaces beyond this point are part of the
  264.           string.  The string ends at the right curly brace.
  265.  
  266.      >    CALOok/GOLOok/Auto Receive strings begin immediately after
  267.           the comma.  There should be no spaces unless they are part
  268.           of the string.
  269.  
  270.      >    Strings may be up to 32 characters in length (control
  271.           characters like "^M" count as one).  Upper/lower case is
  272.           ignored.
  273.  
  274.      >    ANSI control sequences are filtered if ANSI or VT102
  275.           emulation is enabled.
  276.  
  277.      >    Remember that short strings may not be unique enough, long
  278.           strings may not match due to line noise.
  279.  
  280.      >    Rules for representing special characters in
  281.           CALOok/GOLOok/LOOKfor/Auto Receive strings are given in
  282.           Appendix D in the User Guide and Reference.
  283.  
  284.      Additional TIPS:
  285.  
  286.      >    CALOok and GOLOok functions should immediately precede a
  287.           LOOKfor (no string compares actually occur until the LOOKfor
  288.           executes).  Up to 15 CALOok/GOLOok strings may be used for a
  289.           total of up to 16 strings to scan for.
  290.  
  291.      >    FILTER Capture Mode should be used to determine the exact
  292.           prompt to look for.  The LOOKfor sees the incoming data
  293.           exactly as it is captured when FILTER mode is set.
  294.  
  295.  
  296.  
  297.      >    If two or more strings cause a match at the same time, the
  298.           LAST such string listed is the one acted upon.  For example,
  299.           if "abcdef" and "def" are listed and "abcdef" comes in.
  300.  
  301.      >    Since the LOOKfor is terminated whenever any of the strings
  302.           come in (or when the LOOKfor timeout expires), this
  303.           structure is unrestricted -- that is, CALLs, GOTOs, other
  304.           CALOok/GOLOok/LOOKfor constructs, etc., may be used freely
  305.           in any of the branches.
  306.  
  307.      See also: CALOok, GOLOok, SETLook.
  308.  
  309.      _________
  310.  
  311.      NOCArrier
  312.      _________
  313.  
  314.      Default key:   none
  315.      Description:   Sets/resets a macro to execute when carrier detect
  316.                     is lost.
  317.  
  318.      Examples:
  319.  
  320.           {nocar carrlost}         GOTO the label "carrlost" when the
  321.                                    carrier detect signal drops.
  322.  
  323.           {nocar}                  Turn off the carrier lost label.
  324.  
  325.      IMPORTANT:  This feature is enabled only when a connection is
  326.      made using {COMMO}'s Auto Dialer.  Also, if carrier drops while a
  327.      macro is running or a command window is open (such as the Dialing
  328.      Directory or Capture File Options), the carrier lost macro will
  329.      not activate.
  330.  
  331.      Be sure that you have your modem configured to provide the
  332.      carrier detect signal.  See Appendix A in the User Guide and
  333.      Reference for modem information.
  334.  
  335.      _____
  336.  
  337.      RTRAn
  338.      _____
  339.  
  340.      Default key:   none
  341.      Description:   Maintain Receive Translate Table.
  342.  
  343.      Switches:
  344.  
  345.                I1 or I   Initialize Receive Translate Table to default
  346.                          values (consecutive 0 to 255).
  347.  
  348.                I0        Do not initialize (default).
  349.  
  350.      Examples:
  351.  
  352.  
  353.  
  354.           {rtran y}                Turn receive translation ON.
  355.  
  356.           {rtran-i n}              Initialize the table and turn it
  357.                                    OFF.
  358.  
  359.           {rtran 26,0}             Change ASCII 26 to null (ASCII 0,
  360.                                    which will not display).
  361.  
  362.           {rtran-i y,#8,224,240}   Initialize the table, turn receive
  363.                                    translation ON, change ASCII 224 to
  364.                                    240, 225 to 241, ..., 231 to 247. 
  365.  
  366.           {rtran}                  Toggle receive translation ON/OFF.
  367.  
  368.           {rtran #13,65,78,#13,78,65,#13,97,110,#13,110,97}
  369.                                    ROT13 translation.  This swaps the
  370.                                    first 13 letters of the alphabet
  371.                                    for the second 13.
  372.  
  373.      Rules for RTRAn arguments are the same as for the {rtr=} item in
  374.      the Setup File.  In addition, "n" may be used as the first
  375.      argument to turn receive translation OFF at any time.
  376.  
  377.      See "Edit Setup File" in the User Guide and Reference for details
  378.      and more examples.
  379.  
  380.      TIPS on using RTRAn:
  381.  
  382.      >    Some control characters are unaffected by translation when
  383.           certain features are enabled.  Examples:  XON (17) and XOFF
  384.           (19) are not translated when Software Flow Control is on. 
  385.           ENQ (5) is not translated when ENQ/ACK emulation is on.
  386.  
  387.      >    When the Capture Mode is set to RAW, data will be captured
  388.           prior to translation.  FILTER and SCREEN captures will
  389.           contain translated data.
  390.  
  391.      >    LOOKfor will always see translated data.  Use FILTER Capture
  392.           Mode to see what LOOKfor sees.
  393.  
  394.      >    In GETString, incoming data (as well as locally typed
  395.           characters) will be translated with the Receive Translate
  396.           Table (it may be necessary to turn receive translation off
  397.           during certain GETString functions).
  398.  
  399.      See also STRAn.
  400.  
  401.      _______
  402.  
  403.      SPDCtrl
  404.      _______
  405.  
  406.      Default key:   none
  407.      Description:   Serial port display control.
  408.  
  409.  
  410.  
  411.      Examples:
  412.  
  413.           {spdc y}            Serial port display is ON.
  414.           {spdc n}            Serial port display is OFF.
  415.  
  416.      This function will suppress display of any data received from the
  417.      serial port.  It can be used when a "clean" display is desired
  418.      during automated procedures.
  419.  
  420.      TIPS on using SPDCtrl:
  421.  
  422.      >    ANSI control sequences are not processed while SPDCtrl is in
  423.           effect (Terminal Emulation effectively reverts to TTY).
  424.  
  425.      >    LOOKfor will function normally, but remember that ANSI
  426.           sequences are not stripped.  Make a manual run using TTY
  427.           emulation to see what the LOOKfor will see.
  428.  
  429.      >    SCREEN Capture Mode will not capture any of the incoming
  430.           data.  Use RAW mode or FILTER mode instead (FILTER capture
  431.           will be affected by the Translate Table, but will still
  432.           contain ANSI sequences).
  433.  
  434.      >    Serial port display will always be restored to ON at macro
  435.           termination.
  436.  
  437.      _____
  438.  
  439.      STRAn
  440.      _____
  441.  
  442.      Default key:   none
  443.      Description:   Maintain Send Translate Table.
  444.  
  445.      Switches:
  446.  
  447.                I1 or I   Initialize Send Translate Table to default
  448.                          values (consecutive 0 to 255).
  449.  
  450.                I0        Do not initialize (default).
  451.  
  452.      Examples:
  453.  
  454.           {stran y}           Turn send translation ON.
  455.  
  456.           {stran-i n}         Initialize the table and turn it OFF.
  457.  
  458.           {stran-i y,92,47}   Initialize the table, turn send
  459.                               translation ON, change "\" to "/".
  460.  
  461.           {stran}             Toggle send translation ON/OFF.
  462.  
  463.           {stran #13,65,78,#13,78,65,#13,97,110,#13,110,97}
  464.  
  465.  
  466.  
  467.                               ROT13 translation.  This swaps the first
  468.                               13 letters of the alphabet for the
  469.                               second 13.
  470.  
  471.      Rules for STRAn arguments are the same as for the {str=} item in
  472.      the Setup File.  In addition, "n" may be used as the first
  473.      argument to turn send translation OFF at any time.
  474.  
  475.      See "Edit Setup File" in the User Guide and Reference for details
  476.      and more examples.
  477.  
  478.      TIPS on using STRAn:
  479.  
  480.      >    Some control characters are unaffected by translation when
  481.           certain features are enabled.  Examples:  XON (17) and XOFF
  482.           (19) are not translated when Software Flow Control is on. 
  483.           When ENQ/ACK emulation is on, an ACK sent in response to an
  484.           ENQ will not be translated.
  485.  
  486.      >    In GETString, data echoed to the modem (and displayed
  487.           locally) will be translated with the Send Translate Table
  488.           (it may be necessary to turn send translation off during
  489.           certain GETString functions).
  490.  
  491.      See also RTRAn.
  492.  
  493.                                   - end -
  494.  
  495.