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