home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS - Coast to Coast / simteldosarchivecoasttocoast2.iso / modem / qcom293b.zip / QCOM.DOC < prev    next >
Text File  |  1992-07-27  |  42KB  |  982 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.        QCOM.EXE
  8.        Revision 2.93
  9.        July 11, 1992
  10.  
  11.  
  12.        ------------------------------------------
  13.  
  14.  
  15.  
  16.        Copyright 1990-1992 by RTFM Software and Richard W. Turenne
  17.        Winnipeg, Mb.
  18.        All Rights Reserved
  19.  
  20.  
  21.  
  22.        All users are granted a limited license to try QCom for a reasonable
  23.        evaluation period to determine its' suitability.
  24.  
  25.  
  26.        QCom is USER SUPPORTED.  It is not Public Domain and is not free.
  27.        This means, if you decide to use this program, please show your
  28.        support by registering it with the author.
  29.  
  30.  
  31.        To add INCENTIVE, those who register will be shown how to utilize
  32.        the user defineable functions.  Users can pre-define other
  33.        external dos functions, or other external protocols, or batch files,
  34.        and access them with a single keystroke.  Additionally, they will be
  35.        able to eliminate the "nag" screen when ending QCom.
  36.  
  37.  
  38.  
  39.  
  40.  
  41.        ------------------------------------------------------------------
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.   SYSTEM REQUIREMENTS:
  57.  
  58.      Minimum of one floppy drive, 256K or more memory, and a modem of
  59.      course.
  60.  
  61.  
  62.   INTRODUCTION to QCom:
  63.  
  64.      QCOM is a compact communications program that attempts to pack in
  65.      maximum of function, form and ease of use into a small package.  It
  66.      was decided to primarily use external protocols for files transfers
  67.      because there are many available from which to choose.  And as the
  68.      technology of protocols progresses, it's a simple matter to keep your
  69.      communication software operating at the current state of the art.
  70.  
  71.      Note: All references to DSZ also apply to GSZ by Omen Technology.
  72.  
  73.      QCOM is tailored to use the shareware program DSZ by Omen Technology
  74.      to handle most file transfers.  When a file is to be transferred,
  75.      QCOM passes the proper commandline to DSZ which then handles all the
  76.      work of transferring and error checking.  It provides commonly used
  77.      Xmodem, Ymodem and Zmodem transfer methods.
  78.      (QCom can also be set up to use any other external protocol. See the
  79.      section on OTHER EXTERNAL PROTOCOLS.)
  80.  
  81.      When the file transfer is finished, QCOM resumes control.
  82.      NOTE:
  83.      DSZ.COM  must be present in the default directory or in the DOS
  84.      path if you wish to transfer files.  DSZ or GSZ  may be obtained from
  85.      many local online sources.
  86.  
  87.  
  88.  
  89.  
  90.   FIRST TIME SETUP AND CONFIGURATION:
  91.  
  92.     Run the QCom Setup utility called QS.EXE.  Enter Com Port, screen
  93.     colors and select your modem from the list.  Pressing ENTER will
  94.     update the QCom configuration file.  Follow any instructions
  95.     relating to modem switches or jumpers.
  96.  
  97.     Run QCOM.  Wait a few moments while the modem is being initialized.
  98.     An error message usually means the modem has not been properly
  99.     initialized.  Correct modem initialization is critical to all
  100.     operations that involve the modem.  If the string from QCom Setup
  101.     is incorrect, please advise the author so that corrections can be
  102.     made.
  103.  
  104.     In the mean time, you may need to refer to your modem instruction
  105.     manual if you still have problems.  One way to check initialization
  106.     is to press ALT-M when at the terminal screen to reinitialize the
  107.     modem.
  108.     If you get "ERROR" back from the modem then there is something in the
  109.     string that it doesn't understand. Refer to your modem manual to
  110.     remove any incorrect modem commands from the string.  Pressing ALT-O
  111.     when in QCom allows you to edit the modem string contained in the
  112.     configuration file.  Also see the Trouble Shooting section that
  113.     follows later.
  114.  
  115.     All configuration data is stored in the text file called QCOM.CFG.
  116.     If you wish, you can edit the file with any ascii editor as long as a
  117.     few rules are adhered to:
  118.  
  119.     a)The sequence and number of items in the file must not be altered.
  120.  
  121.     b)Each line should be no longer than 80 characters.  Longer lines
  122.       are truncated to 80 characters.
  123.  
  124.     c)Comments, if used, must be kept behind semicolons.
  125.  
  126.     d)The editor must not insert any hidden formatting or control
  127.       characters into the text.  If in doubt about your editor, edit it
  128.       within QCom using ALT-O.
  129.  
  130.  
  131.  
  132. CONFIGURATION CONTINUED...
  133.  
  134.     NOTE:
  135.     The "|" character will send a carriage return to the modem.  The
  136.     "~" is a half-second pause to allow the modem time to execute the
  137.     commands in the initialization string.  Some modems need more time
  138.     than others.  The pause is executed by QCom and the modem will not
  139.     actually receive the "~" character.
  140.     Function key definitions are shown in the last ten lines.  You can
  141.     configure your own "macros" here.  Control codes can be sent with
  142.     the use of the "^" character.
  143.     Example:
  144.           ^[ = an escape character
  145.           ^M = a carriage return
  146.     Refer to any good ASCII chart for others.
  147.  
  148.  
  149.  
  150.   COMMANDLINE PARAMETERS:
  151.  
  152.     In addition to specifying a script,  the user can specify an
  153.     alternate configuration file and an alternate phone directory file.
  154.     This allows network users to have CFG and FON files tailored to
  155.     their individual needs.
  156.  
  157.     Switches are:
  158.            /S = load and execute script file
  159.            /C = load alternate configuration file
  160.            /P = load alternate phone directory
  161.  
  162.     Usage is: QCOM [/Sfilename.SCR] [/Cfilename.CFG] [/Pfilename.FON]
  163.  
  164.     Users may use the options in any sequence.  The switches (/S,/C,/P)
  165.     must NOT have a space preceding the filename.  When the commandline
  166.     options are not used, QCom defaults to QCom.CFG and QCom.FON.
  167.  
  168.   TERMINAL EMULATION:
  169.  
  170.     This version has built-in support for ANSI-BBS and straight TTY.
  171.     Pressing ALT-K will toggle between the two.
  172.  
  173.  
  174.  
  175.  
  176.   STATUS LINE EXPLANATION:
  177.  
  178.     ----------------------------------------------------------------------
  179.     Alt-Z:Help │SEC │ Host system name     Online 05:55:55 │Z│ COM1:2400N8
  180.     ----------------------------------------------------------------------
  181.         |       ||||         |                |       |     |       |
  182.         |       ||||         |                |       |     |       |
  183.     Commands    ||||         |                |       |     |       |
  184.     Script on -- |||         |                |       |     |       |
  185.     Echo On ----- ||         |                |       |     |       |
  186.     Capture On --- |         |                |       |     |       |
  187.     Alarm Off -----          |                |       |     |       |
  188.     Host name ---------------                 |       |     |       |
  189.     Carrier status ---------------------------        |     |       |
  190.     Time connected -----------------------------------      |       |
  191.     Transfer protocol --------------------------------------        |
  192.     Communication port, baud, parity and databits ------------------
  193.  
  194.  
  195.   FILE TRANSFER PROTOCOLS:
  196.  
  197.     Transfer protocols are what DSZ uses as a method of flow-control and
  198.     error-checking when transferring files.  These protocols are
  199.     specified when adding to the Dialing Directory.  The Dialing
  200.     Directory is displayed when you press ALT-D.
  201.     The use of ZModem protocol is recommended if the host computer has
  202.     the option available.  QCom defaults to ZModem with crash recovery
  203.     and Moby Turbo enabled (z-rm).  This can be changed by bringing up
  204.     the configuration screen with ALT-O and editing the default ZModem
  205.     line.
  206.     When selecting XModem protocol, QCom defaults to using the built-in
  207.     XModem instead of DSZ's. This can be changed by editing the
  208.     appropriate line in QCom.CFG (press ALT-O in QCOM).
  209.  
  210.     If it becomes necessary to change your transfer protocol while on-
  211.     line, you can do so by pressing ALT-T.  A box will pop up to allow
  212.     you to make the change.  The current protocol is displayed in the
  213.     right-hand box on the status line (see STATUS LINE EXPLANATION
  214.     below).  It is VERY important that the protocols at the receiving and
  215.     transmitting ends are the same, otherwise DSZ will give a "Time Out"
  216.     error message and abort without transferring anything.
  217.  
  218.     Finding the required information on setting protocols in the DSZ
  219.     documentation can be challenging.  QCom gives the user a menu to
  220.     simplify selection and will send the command string that DSZ looks
  221.     for.  The following show the protocol commands QCom sends to DSZ.
  222.  
  223.  
  224.  
  225.   FILE TRANSFER PROTOCOLS CONTINUED...
  226.  
  227.     Protocol:        DSZ Command string:
  228.     ZModem            "z -rm" (Can be changed in QCom.CFG)
  229.     YModem Batch      "b -cy"
  230.     YModem-G          "b -cgy"
  231.     XModem-CRC        "x -cy"
  232.     XModem-1K         "x -cky"
  233.     XModem-1K-G       "x -cgy"
  234.  
  235.     The command that QCom gives to DSZ is the port and CONNECT baud rate
  236.     currently in use,  followed by an "s" or an "r" (depending on whether
  237.     the file is being sent or received) and the protocol string as in the
  238.     above  examples.
  239.  
  240.     TIP: Other options can be added by using SET DSZOPT=options in the
  241.     autoexec.bat file.  See the DSZ docs for options.
  242.  
  243.     The download path is added to the end of the  commandline when
  244.     downloading.  An unregistered copy of DSZ will ignore download paths.
  245.     The upload path precedes the filename specified by the user when the
  246.     upload command is issued.
  247.  
  248.     TIP:  If you upload files from different sub directories, keep the
  249.     default upload path blank in the QCom.CFG file.  When prompted for
  250.     the file to upload, enter the path and filename together
  251.     (Eg. C:\QCOM\QCOM.ZIP").
  252.  
  253.     Another tip:  Put the line "SET DSZLOG=C:\QCOM\QCOM.LOG" in your
  254.     Autoexec.bat file and DSZ will keep a log of your file transfers in
  255.     QCOM.LOG (This assumes that you have installed QCom on drive C: in a
  256.     subdirectory \QCOM.  You may change the path and log filename as you
  257.     wish.).
  258.     File transfers may be aborted with ESC followed by several CTRL-
  259.     BREAK's.
  260.  
  261.   OTHER EXTERNAL PROTOCOLS:
  262.  
  263.     QCom can be set up to use most external protocols.  Non-registered
  264.     uses can jump to Dos (ALT-J) and manually execute the external prot-
  265.     ocol.  Registered users will be shown how to pass parameters to the
  266.     external protocols and execute them with a single keystroke.
  267.     Note: An unregistered copy of QCom is not "crippled".  The instruct-
  268.     ions for using this feature of QCom are provided to all those who
  269.     register.
  270.  
  271.   SCREEN COLORS:
  272.  
  273.     Screen colors can be changed by modifying values given in the
  274.     configuration file QCom.CFG.  The easiest way is to use QS.EXE, the
  275.     QCom Setup program.
  276.  
  277.  
  278.  
  279.  
  280.    VARIOUS FUNCTIONS:
  281.  
  282.      ALT-A:
  283.          Toggles the sound functions on or off.
  284.      ALT-B:
  285.          Allows the user to scroll back up to 500 lines of received data.
  286.          Search capabilities are provided for finding particular text and
  287.          the whole buffer can be written to disk using the Save command,
  288.          "S" (the filename defaults to "QComBuff.Txt") or erase the buffer
  289.          with "E". "Q" is for quoting previously received text. When "Q" is
  290.          pressed another menu of choices is presented and one line of text
  291.          will be highlighted. This highlighted line can be moved through
  292.          the buffer with the cursor keys, Home, End, PgUp, or PgDn.  Lines
  293.          can be tagged or untagged by pressing "T" or the SPACE bar.  Once
  294.          text is selected, it can be save to disk with "F" or immediately
  295.          sent to the host with "S".  This last feature allows you to quote
  296.          lines from a message and return them to the host's editor when
  297.          answering that message online.  "U" will untag all tagged lines
  298.          as will sending or filing.
  299.      ALT-C:
  300.          Communication parameters can be modified here.  These changes
  301.          are in effect until changed again or until QCom ends.
  302.          Com Port must be set in QCOm.CFG. Port changes will not take
  303.          effect unless QCom is restarted.
  304.      ALT-D:
  305.          Displays the dialing directory.  Use the arrow keys to select
  306.          a number and ENTER to dial that number.  Other keys that are
  307.          PGUP, PGDN, HOME and END.  HOT TIP: Pressing ALT and a letter
  308.          will put the cursor on the first line beginning with that
  309.          letter.
  310.          Add a new entry with "A" or edit an existing one with "E".  To
  311.          delete an entry press "D".  You can dial the phone with a
  312.          manually entered number using "M".
  313.          Phone entries can be tagged or untagged with the Space bar.
  314.          This will cause QCom to continuously dial all tagged numbers
  315.          until a connection is made.  Dialing of tagged numbers will
  316.          commence when the Enter key is pressed.  Once a connection is
  317.          made and broken you will be returned to the Dialing Directory.
  318.          Continuous dialing will resume where it left off if Enter is
  319.          pressed again.
  320.      ALT-E:
  321.          Toggles local echo on or off.  This is used when the host does
  322.          not echo back the characters that you enter.  An "E" is
  323.          displayed in the left-hand box on the status line when local
  324.          echo is on.
  325.      ALT-G:
  326.          Toggles output to printer on and off.  Allows all incoming text to
  327.          be sent to the printer.  Make sure the printer is online.
  328.      ALT-H:
  329.          Sends the hang-up string to the modem and toggles DTR.
  330.  
  331.  
  332.  
  333.  
  334.   VARIOUS FUNCTIONS Continued...
  335.  
  336.      ALT-I:
  337.          Will save the current screen image to a text file as specified
  338.          in the QCom.CFG file.  Default filename is QCOM.SCN which can
  339.          be changed by editing the QCom.CFG file (use ALT-O).
  340.      ALT-J:
  341.          Allows shelling out to DOS without ending QCOM.  External
  342.          programs can be executed while on-line.  The user could make
  343.          use of other external file transfer protocols here if desired.
  344.          Though there is a better way.  See registration section.
  345.      ALT-K:
  346.          Toggles between ANSI and TTY terminal emulation.
  347.      ALT-L:
  348.          Toggles the "capture" function.  If on, all incoming text will
  349.          be saved in a file named as specified in the QCom.CFG file.
  350.          Default is QCOM.CAP.  IF the file  does not exist in the
  351.          default directory, it will be created.  Otherwise data is
  352.          appended to an existing capture file.  A "C" is displayed in
  353.          the left-hand box on the status line when capture is on.
  354.      ALT-M:
  355.          Sends the modem initialization string to the modem.  This
  356.          string is automatically sent upon start-up (providing no
  357.          carrier is present).
  358.      ALT-N:
  359.          Split-screen separates incoming and outgoing keystrokes
  360.          during a "chat" session.
  361.      ALT-O:
  362.          Brings up the QCOM.CFG file to the screen for editing.
  363.          Press F10 to save the file and to set the Communication
  364.          parameters as shown in the file.  Esc exits and makes no
  365.          changes.
  366.          If it were necessary to change baud or any other Communication
  367.          parameter while online, use ALT-O to edit and F10 to set
  368.          parameters.  Changing the port specified here will have no
  369.          effect unless QCom is  restarted.
  370.      ALT-P:
  371.          Sends the current password from an entry of the Dialing
  372.          directory when you have dialed and connected to that entry.
  373.      ALT-Q:
  374.          Load and execute a script.
  375.      ALT-R:
  376.          Re-dials the last phone number dialed when no entries are
  377.          "Tagged", or if entries are "Tagged", it will continue dialing
  378.          those.
  379.      ALT-S:
  380.          Toggles the Script Save function.  See the Script section for
  381.          more information on making and using scripts.
  382.      ALT-T:
  383.          Allows changing of the transfer protocol currently in effect.
  384.          This can be done while on-line.
  385.  
  386.  
  387.  
  388.  
  389.    VARIOUS FUNCTIONS Continued...
  390.  
  391.      ALT-V:
  392.          Allows the use of an external editor or file viewer.  The
  393.          editor (or file viewer) of choice is defined in the
  394.          configuration file.
  395.      ALT-U:
  396.          Will send a pure ascii text file to the host with no error-
  397.          checking.  Ascii transfer is used to send a text file to the
  398.          host PC.  For example, you might use it when sending a message
  399.          to an electronic mail service.  Instead of editing the message
  400.          on-line, you can prepare your message in advance.  Once on-
  401.          line, go into the message editing screen on the host and then
  402.          use ALT-U to upload your file.
  403.      ALT-W:
  404.          Wipes the screen clear.
  405.      ALT-X:
  406.          Ends QCOM.
  407.      ALT-Y:
  408.          QCom becomes the host computer.  It will wait for any incoming
  409.          phone calls until ESC is pressed.  When a call is received, QCom
  410.          will answer the phone.  QCom sends the contents of QCOMHOST.MSG
  411.          to the caller's PC.  You can edit this file to suit your own
  412.          needs using an ANSI "editor" like TheDraw.
  413.  
  414.          After this message file is sent, the caller is shown the
  415.          following menu:
  416.  
  417.    "(H)elp (A)rea (F)iles (C)hat (U)pload (D)ownLoad (P)rotocol (G)oodbye"
  418.  
  419.          The caller can select one of the choices or the Host can enter
  420.          selections.
  421.          "Help"  sends a brief help screen to the user.
  422.          "Area"  allows the user to change to a different subdirectory.
  423.          "Files" allows the user to list specified files in that
  424.          subdirctory.
  425.          "Chat"  will allow  a dialogue between each PC.  To end Chat
  426.          and return to the menu, the Host must press ESC.
  427.          "Upload"  will send a file to the Host using DSZ ZModem.
  428.          "Download" will send a file to the caller in a similar manner.
  429.          If the caller specifies the correct path and filename, he will
  430.          be able  to download a file from anywhere on the Host system.
  431.          "Proto" will allow the caller to select XModem, YModem or
  432.          ZModem protocols when transferring files.
  433.          "Goodbye" will terminate the connection.
  434.          As Host, you can also terminate the call by pressing ALT-H to
  435.          hangup. QCom will then wait for the next caller.  ALT-X will
  436.          also terminate the call and in addition, end QCom.
  437.          A local Host mode test is available: Press ENTER when waiting
  438.          for incoming calls.  This allows preparation and preview  of
  439.          your own host welcome messages or help screens.
  440.  
  441.  
  442.  
  443.    VARIOUS FUNCTIONS Continued...
  444.  
  445.      PGUP:
  446.          Uploads (sends) a file to the other system.  You will be
  447.          prompted to enter a filename to upload.  The file can be
  448.          preceded by a path only if NO upload path is specified in
  449.          QCOM.CFG.  If the host supports batch uploads then you can
  450.          take advantage of DSZ's capabilities; when prompted for a file
  451.          to upload enter the name of a file containing a list of the
  452.          files you wish to upload.  Precede the filename with an "@" .
  453.          Example: "@files.lst".  Or you can use QCom to create a list
  454.          file for you.  When prompted for a file to upload press ENTER
  455.          with any global file specification (*.* or *.zip). You will
  456.          be shown a box containing filenames based on that specification.
  457.          From here simply use the cursor keys to select a files and Mark
  458.          them with "M".  When finished marking press ENTER and QCom will
  459.          create "Files.LST" and pass that to DSZ for you.
  460.      PGDN:
  461.          Downloads (receives) a file from the host computer.  If XModem
  462.          or YModem are the protocols in effect, you'll be prompted to
  463.          enter the filename to receive.  QCom tries to guess the
  464.          filename based on recently entered text and places its' guess
  465.          at the prompt.
  466.          If ZModem is in effect, entry of filenames is not required and
  467.          in fact, pressing PGDN is not required because QCom will call
  468.          DSZ automatically when it receives the Zmodem Receive string.
  469.      ALT-=:
  470.          Toggles "Doorway" mode.  This removes the status line when in
  471.          Doorway mode and gives full screen display for using remote
  472.          applications.
  473.          Allows you to make full use of all keys while online.  All
  474.          Alt-key combinations except ALT-= are sent out and their usual
  475.          functions are disabled in this mode.   For example, PgUp,
  476.          PgDn, Home, End and the cursor key codes are transmitted.  You
  477.          might make use of this when using a full-screen editor while
  478.          online or when using your PC as a dumb terminal on a non-DOS
  479.          system such as Unix.  Status line and all key functions are
  480.          restored when Doorway mode is turned off.
  481.      ALT-Minus:
  482.          Enables/disables debugging during script execution.  Status
  483.          line displays the next line of text which QCom is looking for.
  484.      Ctrl-END
  485.          Sends Break signal to host.  Used for terminating some mainframe
  486.          connections.
  487.      F1-F10:
  488.          Sends the text as listed in the last ten lines of QCom.CFG.
  489.          You can put your name, password, special key codes or whatever
  490.          you wish here. 80 characters max on each line.
  491.      Ctrl-F1
  492.          Displays the "Function Key Macros" as they appear in QCom.CFG.
  493.      Ctrl-F2
  494.          Displays the "Alt Key Macros" for registered users.
  495.  
  496.  
  497.  
  498.    SCRIPTS:
  499.        Scripts are used for automating repetitive tasks such as dialing,
  500.        logging in to an online service, and transferring files or  
  501.        electronic mail.  A script is generally made up of a series of 
  502.        commands for QCom to execute at the appropriate time.  The script 
  503.        can tell QCom to send text to the host or it can make QCom execute 
  504.        one of its' internal functions.
  505.  
  506.    MAKING A SCRIPT:
  507.        QCom has a built-in Script-save feature to simplify the creation of
  508.        scripts. To create a typical login script you would do the 
  509.        following:
  510.  
  511.        1.  From the Dialing Directory dial the number.
  512.        2.  When the host answers and immediately after the Dialing box
  513.            clears, press Alt-S to start the script saver.  It will prompt 
  514.            you to enter the name of your script.  If, for example, you're 
  515.            calling CompuServe, you could name it CIS.SCR.
  516.        3.  QCom will save each line of incoming text which prompts you for
  517.            input.  For example the host may prompt you...
  518.                    ENTER YOUR FULL NAME :
  519.            To which you respond by typing in your name and pressing ENTER
  520.            when the name is complete.  Always type entries in, don't use
  521.            Function key macros when saving a script. If/when prompted to
  522.            press "ANY" key always press ENTER.  QCom will store the host's
  523.            prompt, and the text you have entered in the script.
  524.            (Also Note: BBS software that has "HotKey" menu choices where 
  525.            the user is not required to press ENTER after selecting a letter 
  526.            is great BUT... when it comes to saving a script QCom will NOT 
  527.            save the line unless you press ENTER.  So when saving a script 
  528.            turn off the Hotkey feature at the BBS end.)
  529.        4.  QCom will also store any commands you give it such as ALT-L
  530.            to turn on the capture function.
  531.        5.  When you wish to stop saving a script press Alt-S again.
  532.        6.  To have this new script execute when you call this number again,
  533.            add the name of your script into that entry in the Dialing
  534.            Directory. The next time you dial that number the script will be
  535.            loaded and executed.
  536.  
  537.        Sample script :
  538.        put a message on screen
  539.        ;ECHO ^M This is the start of my script! ^M
  540.  
  541.        let's capture the session to file.txt
  542.        ;a-L file.txt
  543.  
  544.        Do you want graphics (Enter)=no;^M
  545.        What is your full name?;John Doe^M
  546.  
  547.        sends password from the Directory entry we just dialed
  548.        Password (Dots will echo)?;a-P
  549.        Scan Message Base Since 'Last Read' (Enter)=yes;^M
  550.        Press (Enter) to continue;^M
  551.  
  552.  
  553.    MAKING A SCRIPT Continued...
  554.  
  555.       receiving (downloading) a file
  556.       min. left) Main Board Command?;d^M
  557.       Filename to Download (Enter)=none?;file.arc^M
  558.  
  559.       downloads "file.arc"
  560.       ;D/L file.arc
  561.       Press (Enter) to continue;^M
  562.  
  563.       goodbye
  564.       min. left) Main Board Command?;g^M
  565.  
  566.       give hangup command
  567.       ;a-H Y
  568.  
  569.       execute another script
  570.       ;a-Q MyBBS.SCR
  571.  
  572.       The following is an example of a script that connects to
  573.       CompuServe through the DataPac network.
  574.  
  575.       ;ECHO  Logging in to CompuServe.  Please wait...
  576.  
  577.       send "..." when connected
  578.       ;...^M
  579.  
  580.       send node id number when the word DATAPAC is received
  581.       DATAPAC;P 12345678^M
  582.  
  583.       CompuServe Information Service
  584.       Host Name:;CIS^M
  585.  
  586.       insert your user ID
  587.       User ID:;12345,6789^M
  588.  
  589.       send password from dialing directory
  590.       Password:;a-P
  591.  
  592.       check for mail or whatever
  593.       Enter choice!;5^M
  594.       etc, etc.
  595.  
  596.       See the included file QCOM.SCR for more examples on scripting.
  597.  
  598.       Note: When saving a script, QCom saves every line of incoming text on
  599.       which the user is prompted for input AND which is terminated with a
  600.       carriage return ( by pressing the ENTER key).  Any line that prompts
  601.       the user and does not require the ENTER key to be pressed, will NOT
  602.       be saved in the script.  Such lines would have to be manually typed
  603.       into the script with a text editor.
  604.  
  605.  
  606.    MAKING A SCRIPT Continued...
  607.  
  608.       In order to use a script automatically, put the name of the
  609.       script file in the SCRIPT column in the Dialing Directory.
  610.       One way to create a new script is to capture a session and then
  611.       edit it to conform to the above format, using the semicolons to
  612.       separate incoming and outgoing text.  Any unnecessary text can be
  613.       deleted from the capture file (such as news bulletins, etc.).
  614.       Rename the file using ".SCR" as the extension in your script
  615.       filename.
  616.  
  617.    COMMANDLINE SCRIPTS:
  618.  
  619.       Commandline scripts allow you to start Qcom, dial a number, transfer
  620.       files, hangup and end Qcom automatically.
  621.  
  622.       To create such a COMMANDLINE script, run Qcom, press ALT-S before
  623.       going into the Dialing Directory .  Enter the name of your script, 
  624.       and proceed to step the program through the whole dialing and 
  625.       connection procedure.  Qcom will save your commands as well as the 
  626.       text coming in and going out.
  627.  
  628.       To execute this script from the commandline use:
  629.  
  630.       "QCom /SMyScript.scr"
  631.  
  632.       The "/S" tells QCom that the following is the name of a script to
  633.       execute. You must use the full script filename.
  634.       When a script is executing you will see an upper case "S" on the
  635.       Status line.  To stop script execution at any time, press ESC.
  636.  
  637.       Note:
  638.       When your script dials a directory entry that has another script
  639.       specified, the second script will be ignored.  You can, however,
  640.       call another script by using the ALT-Q command.
  641.       (eg. ";a-Q ANOTHER.SCR").
  642.  
  643.    SCRIPT COMMANDS:
  644.  
  645.       Most Script commands consist of shorthand for the keystrokes
  646.     you would use when manually running QCom.  The ALT-Key commands
  647.       that QCom understands can be entered into a script with  ";a-"
  648.       followed by the letter you wish to use. Eg. ALT-P would be ";a-p".
  649.       Upper or lower case will work.
  650.  
  651.       Exceptions: ALT-- (ALT-Minus) and ALT-= cannot be saved or executed
  652.     in a script.
  653.  
  654.  
  655.  
  656.    SCRIPT COMMANDS CONTINUED...
  657.  
  658.       The following are script commands that may be manually added to
  659.       scripts.  These are NOT included in Saved scripts.
  660.  
  661.       "ANY"     - used to send a given response to text that is received
  662.                 repeatedly.
  663.                 eg. ;ANY Press any key;^M   Whenever "Press any key" is
  664.                 received, a carriage return will be sent. This will remain
  665.                 in effect until the ANY command is used again in the script
  666.                 to specify new incoming text.
  667.                 eg. ANY
  668.                 This effectively "turns off" a previous ANY command. QCom
  669.                 will no longer respond to the previously specified incoming
  670.                 text.
  671.  
  672.      "DEBUG ON" -used in script debugging
  673.                 The Status line shows which line of incoming text the 
  674.                 script is waiting for. This allows you to compare a script 
  675.                 line to actual received text to check for spelling errors 
  676.                 or typos in cases where a script is not working properly.
  677.                 Pressing ALT-V during a debug session will load your script
  678.                 into your editor so you can make corrections on the fly.
  679.  
  680.      "DEBUG OFF" -used to turn off the debug function.
  681.  
  682.      "ECHO"    - used to print text on the local screen.
  683.                 eg. ";ECHO Please wait. Auto Logon in progress..."
  684.                 Text can be colorized and positioned on screen
  685.                 using ANSI escape codes.
  686.  
  687.      "LOG"     - will save date, hostname, start time and duration
  688.                of calls in optional specified filename. If no log file
  689.                is specified, QCom defaults to "USAGE.LOG".
  690.                eg. ";LOG CIS.LOG"  could store a log of calls to
  691.                CompuServe. Also provided is a utility to total the
  692.                durations of calls, named QTT.EXE. Usage: QTT LogFile.
  693.  
  694.      "WAIT"    - will pause the execution of a script for a specified
  695.                number of seconds.  Eg. ";WAIT 5"  will pause everything
  696.                for five seconds.  Do not pause for too long if you expect
  697.                to have incoming data during this time.  Hitting any key
  698.                will terminate a pause and continue the script.
  699.  
  700.      "DOS"     Allows you to shell to Dos and execute batch files or
  701.            whatever.  Use the /WAIT switch after the commandline if
  702.            you wish to pause the display before returning to QCom.
  703.              eg:
  704.            ;DOS vampire.bat /WAIT
  705.  
  706.  
  707.  
  708.    SCRIPT COMMANDS CONTINUED...
  709.  
  710.       "ASK"    Used to get user input from the keyboard.  This will display
  711.              your "User Prompt" in a box and wait for user input.  When  
  712.                the user presses Enter, QCom will compare the user's input 
  713.                to the text in "Answer". If it is the same then the script 
  714.                will go to the "Label". Otherwise the script will continue 
  715.                with the next line. Use commas to separate the prompt, 
  716.                answer and label. 
  717.  
  718.              Usage: ;ASK User Prompt ,Answer,Label 
  719.              eg:
  720.              ;ASK Download your mail? (Y/N) ,Y,DownLoad Mail
  721.              ;GOTO No Download
  722.                 :DownLoad Mail
  723.              ;...
  724.  
  725.       "GOTO"   To branch to another part of the script.
  726.              eg:
  727.             ;GOTO Label 1
  728.              or...
  729.              When this text is received;GOTO Label 2
  730.  
  731.       "CALL"   To go to another part of the script and execute until the 
  732.                RET (Return) command is encountered. It returns to the line 
  733.                following the Call. Calls can be nested 255 levels.
  734.              eg:
  735.               When this text is received;CALL Label 3
  736.              or...
  737.               ;Call Label 3
  738.              ;END
  739.     
  740.              :Label 3
  741.               Look for this text;send something^M
  742.              ;RET
  743.  
  744.       "RET"    As above, used to return from a CALL. A RET must not be 
  745.                executed unless a CALL has been executed first. RET cannot 
  746.                be used with GOTO.
  747.              Usage: ;RET
  748.  
  749.       "T/O"    Timeout for incoming text.  A given timeout value will apply 
  750.                to any script line waiting for incoming text which follows 
  751.                the T/O command. 
  752.            To enable timeout use: ;T/O Seconds
  753.              To disable timeout use: ;T/O 0
  754.     
  755.            Example:
  756.               ;T/O 10
  757.              Wait for text for 10 seconds;Send if received before 10 secs                        
  758.                Otherwise wait for this for 10 seconds;...etc.
  759.            Disable timeout
  760.              ;T/O 0    
  761.     
  762.  
  763.    SCRIPT COMMANDS CONTINUED...
  764.  
  765.       "END"    Used to stop script execution.
  766.              eg:
  767.              ;END
  768.              or...
  769.              When this text is received;END    
  770.  
  771.       The following are script commands that may be manually added to
  772.       scripts.  These ARE included in Saved scripts.
  773.  
  774.       "DIAL"    -dials the entry specified. Eg. ";DIAL CompuServe"
  775.       "U/L"     -uploads the specified file Eg. ";U/L Myfile.Zip"
  776.       "D/L"     -downloads the specified file Eg. ";D/L Myfile.Zip"
  777.       "BREAK"   -sends a BREAK signal to the host Eg. ";BREAK"
  778.  
  779.    Labels:
  780.     Like labels in batch files, a label is preceded by a colon and can
  781.     consist of one or more words or numbers.  No semi colon is used as
  782.     in other script lines.
  783.     eg:
  784.     :Label 1
  785.     :Label 2
  786.  
  787.  
  788.       In a QCom script, the semicolon is all important. It divides each
  789.       line into incoming and outgoing text. Lines beginning with a semi-
  790.       colon are commands that QCom will execute (such as an ALT-Key
  791.       command).
  792.       Also note that only the first semicolon is used as a divider.
  793.       Subsequent semicolons are treated as regular text.
  794.  
  795.       Any line of text in a script with no semicolon or colon is ignored 
  796.     by QCom and can be used as a comment line for clarification when 
  797.       viewing or editing the script.
  798.  
  799.       Script execution takes place only in the terminal screen. If your
  800.       script executes something like ALT-B (ScrollBack) or ALT-Z (Help),
  801.       manual input will be necessary to return to the terminal screen to
  802.       continue script execution.
  803.  
  804.  
  805.     FINAL NOTE ON SCRIPTS:
  806.  
  807.       When saving a script, incoming phone noise may be saved during a
  808.       session and will have to be edited out before using the script.
  809.       It's wise to double-check a newly created script for any unwanted
  810.       characters.  Any pure text editor can be used to edit or create a
  811.       script file.
  812.  
  813.  
  814.  
  815.  
  816.  
  817.    TROUBLE SHOOTING:
  818.  
  819.       Symptom:  "Cannot initialize Com Port x" error message. (x = 1 to 4)
  820.       Meaning of error message: Qcom cannot find the Com Port that is
  821.       specified in the configuration file (QCom.CFG).
  822.       Possible causes:
  823.       1. Error in configuration file.  The number specified there does not
  824.          match the Com Port used by the modem.
  825.       2. Hardware problem.  Two or more devices are configured for the same
  826.          Com port or the Com port specified is not installed.
  827.          Check that there is no conflict in hardware interrupt settings.
  828.          If two serial devices attempt to use the same Interrupt (IRQ)
  829.          setting chances are, neither will work. Typical settings would be:
  830.  
  831.                            Com1 using IRQ 4, at I/O 3F8h
  832.                            Com2 using IRQ 3, at I/O 2F8h
  833.                            Com3 using IRQ 4, at I/O 3E8h
  834.                            Com4 using IRQ 3, at I/O 2E8h
  835.  
  836.  
  837.       3. Software conflict. A memory resident program that ties up the Com
  838.          port has been previously executed and has not been deinstalled.
  839.          Carbon Copy is an example of such a program.
  840.  
  841.       Symptom: "Modem not responding"
  842.       Meaning of message: Modem did not respond with "OK" within the
  843.       alotted time.
  844.       Possible causes:  See the following:
  845.  
  846.       Symptom: Modem does not dial out.  Modem does not receive some/all
  847.       commands sent by QCom.
  848.       Possible causes:
  849.       1. Baud rate specified in the configuration file is too high for the
  850.          modem.
  851.          Set the default baud rate to your modem's fastest speed.  Modem
  852.          will send back an "OK" when you initialize the modem (Alt-M) if
  853.          all is well.
  854.       2. External modem is not powered up or not connected properly.
  855.  
  856.       3. Possible hardware conflicts with another installed serial device.
  857.          Internal modem has been improperly installed or configured.
  858.  
  859.       4. Modem initialization or dialing prefix strings are incorrect.
  860.          Refer to the Modem instruction manual for the correct strings for
  861.          your modem.
  862.  
  863.  
  864.  
  865.    TROUBLE SHOOTING Continued...
  866.  
  867.       5. Modem is incorrectly configured.  Refer to modem manual and set
  868.          modem dip switches or NVRam for the following:
  869.          a) Modem must track the actual state of DCD (Carrier) and not be
  870.             forced.
  871.          b) Modem should track DTR and not be forced.
  872.          c) Modem MUST send back verbal result codes such as "OK" or
  873.             "CONNECT", etc.
  874.  
  875.       6. See the following
  876.          Symptom:  QCom status line says "Online" even when not.
  877.          Cause:
  878.          Modem Carrier Detect line is forced on.  This MUST toggle on or 
  879.          off depending on the actual Carrier state.  This is set with a 
  880.          modem dip switch or a command sent in the initialization string.  
  881.          Refer to the modem manual.  Edit the initialization string if 
  882.          necessary and use Alt-M to manually send the string to the modem.  
  883.          Or toggle the Carrier detect dip-switch if present.
  884.          Many modem factories typically set this to default to always on.
  885.          One result of this is QCom will prompt you whether you want to
  886.          initialize the modem at start-up which is an unnecessary annoyance
  887.          (the prompt is necessary in the instance where QCom is used as a
  888.          dumb terminal attached directly to another machine).
  889.  
  890.  
  891.          Symptom: Pressing Alt-M to re-initialize the modem gets back 
  892.          "ERROR" from the modem.
  893.          Cause:
  894.          The modem initialization string (line six in the QCom.CFG file)
  895.          contains command(s) that the modem does not understand.  Or, the
  896.          command string is too lengthy.  Refer to the modem manual and 
  897.          remove any command not found in the manual.  Long initialization 
  898.          strings can be broken up into two sections with "^M~~~AT" inserted 
  899.          about halfway.
  900.  
  901.          Symptom: QCom reports "Unable to find DSZ.COM or DSZ.EXE"
  902.          Cause:
  903.          DSZ.COM or DSZ.EXE are not found in the default directory (the 
  904.          same directory as QCom) or in the search path.  Put DSZ into 
  905.          correct directory.
  906.  
  907.  
  908.  
  909.  
  910.     ONLINE SUPPORT BBS:
  911.  
  912.          To obtain further help, or for the latest update of Qcom, you
  913.          can call the support BBS:
  914.  
  915.          ************************************************
  916.          *   Programmer's Oasis, Ph.  1-204-943-0114.   *
  917.          *   (watch for a new phone number in Sept./92) *
  918.          ************************************************
  919.  
  920.        
  921.          When calling in, login as a new user with your full name and
  922.          password of your choice. After answering a few questions you
  923.          will be given the opportunity to go into the QCom area.
  924.          Once there you will have 30 minutes to send or receive messages
  925.          and download files.  Questions about QCom should be directed
  926.        to the author, not the Sysops.
  927.  
  928.          Sysops Brian Lowe and Bernie Minuk are to be commended for
  929.          all their effort and enthusiasm in setting up and maintaining
  930.          this support area on their BBS.  Thanks guys, for doing an
  931.          outstanding job.
  932.  
  933.       DISCLAIMER:
  934.  
  935.       This software is provided "as is" without warranty either express or
  936.       implied.  The user assumes all responsibility in determining its'
  937.       usefulness and or fitness for any purpose, and assumes all risks and
  938.       liabilities including damages for loss of business profits, business
  939.       interruption, or loss of business information arising from the
  940.       operation of this software.
  941.  
  942.  
  943.  
  944.  
  945.  
  946.                **************************************************
  947.                               QCOM REGISTRATION
  948.  
  949.                    If you use QCom,  please register it.  This
  950.                  software is the result of a great deal of time
  951.              and effort.  Please support its' continued development
  952.                            and the Shareware concept.
  953.  
  954.        To add incentive, those who register will be shown how to utilize
  955.           the user defineable functions.  Users can pre-define other
  956.          external protocols, for example, and access them with a single
  957.                                   keystroke.
  958.  
  959.                 The one-time registration fee is a modest $20.00.
  960.                To receive a copy of the absolute latest version on
  961.                  disk, send an additional $5.00 to cover cost
  962.                  of disk, packaging and mailing.  Specify disk
  963.                     size desired and your current version.
  964.              A quick mailer is provided in the file called Register.
  965.  
  966.                         Send a check or money order to:
  967.  
  968.                                 RTFM  Software
  969.                                206-215 Watson St.
  970.                               Winnipeg, Mb. Canada
  971.                                     R2P 2E1
  972.  
  973.               Your comments, questions, suggestions and bug reports
  974.                  are always welcome whether or not you register.
  975.          Drop me a note, leave a message on CompuServe I.D. 72361,3117.
  976.       Or, leave a message on Programmer's Oasis BBS, Ph.  1-204-943-0114.
  977.                 **************************************************
  978.  
  979.  
  980.  
  981.  
  982.