home *** CD-ROM | disk | FTP | other *** search
/ ProfitPress Mega CDROM2 …eeware (MSDOS)(1992)(Eng) / ProfitPress-MegaCDROM2.B6I / BBS / MISC / PHOMAST6.ZIP / PHOMAST.DOC < prev    next >
Encoding:
Text File  |  1991-03-14  |  32.0 KB  |  793 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.                                      PHOMAST.DOC
  9.  
  10.                                     Michael R. Ash
  11.                            CompuServe Account: 71350,3327 
  12.  
  13.  
  14.           This is the latest in a series of updates to PHOMAST.T scripts
  15.           designed to get you up and running utilizing the power of
  16.           Professional-YAM or ZCOMM.  For performance and clarity I have
  17.           moved my opening remarks and instructions about setting up this
  18.           script into this file called: -> PHOMAST.DOC <-  The PHOMAST.T
  19.           file is a pure ASCII file for View and Editing.  Items below tell
  20.           you all you need to know to get up and running *FAST*.
  21.  
  22.           New features of this update include fully automated menu
  23.           configuration, autospeed detection, and lots of slick coding
  24.           examples... When run for the first time this script will generate
  25.           a new file called 'PROFILE.DAT' containing specific configuration
  26.           information that in the past you used to have to know and write
  27.           into the script with an editor in advance before using YAM or
  28.           ZCOMM.  Now when you enter 'yam' or 'zcomm' at the DOS prompt,
  29.           the script will ask you a few questions to set up the
  30.           configuration to include COM port identification and modem
  31.           initialization, and you are ready to communicate immediately
  32.           thanks to the power of the script language built into YAM and
  33.           ZCOMM!.  
  34.  
  35.           I have included comments throughout the PHOMAST.T script to help
  36.           you understand the fascinating and comprehensive script language
  37.           included in YAM and ZCOMM.  In fact, important instructions are
  38.           covered in both the phones file as well as this document.  Any
  39.           information in the PHOMAST.T script that follows a colon (:) mark
  40.           is not read/used by YAM or ZCOMM since it is interpreted as a
  41.           comment.  When you are instructed to un-comment a line it means
  42.           to load the script into an editor and delete the colon at the
  43.           start of the line so the program can use it.
  44.               
  45.           When ZCOMM is loaded it looks in the C:\ZCOMM subdirectory by
  46.           default for a file called PHOMAST.T  -=-  When YAM is loaded it
  47.           looks in the root for a file called PHONES.T (you could rename
  48.           PHOMAST.T to PHONES.T and put it in the root but there are a
  49.           couple of better ways to handle this). The simplest and most
  50.           flexible method is to use the DOS 'set phones' command (shown
  51.           below) to tell YAM/ZCOMM where to find its phones file.  Another
  52.           method is to have PUTSNP.EXE (the serial number installing
  53.           program) change the default location of the phones files.      
  54.               
  55.                            set PHONES=c:\zcomm\phomast.t   
  56.            
  57.  
  58.  
  59.  
  60.                                                                     Page: 1
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.           PHOMAST.DOC                                           Michael Ash
  74.  
  75.  
  76.  
  77.           The line above can be added to your AUTOEXEC.BAT file to tell YAM
  78.           where to look for its phones file.  ZCOMM users won't need to use
  79.           this line unless they want to have PHOMAST.T in another directory
  80.           since it is already the default location for ZCOMM.  The phones
  81.           file (PHOMAST.T) gives YAM/ZCOMM directions on how you want the
  82.           package to operate.
  83.                   
  84.           For those of you that haven't heard of YAM, it's the short name
  85.           for Professional-YAM, a commercial package that includes all of
  86.           ZCOMM (its shareware subset) plus advanced capabilities for
  87.           professional telecommunications requirements.     
  88.               
  89.                 
  90.                             ------------------------------
  91.               
  92.                                   --- Background ---
  93.  
  94.           When YAM/ZCOMM is first loaded it looks for a 'phones file' and
  95.           starts reading instructions at a label called 'setup:' telling
  96.           the package exactly how to operate in your system environment. 
  97.           YAM/ZCOMM is a communication environment, a tool, that utilizes
  98.           instructions found in the phones file.  It is the phones file
  99.           (this case PHOMAST.T) that is read by YAM/ZCOMM and instructions
  100.           found there are executed very much like the line by line commands
  101.           carried out in a UNIX script or a DOS BATCH file.  Basically YAM
  102.           or ZCOMM is the airplane and your phones script is the pilot the
  103.           flies the plane.
  104.  
  105.           PHOMAST.T (this phones file) is completely modular and includes a
  106.           simple HOST mode example.  Both Professional-YAM and its
  107.           shareware subset ZCOMM offer a powerful communication
  108.           environment.  Unfortunately, as with any powerful package there
  109.           is usually a steep learning curve involved.  I have worked with
  110.           the environment and generated this starter script with full
  111.           documentation to assist users at all levels in tapping the power
  112.           of this environment.  I say communication environment, because
  113.           unlike most other packages, Chuck Forsberg provides the
  114.           programming language tools you can use to build a powerful
  115.           command driven communication package you can configure to
  116.           function the way you do business, not how someone else thinks you
  117.           ought to work.
  118.  
  119.                                 --- Configuration ---
  120.  
  121.           If you want to modify the basic script, use an ASCII editor.  I
  122.           have included an editor in PHOMAST6.ZIP called Colorado State
  123.  
  124.  
  125.  
  126.                                                                     Page: 2
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.  
  137.  
  138.  
  139.           PHOMAST.DOC                                           Michael Ash
  140.  
  141.  
  142.  
  143.           Editor (CSE) version 3.10 developed by J. R. Applegate at the
  144.           Colorado School of Mines.  This full featured and configurable
  145.           editor is only 13K and features block copies, moves, case change,
  146.           deletes, etc.  Best of all it's PUBLIC DOMAIN!  
  147.  
  148.           QEdit on the other hand is one of the best fully configurable
  149.           shareware editors around.  Remember if you use Word Perfect in
  150.           DOS Text mode or Word Star in non-document mode, be sure to set
  151.           the margins to support a 132 character document to avoid word
  152.           wrap of long script lines.  To save time, if changes are
  153.           required, just SEARCH for sections marked with the symbol <*>. 
  154.           These changes are optional and NOT required to run the package in
  155.           most cases.
  156.  
  157.              1.  Under COLORS, you may select the alternate screen colors. 
  158.           These will be automatically set by the menu configuration and
  159.           only need to be changed if you don't like the default colors... 
  160.           To see the possible colors and their associated code numbers,
  161.           from the command line prompt enter: 'gosub color' and hit return.
  162.  
  163.              2.  Under MODEM SETUP, if your modem doesn't respond correctly
  164.           to the defaults, just select another modem setup string.  Again a
  165.           default modem string is already configured and will work in most
  166.           cases if your modem accepts the Hayes command set.
  167.  
  168.           YAM or ZCOMM once loaded reads the script (like a BATCH file in
  169.           DOS) to determine how it is to operate in your specific
  170.           configuration.  Any changes you make to the phones script
  171.           (PHOMAST.T) will change the way the package works for you.  
  172.  
  173.           YAM or ZCOMM is a 'command-line driven' package meaning you just
  174.           give it commands and it does the work.  You don't have to go
  175.           through menus unless you want to.  At the YAM/ZCOMM prompt, many
  176.           DOS and UNIX commands work. For example 'cls' clears the screen,
  177.           'dir' gives a directory (as does 'ls'), 'cd' will change
  178.           directory, 'cdd' changes both drive and directory.  I'm sure
  179.           you'll enjoy this direct approach.  To execute a DOS command at
  180.           the prompt just precede it with a '!' (e.g. !copy fileA fileB). 
  181.           At the YAM/ZCOMM prompt you can recall past commands using the up
  182.           arrow key and edit the command line at that point since YAM/ZCOMM
  183.           keeps a history of what you have entered.  The ESC key will clear
  184.           the command at the command line.
  185.  
  186.                                --- Getting On-Line ---
  187.  
  188.           To DIAL a number just enter the phone number at the YAM prompt
  189.  
  190.  
  191.  
  192.                                                                     Page: 3
  193.  
  194.  
  195.  
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202.  
  203.  
  204.  
  205.           PHOMAST.DOC                                           Michael Ash
  206.  
  207.  
  208.  
  209.           followed by a ';t' telling it to go into terminal mode (meaning
  210.           go into the mode to talk to the other computer).  For example: 
  211.           (F9=Menu) c:/yam-> 434-5566;t  calls the phone number and once
  212.           connected puts you on line. If you want to hang up and exit the
  213.           session at any time just hit F1 to get back to the command line
  214.           and type 'off' and hit return.  Simple!
  215.  
  216.                                 --- File Transfers ---
  217.  
  218.           Downloading files is very easy.  ZModem, Kermit, and CompuServe-B
  219.           will begin a download automatically once host starts sending the
  220.           file.  To send a file up, prepare the host to accept the file by
  221.           selecting a protocol; then hit F9 for the menu or give a command
  222.           at the command line.  For example 'sz filespec' will send a file
  223.           ZModem to a host ready to receive the transfer.  In the F9 menu
  224.           you will see shortcut keys defined (e.g. F4=ASCII Upload,
  225.           F6=ZModem Upload, F7=CRC-XModem download etc.)  ASCII upload is
  226.           convenient for uploading pre-written ASCII messages.
  227.  
  228.                            --- What do I *REALLY* need ---
  229.  
  230.           To use this environment you only need YAM.EXE or ZCOMM.EXE, the
  231.           main communication program, and a phones file (PHOMAST.T) to tell
  232.           it how to act with your equipment and tastes.  Set up a
  233.           subdirectory called 'C:\ZCOMM' (using the DOS 'MD ZCOMM'
  234.           command), then place YAM.EXE or ZCOMM.EXE with the phones file
  235.           (PHOMAST.T) and help files if you want them there.  Call the
  236.           package with the COMM.BAT file or setup your own BATCH file.  If
  237.           you are using YAM or have the PHOMAST.T file somewhere other then
  238.           in the \ZCOMM subdirectory, remember to include the DOS command:
  239.           'set phones=c:\zcomm\phomast.t' in your AUTOEXEC.BAT file.  Once
  240.           it is edited into your AUTOEXEC.BAT, activate it by typing the
  241.           command 'AUTOEXEC' at the DOS prompt.
  242.  
  243.           When you first run the program with PHOMAST.T it will ask you
  244.           whether you have a PULSE dial (the older rotary type phone or
  245.           push button phone that clicks when it dials) or a TONE dial (the
  246.           push button phones that uses tones to do all the dialing).  After
  247.           you make that choice if you have to add numbers to get an outside
  248.           line for all your calls (as with a PBX system) you can have it
  249.           put that '9' or whatever numbers in for you.  Next it will look
  250.           at your hardware and try to find what COM port you have your
  251.           modem hooked to.  Make SURE your modem is ON for this test,
  252.           otherwise you will have to tell the script what COM port is used.
  253.  
  254.                                  --- Extra Stuff ---
  255.  
  256.  
  257.  
  258.                                                                     Page: 4
  259.  
  260.  
  261.  
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268.  
  269.  
  270.  
  271.           PHOMAST.DOC                                           Michael Ash
  272.  
  273.  
  274.  
  275.           The following may be added to your AUTOEXEC.BAT file if you want
  276.           colors in your 'flash-up' help processor to match the default
  277.           colors.
  278.  
  279.           set PHONES=c:\zcomm\phomast.t   (YAM needs this particular line)
  280.           set NORMATTR=31                 (sets normal attribute)
  281.           set REVATTR=26                  (sets reverse attribute)
  282.           set UNDLATTR=31                 (sets underline attribute)
  283.  
  284.           This example expects to find YAM.EXE or ZCOMM.EXE and PHOMAST.T
  285.           in C:\ZCOMM.  Remember a ':' before a line makes it a comment in
  286.           script file.  This will activate OR deactivate lines of code.  To
  287.           turn something OFF just put a ':' in front of the line.  Words
  288.           starting in column #1 that end with a ':' are considered to be
  289.           labels...  
  290.  
  291.           To activate menu status or make a call from DOS command line
  292.           (assuming you are using ZCOMM.EXE) enter the command:
  293.  
  294.                     zcomm gosub menu  <-- or -->  zcomm call cis 
  295.  
  296.           The example on the left will bring a menu up when ZCOMM is
  297.           loaded; and the example on the right will load ZCOMM and then
  298.           call CompuServe...  This can be either via a batch file or
  299.           directly as a DOS command.  Note you can call any label in any
  300.           script file using:
  301.  
  302.                             zcomm call label.[path][file]
  303.                             zcomm gosub label.[path][file]
  304.  
  305.           If no path or file is included, the phones file is searched for
  306.           that specific label.
  307.  
  308.           Auto-log demos are set for local San Antonio numbers...  These
  309.           numbers may differ in your area and require an area code of
  310.           (512).  BNF is an example of an auto-log to a WildCat(tm) BBS,
  311.           whereas Olde Guard is an example of an auto-log to a TComm(tm)
  312.           Bulletin Board System.  
  313.  
  314.           A word about how YAM/ZCOMM displays information on the screen
  315.           follows:  Think about YAM/ZCOMM as running on four monitors on
  316.           your desk.  If this were possible you'd see the following from
  317.           left to right on the four different screens: 
  318.  
  319.            |Full-Help|  |Command Line|   |On-Line Mode|   |Circular Buffer|
  320.                  <-- move left with F1   -=-    F2 moves you right -->
  321.  
  322.  
  323.  
  324.                                                                     Page: 5
  325.  
  326.  
  327.  
  328.  
  329.  
  330.  
  331.  
  332.  
  333.  
  334.  
  335.  
  336.  
  337.           PHOMAST.DOC                                           Michael Ash
  338.  
  339.  
  340.  
  341.                                    (F9 = Mini Help)
  342.  
  343.           Now, since you only have one screen, the way you switch between
  344.           the four possible displays is by using the F1 and F2 function
  345.           keys.  Picture F1 as moving you to a screen to the left and F2
  346.           moving you to a screen to the right.  If you were On-Line,
  347.           hitting F1 once would put you into command mode.  Hit F1 again
  348.           and you are in the flash-up help processor.  If you hit F2 from
  349.           On-Line mode (called terminal mode) you move into the circular
  350.           buffer (which you can also access using the PgUp, PgDn, Home and
  351.           End as well).  Hitting F1 puts you back On-Line, and F1 again
  352.           you're back to the command line...  To tell where you are, in
  353.           Full-Help you'll see a help menu, in the command mode you will
  354.           see the command line, when on-line you will see the status line
  355.           at the bottom of the screen and in the circular buffer you will
  356.           see at the bottom of the screen a message "xx.x% Review Cmd?".
  357.  
  358.  
  359.                         --- How to use the Circular Buffer ---
  360.  
  361.           One of the most powerful features of YAM/ZCOMM is the circular
  362.           buffer.  What this does is record your on-line session.  If for
  363.           example something scrolls off the screen (a listing of files
  364.           perhaps) you can pop-up and review it by hitting the PgUp/PgDn,
  365.           Home, End keys, or F2 key if you're on-line.  This takes you into
  366.           a review function where you see a history of what was on the
  367.           screen earlier.  The Home key takes you to the start or top of
  368.           the buffer, the End key takes you to the bottom.  You can tell
  369.           you are in the circular buffer since the bottom line will say
  370.           "x.xx% Review cmd?" showing you where you are in the buffer. 
  371.           Hitting the PgUp/PgDn, Home, End, and arrow keys will move you
  372.           around.  To get back on-line just hit F1 or the Return key.  
  373.  
  374.           You can search and cut info out of the circular buffer.  Say
  375.           there is a message you want to save that's scrolled off the
  376.           screen that talks about 'modems'.  Just hit the Home key to go to
  377.           the top of the buffer, enter the command 's' or '?' to search
  378.           then enter the word 'modems' and hit return.  The line with that
  379.           word will move to the top of the screen.  To cut this info, hit
  380.           't' to mark the Top, then move the messages using cursor keys
  381.           until the bottom of what you want to capture is on the top line
  382.           and hit 'b' for Bottom.  This marks the text.  Now enter the
  383.           command 'w' for Write and YAM/ZCOMM responds: 'Write to file:' 
  384.           To this prompt just enter a file name or 'prn' to send it to the
  385.           printer.  This allows you to cut information that scrolled off
  386.           the screen and save it for later.  You can even 'read' a file
  387.  
  388.  
  389.  
  390.                                                                     Page: 6
  391.  
  392.  
  393.  
  394.  
  395.  
  396.  
  397.  
  398.  
  399.  
  400.  
  401.  
  402.  
  403.           PHOMAST.DOC                                           Michael Ash
  404.  
  405.  
  406.  
  407.           into the circular buffer.  At the command line give the command
  408.           'read filespec' and the file will be put into the buffer.
  409.  
  410.  
  411.                           --- Some useful shortcut keys ---
  412.  
  413.               Alt-1  is DOS shell where you can enter a DOS command
  414.               Alt-2  is YAM/ZCOMM command line where you can enter command
  415.               Alt-D  is current directory contents
  416.               Alt-W  writes open capture file
  417.               Alt-C  closes an open capture file.
  418.               Alt-M  changes keyboard mapping if you have others defined
  419.               Alt-N  NUKE key - aborts whatever process running
  420.               Alt-S  Shows status of running comm package
  421.  
  422.               Alt-Q  once download complete will log you off host.  The
  423.                      string sent by Alt-Q is define by 'set quitcmd' in
  424.                      the script.  To activate, hit Alt-Q once a download
  425.                      is started...
  426.  
  427.               Alt-Z ZAPS a copy of the screen saving it into a file called
  428.                     YAMPIC.  To see the file use the DOS file UNPIC.EXE and
  429.                     give the command UNPIC YAMPIC.  To save the screen as a
  430.                     file use 'UNPIC YAMPIC > filespec' at the DOS prompt or
  431.                     use '!UNPIC YAMPIC' at the YAM/ZCOMM prompt.
  432.  
  433.               Ctrl-Home - Blanks the screen when on-line
  434.  
  435.               F4    -- ASCII Upload (for sending messages prepared offline)
  436.               F9    -- Help Menu
  437.               F10   -- On-Line Manual
  438.               Shift-F6  -- Modify default Configuration / Colors
  439.  
  440.  
  441.           When writing script files the '!' is used for DOS shell and '@'
  442.           used to execute a YAM/ZCOMM command... (e.g. !chkdsk will run
  443.           Check Disk).  That should get you going!  Once you are up and
  444.           running look at the other commented features that will give you
  445.           even more POWER... 
  446.  
  447.                              --- So what are the Menus ---
  448.                
  449.           Once YAM/ZCOMM is loaded, if you hit 'F9' you will see the
  450.           following menu options.  
  451.                
  452.                F3   OPEN Capture file 
  453.  
  454.  
  455.  
  456.                                                                     Page: 7
  457.  
  458.  
  459.  
  460.  
  461.  
  462.  
  463.  
  464.  
  465.  
  466.  
  467.  
  468.  
  469.           PHOMAST.DOC                                           Michael Ash
  470.  
  471.  
  472.  
  473.                F4   Send ASCII Text  (sending messages prepared offline) 
  474.                F5   Send Kermit Upload 
  475.                F6   Send Zmodem Upload <<BEST>> 
  476.                F7   Receive CrcXmodem Download 
  477.                F8   Send CrcXmodem Upload 
  478.                F9   Press for THIS HELP SCREEN 
  479.                F10  On-Line Manual
  480.                
  481.                Alt-1 Get DOS Command prompt 
  482.                Alt-2 Get ZCOMM Command prompt 
  483.                
  484.                Shift-F3  HOLDING Pattern online to keep the other end from
  485.                          timing out and disconnecting.  Basically, the
  486.                          HOLDING Pattern sends a space/backspace to the 
  487.                          host every 2 seconds...
  488.  
  489.                Shift-F4  Use Script Writer to generate your own autologon
  490.                Shift-F6  Change your Modem / Color Configuration 
  491.                Shift-F7  Demonstration of dialing menu DIAL.T
  492.                
  493.                Alt-F1    AutoLog B&F Tech BBS at 2400 baud
  494.                Alt-F2    AutoLog Olde Guard 2400 baud
  495.                Alt-F3    Write and then close opened Capture file 
  496.                Alt-F4    Call CompuServe demo account at 1200 baud
  497.                Alt-F5    Call PC Magazine BBS
  498.                Alt-F6    Force local system into HOST MODE operation
  499.                Alt-F7    Sign your name with a function key 
  500.                ALT-F9    Edit PHOMAST.T SCRIPT  (Note:  You can change
  501.                          this Function Key assignment to use your
  502.                          preferred editor.)
  503.                
  504.               TO CALL OTHER BBSs:  enter 'call name' where name is a label 
  505.  
  506.               To DIAL A NUMBER enter number followed by ';t' For example
  507.               use the format '523-8994;t'
  508.  
  509.               -- CompuServe-B, KERMIT, and ZMODEM download automatic --
  510.                
  511.              Stop Redialing ---- press <CR> Hangup w/o pgm exit - enter 'o'
  512.              To exit program just get to the command line and enter 'off'
  513.                
  514.              Alt-N EMERGENCY EXIT, 'Nuke It' to get command line
  515.                
  516.  
  517.                        ----------------------------------------
  518.  
  519.  
  520.  
  521.  
  522.                                                                     Page: 8
  523.  
  524.  
  525.  
  526.  
  527.  
  528.  
  529.  
  530.  
  531.  
  532.  
  533.  
  534.  
  535.           PHOMAST.DOC                                           Michael Ash
  536.  
  537.  
  538.  
  539.                    --- Specialized Keyboard Mapping information ---
  540.  
  541.           YAM/ZCOMM lets you completely remap the keyboard if you wish. 
  542.           Below is an example of a special application for Digital
  543.           Equipment interface that you could add to a script.  I have
  544.           included the following advanced discussion here to supplement
  545.           normal documentation in case you need to utilize this powerful
  546.           keyboard mapping command.  The bottom line is any that key can be
  547.           mapped to send any character string to the host computer.
  548.  
  549.           Note:  From the YAM/ZCOMM command line you can find the number
  550.           of the key sequence by entering a underline char "_" (underscore
  551.           command) followed by a return...  This will display the key
  552.           sequence strings in a series of 4 numbers.  For example hitting
  553.           the letter 'a' will produce: 30 30 0 0141 (Hitting Ctrl-a
  554.           produces 30 30 4 0001).  The first two numbers are the
  555.           'scancodes' and actually the second number is the best to use
  556.           since it will take into account extended keyboard functions.  The
  557.           third number shows the ShiftState which is actually the numeric
  558.           sum of what other keys are hit with the selected key.  The
  559.           numbers are defined as follows:
  560.  
  561.               0  -  no other key hit with the target key
  562.               1  -  the Right Shift key was held down as the key was hit
  563.               2  -  the Left Shift key was held down as the key hit
  564.               4  -  the Ctrl key held down as key hit
  565.               8  -  the Alt key held down as key hit
  566.  
  567.               16 -  provided the Shift, Ctrl, and Alt key states match,
  568.                     select this mapping regardless of whether the
  569.                     Application Keypad Mode or the Decoded Function Key
  570.                     conditions (below) are true.
  571.  
  572.               32 -  Alternate Keypad Mode (not numeric)
  573.  
  574.               64 -  Decoded Function Key (Character value > 0400 as
  575.                     displayed by _ (underscore) command.
  576.  
  577.               128 - Select this mapping unconditionally 
  578.  
  579.           You can even have specific combinations by summing the keys held
  580.           down.  For example if the ShiftState is 3 this means both Right
  581.           and Left Shift keys held down.  If the number is 14 means the
  582.           Right shift (2), the Ctrl (4) and the Alt (8) key were all held
  583.           down when the key hit (2+4+8=14).  As you can see this gives you
  584.           very specific mapping even taking into account simultaneous use
  585.  
  586.  
  587.  
  588.                                                                     Page: 9
  589.  
  590.  
  591.  
  592.  
  593.  
  594.  
  595.  
  596.  
  597.  
  598.  
  599.  
  600.  
  601.           PHOMAST.DOC                                           Michael Ash
  602.  
  603.  
  604.  
  605.           of multiple keys.
  606.  
  607.           For more information see pg 184 under Terminal Emulation in the
  608.           YAM manual you receive when you register YAM or ZCOMM.  Actual
  609.           keyboard mapping utilizes the command 'mk' with the following
  610.           syntax :
  611.  
  612.                        mk  Scancode  ShiftState  Class  String
  613.           where:
  614.  
  615.               Scancode - Explained above using the '_' function.  Take the
  616.           SECOND number displayed as the scancode to use here.
  617.  
  618.               ShiftState - numeric sum of what other keys are hit as
  619.           explained above.  Special case 128 maps unconditionally as with
  620.           Ctrl Arrow keys... 
  621.  
  622.               Class - determines the type of string to put ahead of your
  623.           selected sting.  This saves you having to enter the 'ESC[' at the
  624.           start of each string for example.
  625.  
  626.               Class 0 in VT mode puts "ESC[" before string
  627.               Class 1 in VT52 mode, ESC is prepended, otherwise "ESC O"
  628.               Class 2 specialized for Keypad, Not mapped in numeric mode
  629.               Class 3 puts just "ESC" before string
  630.               Class 4 nothing is added
  631.  
  632.           Here is a brief example of what you can do...
  633.  
  634.                     mk                    :Clear old mapping
  635.                     display mapkb vt100   :Setup VT100 display
  636.                     pN2                   :Turn off NumLock
  637.                     mk 72 16 0 A          : Up arrow (class=0 sends:ESC[A )
  638.  
  639.                     mk 80 16 0 B          : Down arrow
  640.                     mk 75 16 0 D          : Left arrow
  641.                     mk 77 16 0 C          : Right arrow
  642.                     mk 41 1 0 \d52\d126   : Map rf-Shift-~ sends: ESC[4~
  643.                     mk 41 2 0 \d52\d126   : Map lf-Shift-~ sends: ESC[4~
  644.                     
  645.                     mk 28 4 0 31~         : Ctrl-Enter Insert line Esc[31~
  646.                     mk 21 4 0 32~         : Ctrl-Y delete line Esc[32~
  647.                     mk 115 128 3 OR       : Ctrl-Left move one word left
  648.                     mk 116 128 3 OQ       : Ctrl-Right move one word right
  649.                     
  650.           Example of fKEY mapping...
  651.  
  652.  
  653.  
  654.                                                                    Page: 10
  655.  
  656.  
  657.  
  658.  
  659.  
  660.  
  661.  
  662.  
  663.  
  664.  
  665.  
  666.  
  667.           PHOMAST.DOC                                           Michael Ash
  668.  
  669.  
  670.  
  671.                     set f10 "\E[21~"      : Map F10 to Abort  (ESC[21)
  672.                     set fpgup "\E[6~"     : Map PgUp to previous screen
  673.                     set fpgdn "\E[5~"     : Map PgDn to next screen
  674.                     set fins "\E[2~"      : Map INS key to Esc[2~
  675.                     set bs "@mput \177"   : Map BackSpace key to be Del     
  676.                
  677.  
  678.               The above examples demonstrate that you can do essentially
  679.               anything you want to do...
  680.  
  681.  
  682.           -----------------------------------------------------------------
  683.  
  684.                   <<< Comments below courtesy of Bob Willoughby >>>
  685.  
  686.           This is a "hands-on" script.  It incorporates three "auto logon"
  687.           examples which show how to write an auto logon script.  They
  688.           include auto logons to B&F, Olde Guard BBS here in San Antonio,
  689.           Texas and a demo account area of CompuServe... 
  690.  
  691.           You can generate an autolog script like the ones above using the
  692.           TurboLearn Script(tm) (Shift-F4).  This will actually create
  693.           rough script that you can later refine and add to PHOMAST.T and
  694.           run from there.  Having WildCat, TComm, and CompuServe examples
  695.           to work from lets you see lots of tricks that will help you
  696.           generate other automatic scripts.  They can be made so
  697.           sophisticated that you can completely automate any procedure...
  698.  
  699.           Examples of auto logon scripts may be found in PHOMAST.T and in
  700.           Chuck Forsberg's phone scripts distributed with YAM/ZCOMM.  Other
  701.           examples are included in the file SCRIPTS.ZOO which may be
  702.           downloaded from Telegodzilla, the YAM/ZCOMM support BBS.  The
  703.           YAM/ZCOMM manual explains how such auto logon scripts are
  704.           constructed and how to use the TurboLearn(tm) feature to automate
  705.           writing scripts.  I recommend new users use this script
  706.           essentially "as is" for a while to test your new phone directory
  707.           entries and become familiar (comfortable) with YAM/ZCOMM.  Then
  708.           you can enjoy the challenge, the fun, and the satisfaction of
  709.           modifying this script to add auto logon procedures, dial queues,
  710.           and the like.
  711.  
  712.           Keep in mind that this is only an example script to use in
  713.           learning basic ZCOMM functions.  You will have plenty of time to
  714.           enhance and embellish this script later. 
  715.  
  716.             -------------------------------------------------------------
  717.  
  718.  
  719.  
  720.                                                                    Page: 11
  721.  
  722.  
  723.  
  724.  
  725.  
  726.  
  727.  
  728.  
  729.  
  730.  
  731.  
  732.  
  733.           PHOMAST.DOC                                           Michael Ash
  734.  
  735.  
  736.  
  737.  
  738.           The only files you must have are YAM.EXE (or ZCOMM.EXE) and this
  739.           phones file PHOMAST.T -=- The following files are included in the
  740.           PHOMAST6.ZIP file:
  741.  
  742.                PHOMAST.T    -- the actual code YAM/ZCOMM reads
  743.                PHOMAST.DOC  -- this documentation file
  744.                   DIAL.T    -- simple example of a dialing menu (optional)
  745.               HOSTHELP.TXT  -- external help text for HOST mode (optional)
  746.               TUF_FONS.T    -- an alternative, no-frills phones script
  747.                  WHATS.NEW  -- changes since PHOMAST5.T of one year ago     
  748.                   COMM.BAT  -- example of BATCH file to call YAM/ZCOMM
  749.                    CSE.*    -- Public Domain Editor and Support Files
  750.                PROFILE.CSE  -- Keyboard configuration file for editor.
  751.                 README.CSE  -- Simple setup instructions for CSE editor
  752.  
  753.  
  754.  
  755.                        ----------------------------------------
  756.  
  757.  
  758.  
  759.           I have tried to make this script as perfect as possible but like
  760.           most things in life there are no guarantees that I found
  761.           everything.  I wish you the best of luck with YAM or ZCOMM. 
  762.           Please let me know if you run into problems...
  763.                               
  764.           I have spent hundreds of hours over many years on this script to
  765.           make ZCOMM or YAM useful to new users right out of the starting
  766.           block.  If this has helped you get a better grasp of the package
  767.           I would like to hear from you.  If this really made a difference,
  768.           and you think my time is was well spent, throw a couple bucks my
  769.           way and I will go out for a Taco (what else in San Antonio...).
  770.  
  771.           Regardless, I would appreciate a postcard, just to get an idea
  772.           who this script finally reached...
  773.  
  774.  
  775.                                                       Michael Ash
  776.                                                       3766 Tupelo Ln #2904
  777.                                                       San Antonio, TX 78229
  778.  
  779.  
  780.  
  781.  
  782.                             ---------- Have Fun ----------
  783.  
  784.  
  785.  
  786.                                                                    Page: 12
  787.  
  788.  
  789.  
  790.  
  791.  
  792.  
  793.