home *** CD-ROM | disk | FTP | other *** search
/ Current Shareware 1994 January / SHAR194.ISO / modem / smtv11.zip / SMT.DOC < prev    next >
Text File  |  1993-09-30  |  49KB  |  927 lines

  1.   [S]cript [M]odem [T]erminal Copy(c)right 1993, Gary Raymond, New Orleans, La.
  2.         ═╡▓▓╞═ A Multi Purpose Batch and Script Driven Terminal ═╡▓▓╞═
  3.                  ▓▒░ Script Modem Terminal Registration ░▒▓
  4.                          Order your Registered Copy
  5.                             $19.00 plus $1 ship
  6.                                   Today!
  7.  
  8.                                Gary Raymond
  9.                                  POB 8184
  10.                           New Orleans, La.  70182
  11.                            (504) 288 6550 voice
  12.  
  13.       SMT Ver 1.1  Release Date: Oct 1st, 1993
  14.       ===========
  15.       [S]cript [M]odem [T]erminal is a multi function script driven
  16.       communications terminal with built in TTY,ANSI emulation. SMT is
  17.       designed for a wide variety of unusual applications. SMT is
  18.       configurable to use ANY serial port paired to ANY IRQ line. SMT
  19.       will work with ANY baud rate (as long as the baud speed is
  20.       supported by your modem) and ANY standard line settings. SMT
  21.       requires less than 40k of memory and is therefore ideal for many
  22.       of the older, slower single drive PC's. Most of SMT's unique
  23.       functions can be totally automated through the use of innovative
  24.       script files that can be loaded from a simple batch file.
  25.  
  26.       Example Uses:
  27.       Calling the NBS atomic clock and setting your PC's internal clock.
  28.               This can now be totally automated from your PC's autoexec
  29.               file if desired or necessary.
  30.  
  31.       Calling your Alpha Numeric Pager and dispatching a text message.
  32.               Quit paying high rates to your paging vendor for dispatching
  33.               text messages to your Alpha Numeric Pager.
  34.  
  35.       Calling Public and Private Library databases in Schools and Colleges.
  36.               Great for schools etc. to connect with the Library databases
  37.               of larger Universities and Colleges as well as numerous
  38.               Municipal or Public Libraries providing on-line services.
  39.  
  40.       Calling your favorite BBS to check for new files and saving the info.
  41.               Script Terminal comes with our own external EZProtocol
  42.               engine and is therefore able to do fully automatic Zmodem
  43.               downloads from your favorite BBS. EZP also supports X,Y
  44.               and SeaLink protocols in addition to Zmodem.
  45.  
  46.       Calling any on-line BBS such as BloomUnit or Channel One that sends
  47.               ANSI BBS Music to amuse your children. Yes, SMT can decode
  48.               and play ANSI BBS Music too!
  49.  
  50.       The things Script Modem Terminal can do are only limited by your
  51.       imagination and ability to use a text editor or word processor.
  52.  
  53.       Aside from having all the power derived from using an interrupt
  54.       driven (ISR) serial interface, SMT has many other features
  55.       normally only found in full blown terminal packages. Some of these
  56.       features include the TIME LOGGING of calls, session ACTIVITY
  57.       LOGGING, complete script control and EXECUTION of EXTERNAL dos
  58.       commands, including dos APPLICATIONS, utilities, file transfer
  59.       capability, DOORWAY terminal mode, and COLOR configurability if
  60.       desired.
  61.  
  62.       SMT can also be used as a powerful feature packed communications
  63.       terminal too! You can try this immediately by loading one of four
  64.       sample "terminal ONLY" script (SMT1.STF) files we provide. (use
  65.       1,2,3 or 4 depending on your active COM port). To load SMT with a
  66.       script file directly from the dos command prompt, type "SMT
  67.       SMT1.STF" (assuming COM1). Or, for truly automated operation, load
  68.       via a batch file (the preferred method). Four sample script files
  69.       for loading SMT as a basic terminal are included. They are
  70.       SMT1.STF through SMT4.STF. SMT1 will activate COM port 1 (3F8)
  71.       using IRQ4 and so on. For any non standard pairing of port address
  72.       and irq lines, it will be necessary to edit one of the sample .STF
  73.       files to meet your exact requirments, or you may create new ones.
  74.       It is also considered good operating practice to make sure there
  75.       is a DOS PATH assigned to the directory you have located all of
  76.       the SMT files.
  77.  
  78.       CONTENT of SMT2.STF (included and preset to COM2 [2F8], IRQ3)
  79.       ---------------------------------------------------------------------
  80.       2F8&              >3F8/2F8/3E8/2E8/3220/3228/4220/4228/5220/5228 hex
  81.       IRQ3|             >IRQ2/IRQ3/IRQ4/IRQ5/IRQ6/IRQ7/IRQ8/IRQ9
  82.       2400~             >300/1200/2400/4800/9600/12000/14400/16800/19200/57600
  83.       8N1+              >8N1,8N2,7E1,7E2,7O1,7O2,7M1,7S1 (data/parity/stop)
  84.       ComOn=            >must have to activate the above port settings
  85.       48"               >set background color to cyan, foreground to black
  86.       CLR_              >clear the screen and set the new colors
  87.       AT&C1&D2V1X4S0=0  >sample of modem initialization string
  88.       OK@               >waits for OK response from modem before proceeding
  89.       SIGNAL$           >rings bell to signal completion of script
  90.       END#              >end script (end command is optional but nice)
  91.  
  92.  
  93.       REMEMBER: If you are using either a non standard port address or
  94.       interrupt (IRQ) request line, you will also need to edit an
  95.       existing .STF file or create a new one. If you already have a
  96.       favorite text editor, it can be used to create or modify script
  97.       files. If you do not have a basic text editor, PED.EXE (Pro Editor
  98.       - my shareware editor is included in this archive). The dos
  99.       COPY CON directive can also be used to create text files as
  100.       a last resort if necessary.
  101.  
  102.       The content of DT.BAT (used to load and run SMT as a basic
  103.       ansi terminal using COM2 at 2F8/IRQ3 is:
  104.  
  105.       SMT SMT2.STF M
  106.  
  107.       The letter "M" is an optional 2nd parameter switch that activates
  108.       an internal music function to plays an old Air Force tune "Off we
  109.       go, into the wild blue yonder..." for the three seconds the
  110.       opening screen is displayed. Remove the "M" switch to Stop the
  111.       music, add the "M" parameter to hear it play. Also note that the
  112.       opening screen, SMT.WEL can be edited to your requirements or
  113.       eliminated if you have no use for it. If you re edit the file to
  114.       suit your own special needs, keep it under 24 lines, otherwise it
  115.       will scroll off the screen. The same internal music decoder
  116.       automatically captures and plays ansi bbs music when it is
  117.       transmitted from the host along with regular ansi screen graphics.
  118.       Toggling ansi off will also toggle off the ansi music decoder.
  119.  
  120.       =============================================
  121.       SMTV11.EXE Self UnPacking Archive contents:
  122.       =============================================
  123.       SMT      EXE               Script Terminal program
  124.       SMT      DOC               DOCUMENTATION
  125.       READ     COM               Self displaying DOCS (use via Alt-V in STM)
  126.       SMT      WEL               WELcome file (SMT opens with this) *optional
  127.       SMT      HF1               Help File 1 (how to run)           *optional
  128.       SMT      HF2               Help File 2 (Hot key info)         *optional
  129.       PED      EXE               Text Editor for Script Files
  130.       PED      DOC               Documentation for text editor.
  131.       EZP      EXE               EZProtocol Engine for X,Y and Zmodem
  132.       EZP      DOC               EZProtocol Doc file
  133.       SMT1     STF    Samples    Run SMT as basic terminal: COM1,3F8,IRQ4
  134.       SMT2     STF      ""       Run SMT as basic terminal: COM2,2F8,IRQ3
  135.       SMT3     STF      ""       Run SMT as basic terminal: COM3,3E8,IRQ4
  136.       SMT4     STF      ""       Run SMT as basic terminal: COM4,2E8,IRQ3
  137.       NBSCLK   STF      ""       Script file to call NBS and set time
  138.       ANPAGE   STF      ""       Script file to call Alpha Numeric Pager
  139.       COMPUSER STF      ""       Script file to call CompuServe
  140.       EXECPC   STF      ""       Script file to call EXECPC BBS in Milwaukee
  141.       TULANE   STF      ""       Script for Tulane University's Library Dbase
  142.       NOPUBLIB STF      ""       Script for N.O. Public Library System Dbase
  143.       R1       BAT               sample batch to load SMT automatically COM1
  144.       R2       BAT               sample batch to load SMT automatically COM2
  145.       R3       BAT               sample batch to load SMT automatically COM3
  146.       R4       BAT               sample batch to load SMT automatically COM4
  147.       ZR       BAT               used by SMT to do auto Zmodem downloads
  148.       UTIL     BAT               used by SMT to run any external program
  149.       COLOR    EXE               Color Palet you can use to pick color value
  150.  
  151.      *SMT      TYM               User date/time logging file
  152.      *SMT      LOG               Session log capture file
  153.  
  154.      *created dynamically by program at runtime
  155.      ___________________________________________________________________
  156.  
  157.  
  158.  
  159.      CHECKING YOUR PC FOR ACTIVE SERIAL PORTS
  160.      ----------------------------------------
  161.      SMT has built in serial diagnostics that can be used to pre test
  162.      your PC's RS232 serial ports for activity, type "SMT TESTPORT" at
  163.      the dos prompt. You will then receive a diagnostic report similar
  164.      to the following:
  165.  
  166.               Port 1 (COM1 address 3F8 hex) responding!
  167.               8250 UART detected!
  168.               UART set at 2400 Baud.
  169.               Port 2 (COM2 address 2F8 hex) responding!
  170.               16550 FIFO UART detected!
  171.               UART set at 1200 Baud.
  172.  
  173.       The test will echo what standard IBM default ports are installed,
  174.       what baud they are presently set for, and what type of UART chip
  175.       is installed in your serial card(s). Note: The presence of a UART
  176.       by itself does not mean there is a modem connected to it. It might
  177.       be for a mouse or other serial device. This test assumes the
  178.       following com addresses: COM1=3F8, COM2=2F8, COM3=3E8, and COM4=2E8.
  179.      -------------------------------------------------------------------
  180.  
  181.  
  182.  
  183.      STATUS LINE, LINE 25, appearing at the bottom of SMT's main screen.
  184. -------------------------------------------------------------------------------
  185. COM=2F8  IRQ3 Baud=57600 Line=8N1 Script=TERM     Date: 9/26/93 ->   ExitScript
  186. -------------------------------------------------------------------------------
  187.      The status line is fairly easy to interpret. All of the serial        ^
  188.      parameters set by your script are echoed on the left side starting    |
  189.      with the hex address of the com port. In the center, you can see      |
  190.      the name of the script file presently running followed by the PC      |
  191.      date. On the extreme right hand side is the STATUS WINDOW. Here you   |
  192.      will see various messages appearing from time to time as things       |
  193.      dynamically change in the terminal environment. This window is  ------
  194.      also used when you invoke the Alt R hot keys to enter a new script
  195.      to load and run.
  196.  
  197.  
  198.       Hot Key   Operational function
  199.       ========================================================================
  200.       Alt A  >  Toggle Ansi color/graphic display on or off.
  201.       Alt B  >  Send the Modem a break signal.
  202.       Alt C  >  Clear the terminal screen.
  203.       Alt D  >  Drop to Dos
  204.       Alt E  >  Set CON to Echo keystrokes.
  205.       Alt H  >  Hang Up the phone line (Drop DTR)
  206.       Alt J  >  Run external UTIL.BAT (run utility or external protocol)
  207.       Alt L  >  Toggle Log capture file on or off.
  208.       Alt M  >  Toggle HangUpDelay (one or five seconds)
  209.       Alt P  >  Toggle Line Printer (LPT1) on or off.
  210.       Alt R  >  Run a Script file
  211.       Alt S  >  load Script Editor (PED.EXE)
  212.      *Alt T  >  Toggle TimeLog record keeping
  213.       Alt V  >  View/Read Doc File (or any file called READ.COM or READ.EXE)
  214.       Alt X  >  Exit/Quit Terminal and return to dos.
  215.       Alt Z  >  Show Hot Keys (this screen)
  216.       Alt =  >  Toggle DoorWay Mode (causes term to precede the sending of the
  217.                                      key scancode with a null character).
  218.  
  219.       Special use keys:
  220.       ------------------------------------------------------------------------
  221.       <Esc> Key     Aborts active script operation.
  222.       Space Bar     Jumps to next script command
  223.       Ctrl Break    Aborts entire program (crash exit - last option)
  224.       Ctrl Home     Diagnostic monitor mode performs no translation on
  225.                     incoming bytes, displays on screen as raw character
  226.                     data.
  227.       ========================================================================
  228.  
  229.      * The logging of calls [to the SMT.TYM file] (normally on) can be
  230.        deactivated by setting a third "X" parameter on the command line
  231.        or in a batch that runs SMT. Example: To stop both music and time
  232.        logging, the command prompt should look similar to this:
  233.        SMT MYOWN.SFT X X
  234.  
  235.        To have music but NO time logging:
  236.        SMT MYOWN.SFT M X
  237.  
  238.        To have music with timlogging:
  239.        SMT MYOWN.SFT M
  240.  
  241.        To have NO music but with timlogging:
  242.        SMT MYOWN.SFT
  243.  
  244.     SCRIPT OPERATION:     Activated via the command parameter line.
  245.     -------------------------------------------------------------
  246.  
  247.     What is a script language?
  248.     -----------------------------------
  249.     To facilitate many automatic modes of operation, Script Modem
  250.     Terminal uses a very friendly, yet powerful SCRIPT capability that
  251.     can, among other things, provide fully automatic logon's to your
  252.     favorite BBS or network service. This is a great convenience for
  253.     those power users (or lazy people too) who logon for mail and new
  254.     file checks every day. There are currently thirty two SCRIPT
  255.     commands that cover most all general communications requirements!
  256.  
  257.     What kind of file contains the script commands?
  258.     -----------------------------------------------
  259.     A simple ascii text file.  Each command must be delimited by a crlf
  260.     pair (in other words, placed on separate lines!) in the ascii script
  261.     file. Any text or ascii editor can create or modify .STF files
  262.     including the dos COPY CON function.
  263.  
  264.     Can anyone learn a script language?
  265.     -----------------------------------
  266.     If you have avoided using a SCRIPT language in the past because you
  267.     either did not have the time to figure it all out, or thought using
  268.     scripts was too complicated, STOP!  SMT MicroScrpt is for you! Yes,
  269.     SMT's new MicroScrpt method is designed with the laymen in mind! I
  270.     guarantee you can learn the basic concepts in less that five
  271.     minutes, no more time than it takes to read this section! Using
  272.     SMT's Micro Scrpt commands is rather intuitive. For anyone with even
  273.     minor programming skills it is child's play. But, even if you are
  274.     completely new to programming, there is very little technically that
  275.     needs to be learned.
  276.  
  277.     Here is the gist of basic script programming. After your modem
  278.     connects to a host (BBS etc), it begins to receive characters and is
  279.     capable of sending characters through the modem and phone line. The
  280.     characters received through the modem (that are originating from the
  281.     host), wind up either printed on your PC screen or sent to a file on
  282.     one of your disk drives, or both.  This depends upon your prior
  283.     instructions or the terminal programs default setup options.
  284.     Characters sent out (or transmitted by you) either originate from
  285.     your keyboard, a file you are uploading to the host or a SCRIPT!
  286.     Your script also instructs the modem on what string of characters
  287.     to be on the lookout for before proceeding with additional tasks.
  288.  
  289.     How does a script file actually work?
  290.     -------------------------------------
  291.     The basic scenario goes like this. You log on and wait for the host
  292.     to prompt you for your name at which time you send it. The prompt
  293.     (as on CIS) may be as simple as "Name:" (without the quotes). So
  294.     what the script needs to look for is a match of characters equaling
  295.     "Name:". The command "Name:@" causes the terminal to wait until it
  296.     receives an exact match, character for character - case tested,
  297.     before proceeding with the next script instruction which will of
  298.     course be the sending of your name (also the next line in script)
  299.     "Gary Raymond!". This will normally be followed by a prompt from the
  300.     host again asking for your password (or in the case of CIS
  301.     [CompuServe]) your "User ID:" which you in turn wait for with "User
  302.     ID:@" on the following line of your script; again followed on
  303.     another line by "70613,3165!" (my CIS userid). By now you should be
  304.     getting a good picture of how this basis operation works.
  305.  
  306.     Additional script commands can be used to set the line parameters of
  307.     the modem with parity, data length, stopbit and baud before dialing
  308.     out with a standard Hayes dialing string. You can also signal,
  309.     capture the screen, invoke delays, turn on the log file, upload and
  310.     download among the fifteen commands. Sample .SSF files are included
  311.     in the archive for connecting with CompuServe and EXECPC. With a
  312.     little study and effort, you will soon be writing your own script
  313.     files. Welcome to the beginning of programming!
  314.  
  315.     Once your script is written, your first task will be to test it for
  316.     correctness of operation and fix any bugs.  The end of this section
  317.     has information on using SMT's built in debug cmnd. It is a good
  318.     idea to keep your script files located in the same directory that
  319.     you have placed SMT.EXE. This is because SMT first looks there
  320.     before looking elseware. You can Abort a script at any time by
  321.     pressing the <Esc>ape key. When a script is running, all keyboard
  322.     keys are inactive except for the Escape and Space key. To prevent
  323.     endless loops occurring from unanticipated prompts coming from the
  324.     host, an automatic timeout default will send the host a carriage
  325.     return if nothing happens for ninety seconds after the last script
  326.     command. You can override the default value of ninety seconds by use
  327.     of the script timeout override command [/] (Example: "15/" changes
  328.     the timeout value to fifteen seconds). Experience will dictate the
  329.     circumstances when you will want to use this function.
  330.  
  331.     How do you begin to write a script?
  332.     -----------------------------------
  333.     Assuming you have already looked over the sample script files that
  334.     came with the archive package and have read the documentation up to
  335.     this point, you are ready to take the next step. To write your first
  336.     script file, you need a simple ascii editor such as PED.EXE that we
  337.     provide. If you have a favorite editor that you are already familiar
  338.     with, so much the better. You will save a little time bypassing the
  339.     learning curve associated with using a text editor. The suggested
  340.     method to start coding a script file for a particular system is to
  341.     first run SMT in the regular terminal mode (as explained in the
  342.     first paragraph) and then manually dial the targeted system, and
  343.     wait for a CONNECT with SMT's log file capture option "toggled on"
  344.     (via Alt-L). Assuming you have used this host service before and are
  345.     therefore familiar with it, logon and manually navigate through the
  346.     various prompts until you arrive at the location you wish your
  347.     script to leave you. This will record (in SMT.LOG) all the necessary
  348.     prompts that the host sends and that you in turn must respond to.
  349.     Most users just want to use a script to do the essential rituals of
  350.     setting baud, parity, dialing the remote, passing user name and
  351.     password. Once you have captured this session into the log file,
  352.     hangup and return to dos. The proper method would be using Alt-H
  353.     followed by Alt X.  I suggest renaming the log file (SMT.LOG) to a
  354.     file handle (name) of your choice and adding the .STF extension. Now
  355.     it will be necessary to do a doing a little trimming and soon the
  356.     old log file can be converted into a script file.
  357.  
  358.     Triming the file will consist mostly of eliminating blank lines
  359.     and shortening prompts (to just a few key characters that cannot be
  360.     missunderstood for any other intermediate prompts) and adding the
  361.     correct command tails to the remaining prompts and replies etc.
  362.  
  363.     The key insights to understanding a SMT script file can best be
  364.     realized by examining the actual script files printed down below.
  365.     First, here is a summary of SMT's MicroScrpt commands.
  366.  
  367.     NOTE: The tilde character cannot be actually shone in this text
  368.           because it is a cmnd character for the text display engine.
  369.  
  370.     Code  [explanation]                               Example
  371.     ___________________________________________________________________
  372.     [&] = COM PORT expressed in hexadecimal --------> 3F8&
  373.     [|] = IRQ Line expressed as a decimal   --------> 4|   (IRQ4| optional)
  374.     [tilde] = Change Baud Rate                        300[tilde]
  375.     [+] = Reset Data,Parity & Stopbit                 8N1+
  376.    *[=] = Activate above rs232 settings               ComOn=
  377.     [*] = wait x second  (1000 = 1 second) ---------> 1000* (use milliseconds)
  378.     [!] = send a string out port                      ATDT288-6550!
  379.     [@] = Wait Until (look for incoming string match) UserID?@
  380.    *[$] = sound a signal                              SIG$
  381.    *[%] = hangup or drop carrier                      HANGUP%
  382.    *[-] = Tog local Echo                              ECHON-
  383.    *[#] = mark end of script (optional)               END#
  384.     [/] = Set escape delay time in whole seconds      10/
  385.     [:] = Run External program                        Q.EXE:
  386.    *[?] = Wait for KeyPress                           WAITKEY?
  387.    *[_] = Clear the screen                            CLR_
  388.    *[^] = Toggle auto det/ANSI ON/Off                 TOGANSI^
  389.    *[.] = Exit script if carrier dropped              NCEXIT.
  390.    *[`] = Quit SMT (return to DOS)                    QUIT`
  391.     [,] = load second script file in case BUSY        NEW.STF,
  392.     [>] = send control code (byte) out port           13>   (send carr return)
  393.     [<] = trap control code (byte) from port          27<   (wait on escape)
  394.    *[{] = Wait until no carrier or keypress           NOCARRIER{
  395.    *[}] = Wait until carrier or keypress              CARRIER}
  396.    *[(] = Activate DOS Time Setting function          GETIME(
  397.    *[;] = Your local GMT Offset in hours              GMTOFF=5;
  398.    *[)] = Debug Script                                DEBUG)
  399.    *[[] = Interactive Hotkey reply no/cr)             YESNO[
  400.    *[]] = Interactive String reply w/cr               MYREPLY]
  401.     ["] = Terminal color setting                      31"
  402.     [\] = Toggle Log File and pass file handle        MYLOG.LOG\
  403.  
  404.     ---------------------------------------------------------------------
  405.    *These commands can actually be preceded by your own preferred
  406.     mnemonic memory word as the characters preceding the command do
  407.     nothing more than carry the command and act as code comments.
  408.  
  409.     All Scripts should terminate with the [#] end command or the [`]
  410.     quit command on the last line in order to properly return control to
  411.     the terminal keyboard or exit to dos.
  412.     ---------------------------------------------------------------------
  413.  
  414.     Setting Terminal Screen color:
  415.     ==============================
  416.     The ["] quotation symbol is the color setting command character. Use
  417.     the COLOR.EXE palet utility that came with the archive package to
  418.     pick the background foreground color combination. Example: From the
  419.     palet you will note that the attribute value for a Blue background
  420.     with bright White letters is decimal 31. Next, when editing your
  421.     script file, enter 31" on a line at the top of the script, all by
  422.     itself. Its that easy!
  423.  
  424.     SMT FAQ
  425.     ---------
  426.     What happens if a number is BUSY while using a script?
  427.     ------------------------------------------------------
  428.     An automatic re dial on BUSY has been incorporated into all releases
  429.     from V6.5. This re dial function is tied to the timer dropout trigger
  430.     (default 90 seconds). Meaning that if you do not override the 90
  431.     second default, the re dial will stop after a minute and a half if a
  432.     CONNECT is not achieved. If you wish to allow the modem to sit and
  433.     dial longer, use the set timer command [/] to adjust the timer up or
  434.     down accordingly. Example: If you wish the re dial to continue for 10
  435.     minutes, use "600/" on the line preceding the dial command string
  436.     in your script file. (600 seconds = 10 minutes). CAUTION: Remember
  437.     to reset the timer to 90 seconds (original default) or whatever you
  438.     require.
  439.  
  440.     You may chain one script to another in the event of a BUSY or NO
  441.     CARRIER modem reply. To chain a script, add the next script file
  442.     name on the line BEFORE you place the modem dial string. Example:
  443.  
  444.     etc etc
  445.     NEXTSTF.STF,
  446.     ATDT*70,1-504-288-6550!
  447.     etc etc
  448.  
  449.     SMT will remember the chained file and if the number continues to
  450.     ring busy past the time allotted for re dials (90 sec is the default)
  451.     the next script will begin to run. It is entirely possible to
  452.     chain several (as many as you want) files into a loop that will
  453.     operate until you stop it. To form a chain loop simply have the
  454.     very last script file calling the very first again.
  455.  
  456.     NOTE: A NO DIALTONE modem replies will cause the script file to
  457.     disengage and return to terminal mode automatically. This usually
  458.     indicates your phone line has become disconnected or went dead.
  459.  
  460.  
  461.  
  462.  
  463.     SAMPLE's of STF Files Included in this package
  464.     ----------------------------------------------
  465.     NBSCLK.STF                                Script to set DOS TIME from NBS
  466.     ============                              atomic clock.
  467.     String + Code               Explanations:
  468.     ================================================================
  469.     GMTOFF=5;                 > set your local time offset from GMT
  470.     2F8&                      > COM2
  471.     IRQ3|                     > IRQ3
  472.     1200~                     > set baud
  473.     8N1+                      > set line
  474.     ComOn=                    > initialize port
  475.     100*                      > delay one tenth a second
  476.     AT&D2B1%C0N0&Q6!          > send modem initialization string
  477.     OK@                       > wait to confirm modem got it ok
  478.     100*                      > delay a bit
  479.     ATDT*70,1-202-653-0351!   > dial number of NBS
  480.     GOTCARRIER}               > wait for carrier before proceeding
  481.     UTC@                      > wait for UTC prompt
  482.     GETIME(                   > activate SMT TimeSet function
  483.     SIGNAL$                   > signal when through
  484.     END#                      > return control to terminal
  485.     -----------------------------------------------------------------
  486.  
  487.     ANPAGE.STF                                Script to send AN Pager message
  488.     ============                              AN = Alpha Numeric Script Pager
  489.     String + Code               Explanations:
  490.     ================================================================
  491.     2F8&                      > set your port
  492.     IRQ3|                     > set your IRQ
  493.     300~                      > ALL AN pager hardware uses 300 baud ONLY!
  494.     7E1+                      > ALL AN pager (IXO)    uses 7E1 line settings
  495.     ComOn=                    >
  496.     AT&D2%C0B1N0&Q6&W!        >
  497.     OK@                       >
  498.     300*                      >
  499.     ATDT1-301-000-0000!       > dial Vendors hardware (not pager itself)
  500.     CONNECT@                  > wait for 300 baud CONNECT
  501.     100*                      > delay a bit
  502.     13>                       > send a carriage return
  503.     100*                      > delay a bit
  504.     13>                       > send second carriage return
  505.     ID@                       > wait until system request ID
  506.     M!                        > then send M for manual or id number if used.
  507.     RETURN.@                  > wait for prompt to send PIN number
  508.     12345678!                 > send PIN number
  509.     RETURN.@                  > wait for prompt to send message, then send
  510.     Joe, this message sent by our new SMTV11 software, Gary!
  511.     RETURN.@                  > wait for prompt for next PIN Number
  512.     HANGUP%                   > then hangup
  513.     SIGNAL$                   > send signal all is finished
  514.     END#                      > and return to terminal.
  515.     -----------------------------------------------------------------
  516.  
  517.     EXECPC.SSF                               Script to logon to EXECPC BBS
  518.     ============                             and check for new files.
  519.     String + Code               Explanation:
  520.     ================================================================
  521.     2F8&                      > set port address in hex (must be on line one)
  522.     IRQ3|                     > set Interrupt Request line (must be line two)
  523.     14400~                    > set baud (line three)
  524.     8N1+                      > set line parameters (line four)
  525.     ComOn=                    > now initialize serial port as instructed
  526.     ATV1X4&C1&D2%C0N0&Q6&W!   > send your modem initialization string
  527.     100*                      > wait a moment for modem to swallow
  528.     OK@                       > look for OK from modem
  529.     100*                      > wait a moment for modem to swallow
  530.     ATDT*70,1-414-789-4375!   > dial the number
  531.     CONNECT 14400@            > wait for CONNECT message before proceeding
  532.     ? (y/N) ->@               > wait for this prompt
  533.     N!                        > then send "N"
  534.     RST name ->@              > wait for this prompt requesting your first name
  535.     Gary!                     > then send it
  536.     AST name ->@              > wait for request for last name
  537.     Raymond!                  > then send it
  538.     Password ->@              > wait for request for password
  539.     xyzxyzxy!                 > then send it
  540.     updates) ->@              > wait for request to read bulletins
  541.     N!                        > say N for No
  542.     ?=HELP) ->@               > wait for main menu
  543.     F!                        > say (F)iles
  544.     ?=HELP)->@                > wait for files directory menu
  545.     A!                        > say A for Mahoneys directory
  546.     BEEP$                     > beep that your there
  547.     END#                      > leave the script and enter terminal mode
  548.     -----------------------------------------------------------------------
  549.  
  550.     TULANE.STF                                   Script to logon to Tulane
  551.     ============                                 University's Public Library
  552.     String + Code               Explanation:     System in New Orleans.
  553.     ================================================================
  554.     2F8&                      > By now you should have the gist of
  555.     IRQ3|                     > the repetitive set up commands so I
  556.     1200~                     > will advance down to more specifics....
  557.     7E1+                      > Log into VAX at 7E1
  558.     ComOn=                    >
  559.     100*                      >
  560.     AT&D2B1%C0N0&Q6!          >
  561.     OK@                       >
  562.     100*                      >
  563.     ATDT*70,865-5088!         >
  564.     CONNECT 1200@             >
  565.     1000*                     >
  566.     13>                       >
  567.     D,E,F):@                  >
  568.     C!                        >
  569.     SERVICE?@                 >
  570.     LIBRY!                    >
  571.     CONNECTED@                > after leaving VAX
  572.     13>                       >
  573.     100*                      >
  574.     8N1+                      > reset line to 8N1
  575.     100*                      >
  576.     13>                       >
  577.     AL TYPE:@                 >
  578.     VT100!                    > use VT100 for closest compatability with ANSI
  579.     BEEP$                     >
  580.     END#                      > go on to do your research............
  581.     -----------------------------------------------------------------------
  582.  
  583.  
  584.     NOPUBLIB.STF                                 Script to logon to the New
  585.     ============                                 Orleans Public Library
  586.     String + Code               Explanation:     System in New Orleans.
  587.     ================================================================
  588.     2F8&                      > REMEMBER...you must adjust these first
  589.     IRQ3|                     > two line to match your modem if necessary
  590.     1200~                     >
  591.     8N1+                      >
  592.     ComOn=                    >
  593.     100*                      >
  594.     AT&D2B1%C0N0&Q6!          > and this string too!
  595.     OK@                       >
  596.     100*                      >
  597.     ATDT*70,595-8930!         > add 1-504- if out of Louisiana
  598.     CONNECT 1200@             >
  599.     login:@                   >
  600.     nopline!                  >
  601.     mulation :@               >
  602.     3!                        >
  603.     100*                      >
  604.     (Y/[N]) ->@               >
  605.     N!                        >
  606.     BEEP$                     >
  607.     END#                      > you are now in.....do your thing.
  608.     -----------------------------------------------------------------------
  609.  
  610.  
  611.     COMPUSER.STF                                 Script to logon to
  612.     ============                                 CompuServe Network
  613.     String + Code               Explanation:
  614.     ================================================================
  615.     2F8&                      > change if required to your port
  616.     IRQ3|                     > your IRQ
  617.     300~                      > your desired baud speed
  618.     7E1+                      > keep this line setting
  619.     ComOn=                    >
  620.     100*                      >
  621.     AT&D2B1%C0N0&Q6!          > use your modem string
  622.     OK@                       >
  623.     100*                      >
  624.     ATDT*70,734-8150!         > use your local CIS node
  625.     CONNECT@                  >
  626.     1000*                     >
  627.     13>                       >
  628.     Name:@                    >
  629.     CIS!                      >
  630.     User ID:@                 >
  631.     70613,3165!               > use your userid, not mine
  632.     Password:@                >
  633.     ABCD!                     > use your cis password, not this bogus one
  634.     BEEP$                     >
  635.     END#                      > your in CIS!
  636.     -----------------------------------------------------------------------
  637.  
  638.     NOTE:     TWO things may require altering timing values and or
  639.               choices of other wait state commands or modem set up
  640.               strings. One: the clock speed of your PC's CPU and Two:
  641.               the specific model modem you have installed. HINT: The
  642.               modem initialization string in any pre existing AND
  643.               functional communications program will probably also work
  644.               in SMT. After trying a pre functional modem string, if you
  645.               are still having problems, call or e-mail me with all the
  646.               particulars.
  647.  
  648.  
  649.     ANOMALIES:
  650.     ==========
  651.     If for any reason you find a command character as the last character
  652.     of a necessary search string, just add it twice. Examp: "countx@@"
  653.  
  654.     Occasionally there are some circumstances when the use of string
  655.     replies are inappropriate for the circumstances. A typical example
  656.     occurs when you try to log on to the TeleNet system at 2400 baud
  657.     with the required "@D" attention string. Various factors, prior to
  658.     the network switching to the Display Terminal Mode (via Terminal
  659.     type = D1) require slight delays or pauses in between the required
  660.     network command characters. So whereas the string "@D!" wont work,
  661.     sending the required two characters plus a carriage return with a
  662.     slight pause in between both characters will work.
  663.  
  664.     EXAMPLE: The following five lines of code beginning at line three
  665.              will replace the "@D" string. Note that the characters must
  666.              be expressed in their ascii decimal character value
  667.              equivalent. (this facilitates the sending of certain non
  668.              printable control codes like ctrl c etc.) For a complete
  669.              listing of ascii characters with their decimal and hex
  670.              values, refer to your dos manual.
  671.  
  672.  
  673.     ATDT000-0000!
  674.     CONNECT 2400@
  675.     64>                |    @ = dec 64
  676.     100*               |    delays are expressed in milliseconds
  677.     68>                |    D = dec 68
  678.     100*               |    hence 100 equals one tenth of second pause
  679.     13>                |    a carriage return equals dec 13
  680.  
  681.     If you want to send a control code to the host, the [>] command
  682.     requires the preceding control code value to be in decimal form.
  683.     Check your dos manual for additional information.
  684.  
  685.     Examples:
  686.     ---------
  687.     13>   will send a carriage return
  688.     32>   will send a space
  689.     24>   will send Ctrl-X
  690.     3>    will send Ctrl-C
  691.     etc.
  692.     ---------------------------------------------------------------------
  693.     to send the equivalent of Alt-B, first send a null, then the scancode.
  694.     0>    null
  695.     48>   scan code for Alt-B
  696.     ---------------------------------------------------------------------
  697.  
  698.     TROUBLE SHOOTING
  699.     ----------------
  700.     Putting "DEBUG)" on the first line of a script (or on any line you
  701.     wish to begin debuging from) will echo the script commands to the
  702.     monitor AS THEY EXECUTE. This will allow you to follow the progress
  703.     of a script as it carries out each command. More importantly is
  704.     allows you to see visually where trouble spots and hangups may be
  705.     located. If you typo'ed and or used an invalid command character,
  706.     DEBUG will also inform you of that as well. Remember, no matter how
  707.     poorly your script is designed, you can always break out of most bad
  708.     situations with the <Esc>ape key. In addition to the Escape Key, a
  709.     tap to the Space bar will cause the script operation to jump to the
  710.     next command while looking for a string match that, for whatever
  711.     reason, is not occuring. Every effort was made to design SMT's
  712.     script operation as intuitive and user friendly as possible. As
  713.     usual, your comments and suggestions are solicited.
  714.  
  715.  
  716.     NOTICE: All modems are NOT created equal! Ninty Nine.Nine percent of
  717.     any problems you experience will NOT be with this software! The
  718.     reason I can make this claim with certainty is that this product has
  719.     been in use in various educational facilities around the south for
  720.     several years as a custom product. I have decided to release it as
  721.     shareware because many colleges and universities are now allowing
  722.     the tax payers access to their various information databases,
  723.     including their Library files. This program is intended to be used
  724.     by the ordinary "access hungry" public who want completely automated
  725.     communication features, not the typical hobbiest and or avid
  726.     Telecommunicator who likes driving his modem directly.
  727.  
  728.     If you experience a problem getting SMT to work as claimed I will be
  729.     happy to help you iron out glitches that have known work arounds.
  730.     But, I cannot make your non standard modem conform to either Hayes,
  731.     Bell or CCITT standards. I cannot eliminate your modems
  732.     supseptability to line noises (spikes etc). I cannot make your new
  733.     fancy high speed modem work at 300 baud if that speed was not
  734.     supported by design [300 baud only is used by the Telocator IXO
  735.     Alpha Numeric Pagers]. You should also be aware that the overall
  736.     proformance difference between 2400 baud modems made over two years
  737.     ago and those made today are the differences between acceptable
  738.     performance and NO performance at all. GOOD current state of the art
  739.     hi tech 2400 baud modems can be bought today for under $30. There is
  740.     no reason not to upgrade if you have a serious need to use SMT.
  741.  
  742.     If you have a reasonable decent, noise free modem and still
  743.     experience some glitches, most of it will probable be related to
  744.     timing constraints between the speed of your PC's cpu and that of
  745.     your UART's (modems) response time. These types of problems can
  746.     generally be solved by adjusting and or placing timing delays of
  747.     various types at particular places in your script file. Example:
  748.     Typical problem; after setting up the modems port and sending the
  749.     modem initilazation string, the first letter of the string gets
  750.     lost! Solution: Place a small delay of say one hundred milliseconds
  751.     between the ComOn= command and the string [100*], then another
  752.     longer delay between the string and the first wait for "OK" [1000*].
  753.     Bottom line, you will have to tinker a bit with some hardware no
  754.     matter how state of the art it is.
  755.  
  756.  
  757.                    Site Licensing Script Terminal Software
  758.                    --------------------------------------
  759.                    Policy Effective Date:  July 1st, 1993
  760.  
  761.      Attractively priced site licensing is available for commercial
  762.      users of SMT Terminal. Pricing for "typical" site licensing is
  763.      forthcoming in this document. If you have needs which are not met
  764.      by the standard license terms as outlined below, please call or
  765.      write for a quote which addresses any unique support or custom
  766.      product requirements. Special corporate customization is available
  767.      on a PUR contract basis.
  768.  
  769.  
  770.                              Upgrade Policies
  771.                              ----------------
  772.  
  773.      There are no upgrade charges presently associated with SMT software
  774.      and I do not have any plans at present to institute such charges
  775.      with future revisions.  I do reserve the right to change this
  776.      policy however, if in my sole opinion the nature and magnitude of
  777.      SMT changes to such a degree as to constitute a substantially new
  778.      product. For users unable to obtain access to current versions of
  779.      SMT software via the electronic bulletin boards (my normal means of
  780.      distribution), I currently charge a nominal fee of Five Dollars for
  781.      supplying upgrades or current releases on diskette. On original
  782.      registrations, the shipping and handling fee for the most current
  783.      release on diskette is only One Dollar. I plan to continue this
  784.      practice for the foreseeable future. This upgrade disk fee is
  785.      subject to change without notice, however, to accommodate postage,
  786.      printing, and other price increases.
  787.  
  788.  
  789.                             TECHNICAL SUPPORT
  790.                             -----------------
  791.  
  792.      Registered Users: Full technical support is available to registered
  793.      users of SMT software.  I have found that the most effective
  794.      product support can be delivered through the electronic services
  795.      listed below.
  796.  
  797.           Technical Support:
  798.           ----------------------------------------
  799.           E-mail Gary Raymond @
  800.  
  801.           CompuServe User ID#      70613,3165
  802.           This Board BBS           (504) 887-0051
  803.           EXECPC BBS               (404) 789-4210
  804.  
  805.  
  806.      If any of these options are not open to you, I also offer full
  807.      product support through the US mail, or, if the problem absolutely
  808.      cannot wait, my voice telephone (no collect calls please). I will
  809.      do my best to resolve any software bugs in a timely manner and I am
  810.      always open to suggestions of new features or changes which are
  811.      appropriate to the nature of the product.
  812.  
  813.      Non registered users: I will attempt to respond to software trouble
  814.      reports made by non registered users if the problems concern the
  815.      general functionality of the program.  Such users should not,
  816.      however, expect product support beyond initial aid in determining
  817.      whether the program is suitable for their needs.
  818.  
  819.      IF YOU HAVE A PROBLEM:  I ask that, before calling or writing, you
  820.      take the following steps:
  821.  
  822.      1)   Read the documentation.  We all sometimes approach a piece of
  823.      software with preconceived ideas about how it should work which may
  824.      not correspond to how it actually does work.  (Of course, I'm
  825.      interested in your input if you have this sort of experience.)
  826.  
  827.      2)   See if you can duplicate the problem with the original,
  828.      unmodified version of SMT Terminal.  (You do still have an
  829.      original, unmodified backup version, don't you?)
  830.  
  831.      3)   If you're still having problems, please make a note of a) your
  832.      PC hardware (processor, memory on board, drives etc) the operating
  833.      system software and version number; b) your modem manufacturer and
  834.      model number as well as the modem initialization string you are
  835.      using. SMT is a very configurable program and, unfortunately, one
  836.      of the down sides of this configurability is that user-defined
  837.      settings can sometimes interact in unexpected ways.  Finally, item
  838.      c) the sequence of actions which lead to the error.  If I can't
  839.      reproduce the problem, it will be very difficult to correct, so
  840.      your help is vital in isolating the problem.
  841.  
  842.      If you follow these steps, it will help me to solve your problem in a
  843.      more efficient and timely manner.
  844.  
  845.  
  846.      ---------------------
  847.      General Site Licenses
  848.      ---------------------
  849.  
  850.      Site Licenses are available for SMT Terminal.  The rates below
  851.      are for a "basic" site license.  This includes a single corporate
  852.      registration code for the specified number of copies and technical
  853.      support to one authorized corporate individual.
  854.  
  855.      $19            1       regular registration with disk and file docs.
  856.      --------------------------------------------------------------------
  857.      $15            2-5     registrations as outlined above.
  858.      $12            6-9     ""
  859.      $10            10-19   ""
  860.      $8             20-29   ""
  861.      $6             30-99   ""
  862.      $5             100 up  ""
  863.      --------------------------------------------------------------------
  864.      Unlimited      $2,500  ""
  865.  
  866.      The above schedule means that the first copy is $19, the 2nd
  867.      through 5th copies are $15, and so forth.  (The exception is the
  868.      Unlimited License, which represents the Total license cost for any
  869.      number of same company and or corporate site installations.)  This
  870.      Unlimited License shall include customers who deal direct with the
  871.      licensed corporation as long as they are so involved. The Unlimited
  872.      License shall not be deemed to convey any authority or licensing to
  873.      resell, wholesale or retail SMT Terminal Software to other
  874.      companies, corporations or individuals.
  875.  
  876.      SMT Terminal is currently licensed by a wide range of companies
  877.      and government agencies.  I'd like to see you on that list!
  878.  
  879.      LIMITED LICENSE:
  880.      ================
  881.      You are hereby granted a limited license to use SMT for the next
  882.      ten days, after which you are required to send your Nineteen Dollar
  883.      registration (plus one dollar shipping) to continue operating
  884.      Script Modem Terminal. The advantages of Registration are 1) You
  885.      receive the latest registered release which eliminates any opening
  886.      and closing advertisements. 2) You will be entitled to friendly
  887.      telephone support at no additional charge. 3) You will be eligible
  888.      for all future upgrades free of upgrade charges. This shareware
  889.      demonstration version is FULLY operational and NOT crippled in any
  890.      fashion.
  891.  
  892.  
  893.  
  894.      Name     ____________________________________
  895.  
  896.      Address  ____________________________________________________________
  897.  
  898.               ____________________________________________________________
  899.  
  900.               ____________________________________________________________
  901.  
  902.      Phone    (_____)_____-______
  903.  
  904.      Where did you get SMT from:
  905.  
  906.      BBS / Service Name ______________________ Number (_____)_____-______
  907.  
  908.  
  909.      SMT   Registration w/ diskette & file docs   $ 19.00 each  $ _______
  910.              Shipping (postage/ups) and handling    $  1.00       $ _______
  911.                                                     Total         $ _______
  912.  
  913.      (the basic registration fee includes product support, a diskette with
  914.       the latest release and all associated files and file documentation).
  915.  
  916.  
  917.      To register, please return this form with your registration check or
  918.      money order. Or, for additional information, contact:
  919.  
  920.                              Gary Raymond
  921.                               P.O.B. 8184
  922.                          New Orleans, La. 70182
  923.                            Ph: (504) 288-6550
  924.                          CompuServe: 72561,2637
  925.  
  926.                                  EOF()
  927.