home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 17 / CD_ASCQ_17_101194.iso / vrac / ho51.zip / HO51.ZIP / mnu.doc < prev    next >
Text File  |  1994-06-17  |  16KB  |  458 lines

  1.  
  2.  
  3.                     MNU  Manual          Page 1
  4.  
  5.  
  6.  
  7.  
  8.  
  9.                         _______
  10.                    ____|__     |               (R)
  11.                 --|       |    |-------------------
  12.                   |   ____|__  |  Association of
  13.                   |  |       |_|  Shareware
  14.                   |__|   o   |    Professionals
  15.                 -----|   |   |---------------------
  16.                      |___|___|    Member
  17.  
  18.  
  19.  
  20.                 Version 2.10           June, 1994
  21.  
  22.  
  23.           MNU is a batch file enhancer and menu program.  Its included
  24.           with Hands On to help make the overall package easier to use.
  25.           Of course you can swap your favourite menu program in place of
  26.           MNU if you prefer.  If you cannot find MNU, look for HOMNU
  27.           which is basically the same program under another name.
  28.  
  29.           The original version is distributed as TWSELECT, and you will
  30.           find various references to TWSELECT.  This version has been
  31.           renamed to avoid confusion because the two now have some
  32.           differences.  If your copy has some other name just mentally
  33.           substitute that name for 'MNU' and 'TWSELECT' as necessary.
  34.           The original source and .exe can likely still be found in the
  35.           Force area (GO FORCE) on Compuserve.  This version has full
  36.           ASP member support, and may still be distributed freely.
  37.  
  38.           We have a program where we gather donated computer equipment
  39.           from various sources, tune it, and add selected software (eg
  40.           emacs, microspell, some games, and a simple menu), then
  41.           distribute the results to individuals doing work for
  42.           non-profit groups.  This software meets our simple free
  43.           distribution requirements.  We also change it to produce
  44.           versions specifically for special needs.  All of the special
  45.           versions to date have been free on request.
  46.  
  47.           A caution:
  48.  
  49.           The documentation suggests various environment variables, all
  50.           starting with TW (Tom Woodgerd - the original author).  You
  51.           may use the environment for the purposes suggested here.
  52.           However, the environment is a limited resource and accidental
  53.           miss-use leads to various problems with all kinds of software,
  54.           so this version uses the MNU.INI file.  MNU looks for it in
  55.  
  56.  
  57.  
  58.  
  59.  
  60.                     MNU  Manual          Page 2
  61.  
  62.  
  63.  
  64.           the current directory and then the directory where the MNU.EXE
  65.           resides.  The MNU.INI file format is as follows:
  66.  
  67.           # setup information for homnu/mnu
  68.           TWP=1012
  69.           TWID=
  70.           TWDR=C
  71.           TWH=Hands On Remote Access
  72.           USER=
  73.           TWCLR=
  74.           SP=
  75.           TWSAV=
  76.           # <- these allow comments on the same line
  77.  
  78.           You can have alternate .INI files that are copied to MNU.INI
  79.           inside your batch file to change the pertinent settings in
  80.           successive MNU menus.
  81.  
  82.  
  83.           MNU has 2 main modes:  ASK and MENU
  84.  
  85.  
  86.           ASK MODE is a simple way of asking for user input within a
  87.           batch file.  It displays the "input string" at the current
  88.           screen position and waits for a one key response.  Only keys
  89.           in the "key list" are allowed:
  90.  
  91.           MNU ASK <input string>  - The string to display
  92.              <key list>      - Keys that are acceptable responses
  93.              [DEFAULT=c]     - The default key if enter is pressed
  94.              [TIMEOUT=n]     - The number of seconds to wait
  95.              [DEBUG]         - Causes the errorlevel to be displayed
  96.              [NOTIME]        - Time remaining won't be displayed.
  97.  
  98.           Upon exit it sets the DOS Errorlevel based on the order of key
  99.           pressed.
  100.  
  101.           Example:  MNU ASK "<O>ki, <L>aser, <E>pson (press O, L, or
  102.           E):  " OLE
  103.  
  104.           After displaying "<O>ki, <L>aser, <E>pson (press O, L, or E):
  105.           " it waits for a keypress.If it's in the group (OLEole) it
  106.           sets the DOS Errorlevel according to the order in the key list
  107.           and exits.  Esc exits with 0.  Other options can be placed
  108.           after the key list:
  109.  
  110.           DEFAULT - This is used to set a Default Key, to be used if
  111.           Enter is pressed or a TIMEOUT is reached.  If "default=a" is
  112.  
  113.  
  114.  
  115.  
  116.  
  117.                     MNU  Manual          Page 3
  118.  
  119.  
  120.  
  121.           used, then when the user presses Enter, it would be the same
  122.           as pressing "a".
  123.  
  124.           TIMEOUT - An example would be "timeout=30".  If no key is
  125.           pressed within 30 seconds the program will terminate.  If
  126.           there is a DEFAULT key set, it will act as if that key were
  127.           pressed.
  128.  
  129.           DEBUG - (or /debug) This shows the DOS Errorlevel upon exit.
  130.  
  131.           NOTIME - This prevents the time remaining from being displayed
  132.           when TIMEOUT is active.
  133.  
  134.  
  135.  
  136.           MENU MODE is used to paint a menu on screen and allow users to
  137.           select a choice by positioning a light bar, or letter, and
  138.           pressing enter.  Normally the menu is full screen but the NC
  139.           option reduces the menu to a minimum size.  This allows you to
  140.           stack successive menus, offset if you like, and to have the
  141.           menus pop up anywhere on the screen.  MENU MODE returns the
  142.           DOS errorlevel set to the sequence number of the item
  143.           selected.
  144.  
  145.  
  146.           MNU MENU <options list separated by commas or spaces>
  147.           [options]
  148.  
  149.           - MENU mode is used to pop up a list of menu choices.  When
  150.           the user selects one and presses "Enter", it sets the DOS
  151.           Errorlevel based on the order of the item chosen.
  152.  
  153.           Example:  MNU MENU "Oki Printer","Laser Printer","Epson
  154.           Printer"
  155.  
  156.           - A BOX will be displayed giving the options in a LIST.  The
  157.           user may choose an option using the up and down arrow keys and
  158.           then press enter.  It will set the DOS Errorlevel according to
  159.           the order of option chosen and then exit.
  160.  
  161.           - There is a DEBUG option.  If "debug" or "/debug" is placed
  162.           after the option list it will show the DOS Errorlevel upon
  163.           exit.
  164.  
  165.           - The LOCATION of the box can be controlled by setting an
  166.           environment variable.  Type the following at the command line
  167.           or in a batch file "set twp=1012".  This would set the upper
  168.           left corner of the box to row 10, column 12.  The coordinates
  169.  
  170.  
  171.  
  172.  
  173.  
  174.                     MNU  Manual          Page 4
  175.  
  176.  
  177.  
  178.           must contain 4 numbers.  For instance row 9, column 1 would be
  179.           "set twp=0901". Row 0, column 0 would be "set twp=0000".  If
  180.           you use the MNU.INI file to set TWP you lose the capability to
  181.           'stack' successive menus offset like cards unless you put
  182.           different MNU.INI files in different subdirectories.
  183.  
  184.           - A title will be placed at the top of the menu box, if the
  185.           parameters include "t:title".
  186.  
  187.           Example:  MNU MENU "t:Printer Menu" "Oki" "Laser" "Epson"
  188.  
  189.           - To create overlaid menus, use "NC" as a parameter.  The
  190.           screen won't be cleared before popping up the new menu.  You
  191.           can also use NC to make minimal sized menus.
  192.  
  193.           Example:  MNU MENU "NC" "t:Printer Menu" "Oki" "Laser" "Epson"
  194.  
  195.           - You can set an environment variable (TWH) to over-ride the
  196.           default header of "Menu Choices".  If you rename MNU to HOMNU
  197.           the header becomes 'Hands On Remote Access' without using
  198.           environment space.
  199.  
  200.           Example:  SET TWH=ACME COMPANY MENU
  201.  
  202.           - You can set an environment variable (TWSAV) to cause the
  203.           screen to be cleared and your message (up to 60 characters) to
  204.           be displayed.  If you run out of environment space the message
  205.           will be truncated.
  206.  
  207.           Example:  SET TWSAV=I'm at Lunch.  Return 1:30
  208.  
  209.           The screen saver activates when you tap F7, and the screen is
  210.           restored when you tap another key.  Releases before June, 1994
  211.           had a timed screen saver, but it has been disabled.  If you
  212.           need a timed screen saver, and or password capability yell.
  213.  
  214.           Here's an entire batch file using MNU MENU MODE:
  215.  
  216.             @echo off
  217.             ** set twh=Acme Toys Inc.
  218.            :start
  219.             MNU menu "t:Main Menu" "WordPerfect" "Lotus" "Games" "Quit"
  220.             if errorlevel == 4 goto :end
  221.             if errorlevel == 3 goto :games
  222.             if errorlevel == 2 goto :lotus
  223.             if errorlevel == 1 goto :wp
  224.             goto :end
  225.            :wp
  226.  
  227.  
  228.  
  229.  
  230.  
  231.                     MNU  Manual          Page 5
  232.  
  233.  
  234.  
  235.             cd \wp51
  236.             wp
  237.             goto :start
  238.            :lotus
  239.             cd \123r24
  240.             123
  241.             goto :start
  242.            :games
  243.             call gamemenu
  244.             goto :start
  245.            :end
  246.  
  247.           - USAGE TRACKING:  If an environment variable called TWDR is
  248.           set, MNU will record all user menu selections in a DBASE III
  249.           type data file called ACTIONS.DBF.  "TWDR" needs to be like
  250.           "C:", "D:", "F:" etc.  ACTIONS.DBF will be opened or created
  251.           in the root directory of the drive specified by "TWDR".  It
  252.           will also record the setting for the environment variables:
  253.           "LANUSER" and "TWID" (up to 10 characters each).
  254.  
  255.           Example:  SET TWDR=C:
  256.  
  257.           If you prefer, you may use "SET TWDR=C" without the ":" and
  258.           the ACTIONS.DBF will be created and maintained in the 'home
  259.           directory' where the MNU.EXE resides.
  260.  
  261.           You can use the F4 function key to look at and edit the
  262.           entries in the ACTIONS.DBF when the feature is active in MNU.
  263.  
  264.           We have found that the ACTIONS.DBF can be damaged leading to
  265.           MNU locking up when it tries to access ACTIONS.DBF.  If MNU
  266.           locks up on you, then first try erasing ACTIONS.DBF
  267.  
  268.           - MONO MONITOR MODE:  If you're running this on a mono or LCD
  269.           monitor you'll want to set an environment variable TWCLR for
  270.           black & white screens.
  271.  
  272.           Example:  SET TWCLR=MONO
  273.  
  274.  
  275.           Support and Distribution:
  276.  
  277.           This product is partially Copyright (C) 1993-4 P. C. Softsmith
  278.           all rights reserved.  It is distributed with shareware and
  279.           should be distributed with this documentation.  It is normally
  280.           distributed with other P.C. Softsmith materials that further
  281.           explain the shareware process.  If you wish to distribute it
  282.           with your software or are unable to find the other
  283.  
  284.  
  285.  
  286.  
  287.  
  288.                     MNU  Manual          Page 6
  289.  
  290.  
  291.  
  292.           documentation that should accompany this file (such as the
  293.           SHR_WARE.DOC, FILE_ID.DIZ, and the VENDOR.DOC) please contact
  294.           whoever gave you the software or P.C. Softsmith.
  295.  
  296.  
  297.           For technical support, either call (604) 433-5189, or write to
  298.           Suite 606 - 6455 Willingdon Avenue, Burnaby, British Columbia,
  299.           Canada, V5H 4E4. You may also try leaving a Compuserve message
  300.           at 75020, 2664, or send email to
  301.  
  302.           INTERNET:vic_williams@mindlink.bc.ca
  303.  
  304.           You will likely be able to access us on the Vancouver FreeNet
  305.           in the near future.
  306.  
  307.           Portions (C) Copyright 1993-4 P. C. Softsmith all rights
  308.           reserved.
  309.  
  310.  
  311.           History:
  312.  
  313.           June, 1994 - vw:  Version 2.1 Added MNU.INI, some minor
  314.           internal changes and changed the screen saver.  Main title
  315.           changes if .exe name changed to HOMNU.EXE.  This version
  316.           automatically tries to display an intelligent error message
  317.           when something goes wrong.
  318.  
  319.           May, 1994 - vw:  more interactive screen saver and some minor
  320.           tinkering.  Added the F4 EDIT with ACTIONS.DBF optionally in
  321.           the home directory replacing TWSELECT.DBF in the root
  322.           directory.
  323.  
  324.           December, 1993 vw:  Version 2
  325.           This product has been reworked somewhat from the original
  326.           TWSELECT for distribution with other public domain and freely
  327.           distributable materials.  We have a program where we gather
  328.           donated computer equipment from various sources, tune it, and
  329.           add selected software (eg emacs, microspell, some games, and a
  330.           simple menu), then distribute the results to individuals doing
  331.           work for non-profit groups.
  332.  
  333.           -This version has full ASP support, and may still be distributed
  334.           freely.  You can use us for free support.
  335.           -Added self detection of monochrome monitors.
  336.           -Moved help to separate .DOC file, for a smaller .exe and easier
  337.           maintenance.
  338.  
  339.  
  340.  
  341.  
  342.  
  343.  
  344.  
  345.                     MNU  Manual          Page 7
  346.  
  347.  
  348.  
  349.           TWSELECT was written by Tom J. Woodgerd, using the FORCE
  350.           compiler.  It has been released into the public domain, to be
  351.           used freely.  The author provides no warranty or support, but
  352.           your comments and suggestions are welcome.
  353.  
  354.           Sept 11, 1992 - Tom J. Woodgerd, 1018 State St., Helena MT
  355.           59601.  You can leave messages on Worthy Computer BBS, (406)
  356.           443-7508.
  357.  
  358.           Sept 11, 1992 - TJW: Version 1.12
  359.           - Cleaned up the HELP screens and uploaded to several BBS's.
  360.           Worthy Computer, HUGE, FORCE BBS.
  361.           - Changed environment variable WPUSER to TWID.
  362.  
  363.           July 27, 1992 - TJW: Version 1.12
  364.           - Added mono capabitity.  Just "set twclr=mono".
  365.  
  366.           July 05, 1992 - TJW: Version 1.11
  367.           - Fixed bug in ASK.
  368.           - Changed USERNAME to LANUSER.
  369.           - Changed to not save history if errorlevel = 0.
  370.           - Added extra info to info screen (F1).
  371.  
  372.           June 29, 1992 - TJW: Version 1.10
  373.           - Changed to save all user selections to <twdr>\TWSELECT.DBF if
  374.           the environment variable "TWDR" is set to C: etc.
  375.  
  376.           June 26, 1992 - TJW: Version 1.09
  377.           - Changed to show time as hh:mm:ss.
  378.  
  379.           June 17, 1992 - TJW: Version 1.08
  380.           - Added Help Screen.  Added ability to display the TWSAV
  381.           message when in screen saver mode.
  382.  
  383.           June 15, 1992 - TJW: Version 1.07
  384.           - Unable to fix "timer_entry()" to not conflict with EXTRA!
  385.           and other tsrs.  The clock display and the screen saver now
  386.           only work if the environment variable "TWSAV" is set to "Y".
  387.  
  388.           June 13, 1992 - TJW: Version 1.06
  389.           - Fixed bug in "civilian" time display.
  390.  
  391.           June 10, 1992 - TJW: Version 1.05
  392.           - Added option to put the header in environment variable called TWP.
  393.           - Changed timeout to 10 minutes.
  394.  
  395.           May 26, 1992 - TJW: Version 1.04
  396.           - Changed lead in on menu items to "A. ", "B. ", etc.
  397.  
  398.  
  399.  
  400.  
  401.  
  402.                     MNU  Manual          Page 8
  403.  
  404.  
  405.  
  406.           - Changed menu header to use a box.
  407.  
  408.           May 13, 1992 - TJW: Version 1.03
  409.           - Added ability to jump to menu option when the first character
  410.           of the option is pressed.  Also got rid of automatic upper
  411.           casing on menu items.
  412.  
  413.  
  414.           P. C. Softsmith warranty information:
  415.  
  416.           THE DOCUMENTATION AND ASSOCIATED SOFTWARE ARE DISTRIBUTED AND
  417.           SOLD WITH NO WARRANTIES, EITHER EXPRESS OR IMPLIED, REGARDING
  418.           ITS MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE.
  419.           THE INFORMATION IN THIS DOCUMENTATION IS SUBJECT TO CHANGE
  420.           WITHOUT NOTICE AND DOES NOT REPRESENT A COMMITTMENT ON THE
  421.           PART OF THE VENDOR.
  422.  
  423.           OTHER PRODUCT AND BRAND NAMES MENTIONED ARE TRADEMARKS OR
  424.           REGISTERED TRADEMARKS OF THEIR RESPECTIVE HOLDERS.
  425.           SPECIFICALLY XBASE IS THE GENERIC DATABASE INDUSTRY
  426.           REPLACEMENT FOR THE REGISTERED TERM DBASE OWNED BY BORLAND
  427.           INTERNATIONAL.
  428.  
  429.  
  430.  
  431.  
  432.  
  433.  
  434.  
  435.  
  436.  
  437.  
  438.  
  439.  
  440.  
  441.  
  442.  
  443.  
  444.  
  445.  
  446.  
  447.  
  448.  
  449.  
  450.  
  451.  
  452.  
  453.  
  454.  
  455.  
  456.  
  457.  
  458.