home *** CD-ROM | disk | FTP | other *** search
/ Media Share 9 / MEDIASHARE_09.ISO / comm / esccmm10.zip / README.CMM < prev   
Text File  |  1993-04-04  |  15KB  |  347 lines

  1.  
  2.                            CMMenu system interface
  3.  
  4.         CMMenu - (see - em - enu) and CMMcust (see - em - cust) by
  5.         Chris Mann of 1:157/100.30
  6.  
  7.      INDEX
  8.  
  9.         1.0  ... INDEX
  10.         1.1  ... DEFINITION
  11.         1.2  ... PURPOSE
  12.         1.4  ... CLOSER LOOK
  13.           a. ... HELP
  14.           b. ... MOUSE CONTROL
  15.           c. ... THE MENUS
  16.           d. ... FUNCTION KEYS
  17.           e. ... USER DEFINED PROGRAMS
  18.           f. ... SEARCH STRINGS
  19.           g. ... CLOCK
  20.           h. ... COLOR SETUP
  21.           i. ... CALENDAR
  22.           j. ... SYSTEM INFO
  23.           k. ... SCREEN BLANK
  24.           l. ... CMB
  25.           m. ... DESQview SETUP
  26.  
  27.      DEFINITION:
  28.  
  29.         The program CMMenu provides a pull down, mousable menu system.
  30.         Interfaced through a simple or complex dos batch file which
  31.         accepts errorlevel exits produce by user choice per menu item
  32.         selection.
  33.  
  34.         CMMcust customizes CMMenu to the end user's preference.
  35.         CMB is a file browsing utility
  36.  
  37.      PURPOSE:
  38.  
  39.         Menuize an application, a series of applications or an entire
  40.         system.
  41.  
  42.      A CLOSER LOOK:
  43.  
  44.         The CMMenu program is an elaborate, configurable, customizable
  45.         menu which exits with an errorlevel ascending from low to high.
  46.         The first item in the CMMenu is the letter A. A = errorlevel 2,
  47.         B = errorlevel 3 etc. In other words, errorlevel exits can be
  48.         defined starting from 2 through 37. Additionally function keys
  49.         F3 through F10 can be assigned to errorlevel exits 38 through
  50.         45 respectively.
  51.  
  52.         If you are NOT using CMMenu with ESC you must know enough about
  53.         dos batch files to create them and understand how errorlevel
  54.         exits work. An errorlevel isn't an error at all. It is a value
  55.         which is passed from a program to a specific memory location.
  56.         This value (0 - 255) can be read by the command processor
  57.         (command.com) and handled according to a high level language
  58.         common to dos called BATCH. The batch language is very limited
  59.         but is perhaps the easiest of all interpretive languages.
  60.  
  61.         Error levels are interpreted from highest to lowest. When
  62.         declaring them within your batch file you must present an
  63.         option to be performed on the highest numeric value before
  64.         a lower one. Otherwise the lower value will be accepted and
  65.         processed first. In otherwords there is a fall through factor.
  66.         Once the errorlevel is caught, the command processor proceeds
  67.         to the next line of instruction. If that line processes a
  68.         lesser errorlevel value, it will be executed unless you send
  69.         the command  processor to another line using a goto [label]
  70.         statement. Please refer to some dos batch guide for more
  71.         information on how batch files function. Looking at the
  72.         MAIL.BAT will give you some clue as to how this works.
  73.  
  74.      Help function (hypertext) F1 for CMMenu and CMB (online help)
  75.  
  76.         This document will not go into great detail concerning the
  77.         operation of CMMenu because there is extensive help (F1)
  78.         built into the program itself. Help uses hypertext logic to
  79.         move you through the topics. CMB (a file browser) also has
  80.         online help from the F1 key.
  81.  
  82.         Before any menu boxes have been opened, pressing F1 or
  83.         clicking for help will present you with the choice to
  84.         view customizing options or the help INDEX. The first is
  85.         to help you along with the customizing program CMMcust and
  86.         the second will give you the following list of selections.
  87.  
  88.         Once CMMenu is up press F1 to see a list of help.
  89.  
  90.         Using Help . . . . . . . . . . . . <0
  91.         CMMenu . . . . . . . . . . . . . . <1
  92.         Features . . . . . . . . . . . . . <2
  93.         Tools. . . . . . . . . . . . . . . <3
  94.         Mouse. . . . . . . . . . . . . . . <4
  95.         Keys . . . . . . . . . . . . . . . <5
  96.         Shelling to DOS. . . . . . . . . . <6
  97.         Errorlevels. . . . . . . . . . . . <7
  98.         User Defined Programs. . . . . . . <8
  99.         Customizing. . . . . . . . . . . . <9
  100.         Calendar, Disk, Mem, Scrn Blanker. <10
  101.         General. . . . . . . . . . . . . . <11
  102.         Colors . . . . . . . . . . . . . . <12
  103.  
  104.         If a menu selection box has been opened and F1 is pressed, or
  105.         the mouse button has been clicked you will be presented with
  106.         help for the particular feature which was highlighted.
  107.  
  108.         Help is available as long as you are at the menu interface.
  109.         Color Help is available when you are in the CMMenu customizing
  110.         program which will be explained later.
  111.  
  112.         When you run CMMenu you will see the menu bar similar to this.
  113.  
  114.         ╓──────────────────────────< esc = quit >─────────────────────────╖
  115.         ║ Mailer Menu   1 - Utilities    2 - Utilities   Squish Maint.    ║
  116.         ╙────────────────────────< f2 = dos shell >───────────────────────╜
  117.  
  118.         As you can see, there are 4 menu SECTIONS denoted by four menu
  119.         bar labels. Each section will pull down with the ENTER key or
  120.         mouse button to reveal up to a ten selectable items.
  121.  
  122.      Mouse control - F1 (4)
  123.  
  124.         See this help for a full description on the mouse control
  125.         features.
  126.  
  127.         There are some short cuts for the mouse.
  128.         By moving the mouse cursor to the red diamond in the upper left
  129.         corner (help screen) and clicking the left button you will be
  130.         moved to the previous linked (hypertext) help screen. Press the
  131.         left button and you exit help altogether.
  132.  
  133.         Pressing both buttons will bring you to the index no matter
  134.         where you are in help.
  135.  
  136.         Click the left button twice for help. Once to select the
  137.         highlighted item and once to open the window.
  138.  
  139.         The right button always closes a window.
  140.  
  141.      The Menus
  142.  
  143.         All four SECTION names can be customized by the CMMcust program.
  144.         You can provide a name for each SECTION up to 15 characters and
  145.         define each section's selection tokens.  You may use letters,
  146.         numbers and any printable characters.
  147.  
  148.         ╓──────────────────────────────< e
  149.         ║ Mailer Menu     1 - Utilitie
  150.         ╙────────────────────────────< f2
  151.  
  152.            ╓────────────────────────╖
  153.            ║  A  Msgs Read/Write    ║
  154.            ║  B  Poll Boss          ║
  155.            ║  C  Toss Mail In       ║
  156.            ║  D  AutoAdd New Areas  ║
  157.            ║  E  Wimm Mail Search   ║
  158.            ║  F  ESC Editor Mode    ║
  159.            ║  G  Poll Timer         ║
  160.            ║  H  Poll Maker         ║
  161.            ║  I  Pack Mail To Go    ║
  162.            ║  J  Bink/Unattended    ║
  163.            ╙────────────────────────╜
  164.  
  165.         You can name each item selector any printable key in any order.
  166.         You can describe each function with anything which will fit in
  167.         the 20 spaces allotted by invoking CMMcust and altering the
  168.         interface.
  169.  
  170.      Function keys (defining)
  171.  
  172.         Function keys F3 - F10 are definable if the underlying batch
  173.         file will catch errorlevels ending at 45 and starting at 38.
  174.  
  175.         Here's a simple batch file using CMMenu and the function key
  176.         10. By calling it FUNC10.BAT, placing it and CMMenu.exe in
  177.         the same directory and typing FUNC10 at the dos prompt you'll
  178.         see the CMMenu interface. If you press F10 you will see one
  179.         message. Any other key will produce another.
  180.  
  181.      @echo off
  182.      CMMenu
  183.      if not errorlevel 45 goto wrongkey
  184.      echo CMMenu and F10 demo
  185.      echo FUNCTION KEY 10!
  186.      goto rightkey
  187.      :wrongkey
  188.      echo Some key other than F10 has been pressed!
  189.      :rightkey
  190.      pause
  191.  
  192.         All the menu items are called in like manner. The errorlevels
  193.         progress from 2 through 37 for the normal selections from the
  194.         four menu sections. The first 3 sections allow 10 definitions.
  195.         Section one starts with errorlevel exit 2 and ends with 11.
  196.         Section two starts with 12 and ends with 21. Section three
  197.         begins with 22 and ends with 31. The last section allows for
  198.         the errorlevel exits from 32 through 37. As stated before, 38
  199.         through 45 are reserved for function keys F3 through F10.
  200.  
  201.      User defined programs F1 (8)
  202.  
  203.         Now might be a good time to run CMMcust in order to give you
  204.         a better panorama of its potential. If you are using ESC with
  205.         CMMenu it might be a good idea to inspect what is there
  206.         rather than altering anything until you have a handle on how
  207.         your mailer setup and the underlying MAIL.BAT function.
  208.  
  209.         You may declare and define 4 external programs from CMMcust.
  210.  
  211.         Assuming you are operating CMMenu with the ESC setup, move
  212.         the menu bar selector to  2 - Utilities. Press enter or the
  213.         left mouse button and select item B - CMMenu Customizer.
  214.  
  215.         Page down until you see "User Defined Program Descriptions".
  216.         Cursor down until you are on item 37. Now type something
  217.         like "ESC Color Settings". You can push any extra letter off
  218.         the end with your space bar or use your delete key. You can
  219.         then move to the line where you see "Pro. 1:".
  220.         Type "Escutil -c" (don't type the quotes) and press ENTER.
  221.         Now press your Esc key to quit and save your changes.
  222.  
  223.         You have just created a program description and call up for
  224.         a program. You will then be placed in the same spot you left
  225.         from. Open up the last selection from the menu bar titled
  226.         "Squish Maint.". You will see a selection defined exactly as
  227.         you created it in the CMMenu Customizer. Cursor down and
  228.         select the item. You should see the Esc color selection
  229.         utility for the Quick Menus. This doesn't apply to CMMenu
  230.         but provides an easy and reliable example of how to produce
  231.         any type of program call up for anything you wish to add to
  232.         the menu interface. You can go back into the Customizer and
  233.         remove the definition and call up. You can define the other
  234.         three if you wish. You can run CMMcust alone at the dos
  235.         prompt by simply typing CMMCUST.
  236.  
  237.      Search string - F1 help (4) Customizing
  238.  
  239.         You can have CMMenu search for any file on your system and
  240.         alert you if it is found each time you invoke the menu.
  241.         In this example we'll run MAIL.BAT which in turn starts the
  242.         CMMenu interface.
  243.  
  244.         The primary reason for this is to let you know when you have
  245.         a file (mail perhaps) in your mailer's inbound file area. The
  246.         function isn't limited to that and we'll use an example which
  247.         will likely work even if you don't have mail in your inbound.
  248.  
  249.         Once again choose item B (CMMenu Customizer) from the third
  250.         menu. Page down to the box which contains;
  251.  
  252.         "This is the search string area."
  253.  
  254.         Your cursor will be on the line which reads "Srch. 1:".
  255.         Type  "Esc.doc" (without the quotes) and cursor down to the
  256.         line which displays "String 1:"
  257.         Type  "Be sure to read the ESC docs!" (without the quotes) and
  258.         press ENTER. Press Esc to save and quit and you will be back
  259.         in the CMMenu at the last item you selected. Providing you
  260.         have ESC.DOC in the current directory you will be greeted with
  261.         the reminder you wrote yourself. Keep in mind that you may
  262.         specify a complete drive and filepath associated with the file
  263.         and that you can use wild cards (* or ?) in the string search.
  264.  
  265.      Clock - turning it off for a multitasker
  266.  
  267.         CMMenu has some other conveniences. One of which is a clock
  268.         display if you want it. This is toggled off or on again with
  269.         item B from the the third menu (CMMenu Customizer) by paging
  270.         down to the line which reads "Toggle Clock on/off". Move
  271.         over with your cursor key where you can toggle the online help
  272.         function.
  273.  
  274.      Colorsetup - F1 (12) Colors
  275.  
  276.         While you're in the vicinity you can select the menu colors
  277.         with the many combinations just past the options described
  278.         in the paragraph above. Navigate with your cursor keys and
  279.         change the numbers to your liking. Once you have made a
  280.         change be sure to press ENTER or move to another line before
  281.         pressing Esc. Otherwise the change(s) will not be registered
  282.         and that change will not take effect.
  283.  
  284.         Background character - The default is character 177 (decimal).
  285.         The background is the pattern upon which the menus are laid.
  286.         Although the background is quite nice you might want to give
  287.         it a personal touch. Filling the background with the the
  288.         letter 'A' for instance, would require you to change the 177
  289.         to 65.
  290.  
  291.      Calendar -  F1 (10) - Calendar function
  292.  
  293.         Hold the control key and press C to reveal an online calendar.
  294.         Page Down and Page Up keys switch months. Control Page Down
  295.         and Control Page up switch years. The cursor keys move you
  296.         about the days within each month. If you want to see what
  297.         day your birthday will fall upon in any year, select the
  298.         month, cursor to the day of your birth, hold the Control key
  299.         and press the page up and page down keys.
  300.  
  301.      System info - F1 (10) - Disk / Memory stats
  302.  
  303.         Hold the control key and press A.
  304.  
  305.      Screen Blank - F1 (10) - Blank the screen
  306.  
  307.         Hold the control key and press B.
  308.         Your screen will be cleared until you press another key.
  309.         The screen blanker only works while you are at the CMMenu
  310.         interface. External programs are not affected.
  311.  
  312.      CMB - file browser
  313.  
  314.         CMB has been included. If you choose CMMenu as your menu
  315.         interface CMB will be called upon rather than Vern Buerg's
  316.         LIST program. CMB is freeware with no quest for donations.
  317.         It works well enough with ESC that it has been included for
  318.         the functions required.
  319.  
  320.      Using CMMenu with other batch files
  321.  
  322.         You have seen the batch file for using the F10 key. You can
  323.         reconfigure CMMenu to your liking and use any batch file
  324.         which can process errorlevels 2 through 45 to create a menu
  325.         interface for any system which can be controlled through a
  326.         batch file. All that is required is a more than rudimentary
  327.         knowledge of the batch language, a text editor and computer.
  328.  
  329.      DESQview SETUP
  330.  
  331.         Use direct screen writes for optimum speed.
  332.         DON'T use virtualized text/graphics
  333.  
  334.         recommended DESQview setup
  335.  
  336.         Writes text directly to screen.......: [Y]
  337.         Displays graphics information........: [N]
  338.         Virtualize text/graphics (Y,N,T).....: [N]
  339.         Uses serial ports (Y,N,1,2)..........: [?] - your comm port
  340.         Requires floppy diskette.............: [N]
  341.  
  342.  
  343.         The program names and documentation were produced by
  344.         Glen Gilbert of 1:157/534
  345.  
  346.      End of CMMenu documentation
  347.