home *** CD-ROM | disk | FTP | other *** search
/ Shareware Gold 1 / The_Golden_ROM_Series_-_Shareware_Gold_Volume_1_Number_11_-_SK_89-301_-_1989.iso / BBS / LIB027.ARC / AUTOMENU.DOC < prev    next >
Text File  |  1988-11-11  |  199KB  |  4,839 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.                                  Automenu(R)
  12.  
  13.  
  14.  
  15.                      The Software Management System(TM)
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23.                                  Version 4.5
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.                                 USERS' MANUAL
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.                            Designed and Written by
  40.  
  41.  
  42.                               Marshall W. Magee
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.                            Magee Enterprises, Inc.
  51.  
  52.                             Post Office Box 1587
  53.  
  54.                         Norcross, Georgia  30091  USA
  55.  
  56.                                 404-446-6611
  57.  
  58.                               404-446-6650 BBS
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. ISBN 0-938167-00-6
  71.  
  72. (C) Copyright 1983, 1985, 1986, 1987, 1988 Magee Enterprises, Inc.
  73. All rights reserved worldwide.
  74. Printed in the United States of America
  75.  
  76.  
  77. Automenu is a registered trademark and Software Management System(TM), Menu
  78. Definition Language(TM), and MDL(TM) are trademarks of Magee Enterprises,
  79. Inc. All trademarks and registered trademarks referenced within this document
  80. are the property of their respective owners.
  81.  
  82.  
  83. MAGEE ENTERPRISES, INC.
  84. POST OFFICE BOX 1587
  85. NORCROSS, GEORGIA 30091  USA
  86.  
  87.  
  88.  
  89. Sales 
  90.  
  91.       404-446-6611              (9 AM - 5 PM Eastern Time)
  92.       800-662-4330              Orders Only
  93.       404-368-0719              FAX (24 Hours)
  94.  
  95.  
  96. Technical Support Group 
  97.  
  98.       404-662-5387              Voice Line (9 AM - 4 PM Eastern Time)
  99.       404-446-6650              Big Peach BBS (24 Hours)
  100.       76004,1541 or 70167,2200  CompuServe 
  101.       
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108. Shareware documentation by Mark Strelecki, Swati Mahajan, Randal DePriest and
  109. Marshall Magee. Artwork by Neisha Keith.
  110.  
  111.  
  112. This manual was developed using WordPerfect 5.0.
  113.  
  114.  
  115. November 1988 Release
  116.  
  117.  
  118.  
  119.   Automenu 4.5                                                    Page 2
  120.                               TABLE OF CONTENTS
  121. Section  Title                                                  Page
  122.  
  123. License Agreement ............................................. 6
  124.  
  125. 1   This Is Automenu .......................................... 8
  126.  
  127. 1-1      Getting Acquainted With Automenu ..................... 8
  128. 1-2      Using This Documentation ............................. 9
  129. 1-2.1    Usage Conventions .................................... 10
  130. 1-2.2    Format and Presentation .............................. 10
  131. 1-3      System Requirements .................................. 10
  132. 1-4      Getting Started ...................................... 10
  133. 1-5      A Fast Start For Power Users ......................... 11
  134. 1-5.1    Installing on a Fixed Disk ........................... 11
  135. 1-5.2    Installing on a Floppy Disk .......................... 11
  136. 1-6      Special Keys Within Automenu ......................... 12
  137. 1-7      Close-Up and Personal ................................ 12
  138. 1-8      Technical Notes & Power Tips ......................... 13
  139.  
  140. 2   Installing AUTOMENU ....................................... 15
  141.  
  142. 2-1      Installing Automenu For the First Time ............... 15
  143. 2-2      Installing Automenu on a Diskette System ............. 16
  144. 2-3      Upgrading From a Previous Version .................... 17
  145.  
  146. 3   DOS and AUTOMENU .......................................... 18
  147.  
  148. 3-1      Types of Commands .................................... 18
  149. 3-2      Subdirectories ....................................... 18
  150. 3-3      Extensions ........................................... 19
  151. 3-4      Batch Files .......................................... 19
  152. 3-5      The Elements of Automenu ............................. 19
  153. 3-6      The Automenu Files ................................... 20
  154. 3-7      Menu Definition Files (MDF) .......................... 21
  155. 3-7.1    Organization and Purpose of Menu Definition Files .... 21
  156. 3-7.2    Editing Menu Definition Files ........................ 21
  157. 3-7.3    Menu Definition Development Philosophy ............... 22
  158. 3-7.4    Getting Up to Speed with Automenu .................... 22
  159. 3-8      AUTOMAKE - The Menu Building Facility ................ 22
  160. 3-8.1    Activating AUTOMAKE .................................. 22
  161. 3-8.2    Menu Building Facility Key Functions ................. 25
  162. 3-8.3    Exiting the Edit Mode of Menu Building Facility ...... 26
  163. 3-9      Summary:Planning and Creating Working Menus .......... 26
  164.  
  165. 4   Making a MENU ............................................. 27
  166.  
  167. 4-1      Developing a Menu Definition File .................... 27
  168. 4-1.1    Entering Commands .................................... 27
  169. 4-1.2    Giving Your Menu A Title ............................. 28
  170. 4-1.3    Entering Your Menu Selections ........................ 28
  171. 4-1.4    Including DOS Commands on the Menu ................... 29
  172. 4-2      Completing the Menu .................................. 31
  173. 4-2.1    The End of File Mark ................................. 31
  174. 4-2.2    Saving the Menu Definition File ...................... 31
  175. 4-3      An Aid in Diagnosing Menu Development Problems ....... 31
  176. 4-4      Developing an MDF From Scratch ....................... 32
  177. 4-5      Moving Between Menus ................................. 32
  178.   Automenu 4.5                                                    Page 3
  179.                               TABLE OF CONTENTS
  180. Section  Title                                                  Page
  181.  
  182. 5   Using Your Own Menus ...................................... 36
  183.  
  184. 5-1      The Menu ............................................. 36
  185. 5-2      Programmed Menu Keys ................................. 37
  186. 5-3      Suggestions for Menu Development ..................... 38
  187.  
  188. 6   Using AUTOMENU's Other Capabilities ....................... 39
  189.  
  190. 6-1      Menu Design Functions ................................ 39
  191. 6-2      DOS Commands ......................................... 40
  192. 6-2.1    Batch Commands ....................................... 40
  193. 6-2.1.1  RAM Utilization and RAM Cram ......................... 41
  194. 6-2.1.2  Non-Resident Commands ................................ 42
  195. 6-2.1.3  Resident Commands .................................... 43
  196. 6-2.2    Direct Commands ...................................... 44
  197. 6-2.2.1  Direct Command without Pause ......................... 44
  198. 6-2.2.2  Direct Command with Pause ............................ 44
  199. 6-3      Special Functions .................................... 45
  200. 6-3.1    Password ............................................. 46
  201. 6-3.2    Alternate MDF ........................................ 46
  202. 6-3.3    Output Messages ...................................... 47
  203. 6-3.4    Input ................................................ 48
  204. 6-3.5    Time Execution ....................................... 49
  205. 6-4      MDF Command Symbol Summary ........................... 50
  206.  
  207. 7   Customizing Your Menu ..................................... 52
  208.  
  209. 7-1      Accessing the Customization Utility .................. 52
  210. 7-2      Color Customization .................................. 52
  211. 7-3      Custom Switches ...................................... 52
  212. 7-4      Change Default MDF Filename .......................... 54
  213. 7-5      Change Default Filename for Temporary
  214.                 Batch File .................................... 54
  215. 7-6      Reset All Values and Save ............................ 54
  216. 7-7      Creating Your Own Menus .............................. 54
  217.  
  218. 8   Technical Considerations .................................. 55
  219.  
  220. 8-1      Automenu Configuration ............................... 55
  221. 8-1.1    Program Interfaces ................................... 55
  222. 8-2      Program Operation .................................... 55
  223. 8-3      Avoiding Inadvertent Memory Misallocation ............ 56
  224. 8-4      Running a BASIC Program .............................. 56
  225. 8-5      Using Automenu on Networks ........................... 57
  226. 8-6      Mouse Support ........................................ 57
  227. 8-7      Uses and Performance of Floppy 
  228.               Diskette Systems ................................ 57
  229. 8-8      Contents of an Example AUTOMENU.MDF .................. 58
  230. 8-9      Examples of Batch Files .............................. 59
  231. 8-9.1    Floppy Diskette version of AUTOEXEC.BAT .............. 59
  232. 8-9.2    Fixed Disk version of AUTOEXEC.BAT ................... 59
  233. 8-9.3    Example of AUTO.BAT .................................. 59
  234.  
  235.  
  236.  
  237.   Automenu 4.5                                                    Page 4
  238.                               TABLE OF CONTENTS
  239. Section  Title                                                  Page
  240.  
  241. 8-10     Menu Definition File (MDF) Description ............... 60
  242. 8-11     User Support ......................................... 60
  243. 8-11.1   Problems and Technical Support ....................... 60
  244. 8-12     Source Code .......................................... 60
  245. 8-13     Shareware ............................................ 61
  246. 8-14     Future ............................................... 61
  247.  
  248. 9   Automenu and Networks ..................................... 62
  249.  
  250. 9-1      Environmental Variables .............................. 62
  251. 9-2      The DOS Environment .................................. 63
  252. 9-3      Changing Default Temporary Batch Filename ............ 66
  253. 9-4      Changing Default Menu Definition Filename ............ 66
  254. 9-5      Network Installation ................................. 66
  255. 9-6      Automenu Control Points .............................. 67
  256.  
  257.  
  258.          Appendix A Error Messages ............................ 70
  259.  
  260.  
  261.          Appendix B Recommended Reading for DOS Users ......... 73
  262.  
  263.  
  264.          Appendix C Automenu Command Reference ................ 75
  265.  
  266.  
  267.          Appendix D Automenu - A Thumbnail Sketch ............. 79
  268.  
  269.  
  270.          Appendix E About the Author .......................... 80
  271.  
  272.  
  273.  
  274.  
  275.  
  276.  
  277.  
  278.  
  279.  
  280.  
  281.  
  282.  
  283.  
  284.  
  285.  
  286.  
  287.  
  288.  
  289.  
  290.  
  291.  
  292.  
  293.  
  294.  
  295.  
  296.   Automenu 4.5                                                    Page 5
  297.                               LICENSE AGREEMENT
  298.  
  299. The AUTOMENU(R) Product is NOT "Public Domain" and it is NOT "Freeware".
  300. Automenu is a copyrighted software product developed and owned by Magee
  301. Enterprises, Inc. located in Norcross, Georgia, U. S. A. Magee Enterprises,
  302. Inc. grants you without charge the right to reproduce, distribute and use
  303. copies of this version of our Automenu shareware software product, subject to
  304. the limitations specified below, and on the express condition that you do not
  305. receive any payment, commercial benefit, or other consideration for such
  306. reproduction or distribution, or change this license agreement or the
  307. following copyright notice which appears in the software, documentation, user
  308. interface, menus and magnetic media: (C) Copyright 1983, 1985, 1986, 1987,
  309. 1988 Magee Enterprises, Inc. All rights reserved worldwide.
  310.  
  311. Limitations: You may make and keep one (1)back-up copy of the software for
  312. your personal use, provided that (i) you copy all the copyright, trademark,
  313. and other information indicated on the initial screen display (or on the
  314. diskette label, for the registered version disk) onto your backup diskette
  315. label, and (ii) you have registered. Also you may distribute copies to other
  316. persons, but solely for their evaluation (i.e., to decide whether to continue
  317. using the product and therefore register) and solely for evaluation by such
  318. other persons during that thirty (30) day period. Automenu must NOT be sold
  319. or otherwise provided as part of a larger system, or as a part of a more
  320. inclusive product or service, without express written consent and licensing
  321. from Magee Enterprises, Inc. 
  322.  
  323. The rights to receive any such financial or other benefit, and to modify the
  324. product or employ its components in any kind of derivative work, are reserved
  325. exclusively by Magee Enterprises, Inc. Support from users enables us to
  326. develop additional features and future versions of the Automenu product.
  327. Registered users benefit from enhanced technical support, notice of new
  328. products, and bulletin board access. Contact us at:
  329.  
  330. Magee Enterprises, Inc.
  331. Post Office Box 1587
  332. Norcross, Georgia 30091 USA
  333. 404-446-6650
  334.  
  335. Also, please feel free to contribute your ideas regarding desired additional
  336. product features and functionality.
  337.  
  338. THIS PRODUCT IS LICENSED "AS IS" WITHOUT ANY WARRANTY OF MERCHANTABILITY OR
  339. FITNESS FOR A PARTICULAR PURPOSE, PERFORMANCE, OR OTHERWISE; ALL WARRANTIES
  340. ARE EXPRESSLY DISCLAIMED. BY USING THE AUTOMENU PRODUCT, YOU AGREE THAT
  341. NEITHER MAGEE ENTERPRISES, INC. NOR ANY OFFICERS, DIRECTORS, EMPLOYEES,
  342. SHAREHOLDERS, AFFILIATES, OWNERS, OR OTHER RELATED PARTIES WILL BE LIABLE TO
  343. YOU OR ANY THIRD PARTY FOR ANY USE OF (OR INABILITY TO USE) OR PERFORMANCE OF
  344. THIS PRODUCT, OR FOR ANY DAMAGES WHATSOEVER WHETHER BASED ON CONTRACT, TORT
  345. OR OTHERWISE. EVEN IF WE ARE NOTIFIED OF SUCH POSSIBILITY IN ADVANCE. (SOME
  346. STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF INCIDENTAL OR
  347. CONSEQUENTIAL DAMAGES, SO THE FOREGOING LIMITATION MAY NOT APPLY TO YOU.)
  348.  
  349.  
  350.  
  351.  
  352.  
  353.  
  354.  
  355.   Automenu 4.5                                                    Page 6
  356. You may not reverse-engineer, disassemble, modify, decompile or create
  357. derivative works of the product. You acknowledge that the product includes
  358. certain trade secrets and confidential information, all of which is the
  359. copyrighted intellectual property of Magee Enterprises, Inc. Automenu is a
  360. registered trademark of Magee Enterprises Inc. SOFTWARE MANAGEMENT SYSTEM,
  361. MDL, MDF and the Magee Enterprises Logo are trademarks of Magee Enterprises,
  362. Inc. All rights are reserved worldwide. IBM, PS/2 and Personal System/2 are
  363. registered trademarks of IBM Corporation.
  364.  
  365. RESTRICTED RIGHTS LEGEND
  366.  
  367. Use, duplication or disclosure by the Government is subject to restrictions
  368. as set forth in sub paragraph (c) (1) (ii) of the Rights in Technical Data
  369. and Computer Software clause of DFARS 252.227-7013. Magee Enterprises, Inc.,
  370. Post Office Box 1587, Norcross, Georgia 30091 USA.
  371.  
  372.  
  373.  
  374.  
  375.  
  376.  
  377.  
  378.  
  379.  
  380.  
  381.  
  382.  
  383.  
  384.  
  385.  
  386.  
  387.  
  388.  
  389.  
  390.  
  391.  
  392.  
  393.  
  394.  
  395.  
  396.  
  397.  
  398.  
  399.  
  400.  
  401.  
  402.  
  403.  
  404.  
  405.  
  406.  
  407.  
  408.  
  409.  
  410.  
  411.  
  412.  
  413.  
  414.   Automenu 4.5                                                    Page 7
  415. SECTION 1 
  416.  
  417. THIS IS AUTOMENU (R)
  418.  
  419. Welcome to Automenu, the Software Management System(TM) for IBM PCs,
  420. including XT, AT and PS/2 models and other 100% compatible systems. Automenu
  421. was designed to enable you to organize and control the use of your computer
  422. in a way that you never could before!
  423.  
  424. 1-1 Getting Acquainted with Automenu
  425.  
  426. With Automenu, you can create menus that access all of your frequently used
  427. programs, and perform DOS commands with a single keystroke. You no longer
  428. have to remember complex DOS commands, program and file parameters, or batch
  429. file and subdirectory names, because Automenu will do it ALL for you. You can
  430. even customize Automenu to perform very complicated batch file procedures.
  431.  
  432. With Automenu, you create your own menu. This is made possible by Magee
  433. Enterprises' proprietary Menu Definition Language (MDL)TM. Using the MDL, you
  434. can create a Menu Definition File (MDF)TM, and write your own individualized
  435. menus.
  436.  
  437. Automenu implements the essential features of a menu utility with a number of
  438. useful PC software management features in one efficient package. Automenu
  439. will reduce the time you spend navigating in DOS, changing directories,
  440. calling up programs, and managing your system; and Automenu will do it in
  441. ways that are easy to learn and easy to customize for your own needs. Some of
  442. Automenu's key features are:
  443.  
  444.      Easy installation and operation on single user and local area network
  445.      systems
  446.  
  447.      FAST, single-keystroke execution of DOS commands, batch files and
  448.      programs
  449.  
  450.      Allows new or occasional users unfamiliar with DOS to concentrate
  451.      on their application
  452.  
  453.      Ability to prompt the user for input and act accordingly 
  454.  
  455.      Programmed operator input with structured (static) and free-form
  456.      (dynamic) modes add flexibility to menu selections
  457.  
  458.      Chaining from menu to menu to allow an UNLIMITED number of menu
  459.      selections
  460.  
  461.      Password-controlled access to specific menu selections, each having
  462.      a unique password
  463.  
  464.      Optional encryption of menu files
  465.  
  466.      Unattended execution of menu selections by time-of-day
  467.  
  468.      Ability to remove Automenu from memory prior to execution of
  469.      programs which require the maximum available memory
  470.  
  471.      On-line help available (press "H" at any menu screen)
  472.  
  473.   Automenu 4.5               THIS IS AUTOMENU                     Page 8
  474.      Support for CGA (color), MDA (monochrome), EGA (Enhanced Graphics
  475.      Adapter), VGA (Video Graphics Array) and Hercules graphics adapter
  476.      displays 
  477.  
  478.      Real-time switching between color and monochrome monitors
  479.  
  480.      Control of mouse sensitivity to ease navigation among menus
  481.  
  482.      Easy-to-use command language (MDL) which allows users to
  483.      personalize their menu system
  484.  
  485.      Easy modification of menu features, e.g., screen colors, default
  486.      file names, screen display features, and mouse sensitivity
  487.  
  488.      Screen blackout to prevent image-burn; replaces an inactive screen
  489.      with optional periodically shifted user message with blackout
  490.      delay selectable in increments from 1 to 45 minutes
  491.  
  492.      Menu file editor AUTOMAKE eases creating and editing of Menu Definition
  493.      Files and provides on-line help
  494.  
  495.      Use your choice of function keys, number and arrow keys, spacebar,
  496.      mouse or voice controller to highlight and select menu options easily
  497.      and quickly
  498.  
  499.      Numeric keypad can be toggled for numeric or cursor control
  500.  
  501.      On-screen display of date and time, keyboard status and available DOS
  502.      system memory (RAM)
  503.  
  504.      Written totally in assembler, not copy protected 
  505.  
  506.      Features redirection capability and support for the ANSI.SYS driver.
  507.  
  508.      Increased functionality on local area network systems
  509.  
  510. Automenu is completely user oriented. On-Line help screens and prompts walk
  511. you through every aspect of the package. A single keystroke ("H") will call
  512. up a "mini-Help" window and a second "H" will display HELP messages from any
  513. menu screen. You can even define a complete, user-based Help system with
  514. Automenu to display text files to the screen with the touch of a single key!
  515.  
  516. 1-2 Using This Documentation
  517.  
  518. This document describes the features and functions of Automenu. You do not
  519. need a great deal of technical knowledge to understand and operate Automenu,
  520. however an understanding of DOS will allow you to take special advantage of
  521. Automenu's feature set. The tutorial sections of this document take you
  522. through every aspect of the program, from installing it on your fixed disk,
  523. to creating your own individual menus.
  524.  
  525. All users are recommended to take a spin through Section 4 - "Making an
  526. Automenu" - it will provide you with the rudiments of Automenu. Afterwards,
  527. you will be able to develop effective menus. Studying this manual and the
  528. sample MDFs that are included will enable you to use the full power of
  529. Automenu more quickly!
  530.  
  531.  
  532.   Automenu 4.5               THIS IS AUTOMENU                     Page 9
  533. If you are a new or inexperienced computer user, it is recommended that you
  534. pay special attention to Section 3, which discusses DOS. You will need to
  535. know a few aspects of using DOS in order to utilize ALL of Automenu's
  536. capabilities, so you may want to refer to your DOS manual, as well. If you
  537. are a novice, don't worry. Just read this manual and follow the instructions
  538. in Sections 3 and 4, and if you still have problems, perform the tutorial
  539. exercises.
  540.  
  541. Experienced DOS users will find the more technical discussion in Section 8 of
  542. particular interest, as well as Appendix B which lists some recommended books
  543. that relate to the fundamentals and operations of DOS.
  544.  
  545. 1-2.1 Usage Conventions
  546.  
  547. Certain conventions are used herein to aid in documenting of instructions.
  548. These are listed here:
  549.  
  550. MDF command symbols used in creating your menu are shown in brackets { };
  551. example, {%}. When you use these commands, you do not type the brackets, only
  552. the symbol itself.
  553.  
  554. DOS commands and prompts are shown as they appear on your monitor.
  555.  
  556. When you must enter data you have typed, you will be instructed, Press ENTER;
  557. the ENTER key is the large key with the hooked arrow pointing left. This key
  558. is sometimes called RETURN. Use of either term will be mean the same - RETURN
  559. or ENTER will function the same way.
  560.  
  561. 1-2.2 Format and Presentation
  562.  
  563. Sections 3 through 7 are tutorial in nature. It is recommended that
  564. inexperienced computer users follow them as they are presented. All examples
  565. should be completed before calling our Technical Support Group. Your
  566. questions should be answered in the tutorials. Experienced users may find
  567. that the "Fast Start" area (Sections 1-5 through 1-7), together with a brief
  568. reading of the tutorial sections, will suffice. The tabular summaries of each
  569. section are designed to be used as a user guide once you are familiar with
  570. Automenu's basic operation. 
  571.  
  572. 1-3 System Requirements
  573.  
  574. Automenu can be used on all 100% IBM compatibles, including the IBM PC, XT,
  575. AT, JR., Portable, Convertible, 3270-PC, and all Personal System /2 models.
  576.  
  577. Automenu requires DOS version 2.0 or higher. It requires only 32 KB of free
  578. memory, due to the fact that it is written entirely in assembler. It is fully
  579. functional with either fixed or diskette drives. It uses only standard,
  580. documented DOS and BIOS calls. It is compatible with Microsoft Windows 2.X,
  581. Windows/286 and /386, and Novell, 3COM, Alloy, and other network operating
  582. systems.
  583.  
  584. 1-4 Getting Started
  585.  
  586. Before you begin the tutorial, make a backup/working copy of the program
  587. diskette, as you would with any diskette that contains important information.
  588. Store the original in a safe place.
  589.  
  590.  
  591.   Automenu 4.5               THIS IS AUTOMENU                     Page 10
  592. Please read the READ.ME file that came with this version for some additional
  593. instructions. You may find information which was published after the manuals
  594. went to press, or other important data you might find useful in your setup
  595. and operation of Automenu. To read this file, from the DOS prompt enter "TYPE
  596. READ.ME".
  597.  
  598. We welcome user comments and suggestions concerning the software and the
  599. documentation. Please feel free to call, write, or use the comment form
  600. provided with this documentation to give us your reactions to this product.
  601. All user comments are carefully considered in our continuing effort to
  602. improve the program and its documentation. Thank you for purchasing Automenu.
  603. We hope you find it easy to use and powerful in its abilities.
  604.  
  605. 1-5 Automenu - A Fast Start
  606.  
  607. For those that hate to read manuals, and may already be DOS-literate, the
  608. following section will allow you to get Automenu up and running quickly and
  609. easily. If you are an intermediate to advanced DOS user, this section is for
  610. you. If you are unfamiliar with concepts such as subdirectories and batch
  611. files, and how they operate, please skip the following Sections (1-5 through
  612. 1-8) and proceed directly to Section 2.
  613.  
  614. 1-5.1 Installing Automenu on a Fixed Disk System
  615.  
  616. Boot your computer as usual. At the DOS C: prompt, type the following
  617. commands:
  618.  
  619. C:             (Log to the C: Drive)
  620.  
  621. MD \AUTOMENU   (Make a subdirectory called "\AUTOMENU")
  622.  
  623. CD \AUTOMENU   (Changes to the \AUTOMENU subdirectory just created)
  624.  
  625. Place your Automenu distribution disk in Drive A:, then type:
  626.  
  627. COPY A:*.*    (Copy all files from the A: drive to the \AUTOMENU directory)
  628. Then copy the file AUTO.BAT to a directory on the Path, and modify it to
  629. change directories to wherever you are storing your other Automenu files.
  630. While still logged onto the C: drive in the \AUTOMENU subdirectory, type
  631. "AUTO" (no quotes) and press Return to start Automenu.
  632.  
  633. This will load the default Primary Menu called AUTOMENU.MDF. There will be an
  634. option on this menu called the MENU-BUILDING FACILITY - use it to edit and
  635. create new Menu Definition Files. You will notice that pressing the page-down
  636. key will access successive menu screens.
  637.  
  638. 1-5.2 Installing Automenu on a Floppy Diskette System
  639.  
  640. Automenu's main benefit is to those users who are using fixed disk systems.
  641. If you wish to use it on a floppy based system, here's what to do:
  642.  
  643.  
  644.  
  645.  
  646.  
  647.  
  648.  
  649.  
  650.   Automenu 4.5               THIS IS AUTOMENU                     Page 11
  651. After booting the computer, copy the following Automenu files to the root
  652. directory of the floppy disk you wish to use: AUTOMENU.COM, AUTOMAKE.EXE,
  653. AUTOCUST.COM, AUTO.BAT and AUTOMENU.MDF. Keep in mind that Automenu's
  654. strengths lie in its ability to change directories and run a wide variety of
  655. programs. Since floppy systems do not usually require subdirectory support,
  656. and their storage capacity is inherently limited, Automenu may be of less
  657. utility on those systems than on hard disk systems. If space is a problem,
  658. the AUTOMAKE.EXE and AUTOCUST.COM can be moved to a separate diskette as they
  659. are not needed except to modify the menu system.
  660.  
  661. Again, you can access AUTOMAKE from one of the menu selections and customize
  662. your own options. See Section 3 for details on using the Automenu commands,
  663. or print out some of the sample MDFs (Menu Definition Files) to see how they
  664. are structured. They are plain ASCII text files.
  665.  
  666. 1-6 Special Keys Within Automenu
  667.  
  668. While Automenu is running and a menu is displayed on-screen, there are
  669. several keys that will perform important functions. They are outlined later
  670. in Section 5.2 and include on-line help, program information, forced screen
  671. blackout, message input, and much more.
  672.  
  673. 1-7 Automenu, Up Close and Personal
  674.  
  675. Automenu is a menu driven, user defined software and system resource manager
  676. that allows users to easily define screens of menu choices and a series of
  677. DOS commands to be associated with each selection. For instance, if you make
  678. an item selection and then associate several DOS commands (program names,
  679. batch files or regular DOS commands like TYPE, ECHO, DIR, etc.) with that
  680. selection, whenever you select that option, those DOS commands will be built
  681. into a temporary batch file called AUTOTEMP.BAT and executed.
  682.  
  683. When Automenu runs, it looks for a Menu Definition File to know what options
  684. to show on-screen and which DOS commands the user wants to be run with those
  685. options. The Menu Definition File, or MDF, is a regular ASCII text file that
  686. contains a special Automenu text character in the first position of each line
  687. that will determine what Automenu will do with the remaining text. For
  688. example, a title line is created with the line "%THIS IS A TITLE LINE". The
  689. syntax for the typical MDF line of text is as follows:
  690.  
  691.  
  692.                Syntax 1. xDOS_Command Parameter [Parameter...]  
  693.  
  694.                Syntax 2. xUser_Defined_Data [%1...%9] 
  695.  
  696.  
  697. In both Syntax 1 and 2, "x" is one of the special Automenu Menu Definition
  698. Language characters, outlined in Section 6 (and Appendix C). Notice that
  699. there are no spaces between the "x" and the DOS_Command.
  700.  
  701.  
  702.  
  703.  
  704.  
  705.  
  706.  
  707.  
  708.  
  709.   Automenu 4.5               THIS IS AUTOMENU                     Page 12
  710. "DOS_Command" is any executable DOS command, including any filename with an
  711. extension of .COM, .EXE or .BAT, though there is a slightly different
  712. treatment for batch files. Because Automenu will build a temporary batch file
  713. from the DOS_Commands associated with the chosen selection and execute it,
  714. there is a small problem which stems from DOS's failure to return to a
  715. calling batch file from the batch file which has called it. DOS Versions 3.3
  716. and later address this problem with the CALL command, and prior versions can
  717. use COMMAND /C. You can also place the individual batch file commands in-line
  718. within the Menu Definition File, because Automenu will include these commands
  719. when it builds AUTOTEMP.BAT.
  720.  
  721. In Syntax 1, "Parameter" is any optional parameter that can be passed to the
  722. DOS command being used, and can be either a static parameter such as a drive
  723. letter or filename, or a dynamic variable as represented by the DOS
  724. replaceable parameters %1 through %9. As an example, here is a typical MDF
  725. text line as it might appear in your own personalized menu system:
  726.  
  727. +CHKDSK C:       <<<-- This is an example of a STATIC variable (C:)
  728.  
  729. +CHKDSK %1       <<<-- This is an example of a DYNAMIC variable (%1)
  730.  
  731. In Syntax 2, "User_Defined_Data" is any data you wish to be displayed
  732. on-screen or as a prompt to the user to aid in selecting from a variety of
  733. choices that have been defined. The best way to see these examples is to
  734. print out the sample MDFs that are included on the distribution diskette and
  735. study their layout and structure. More detailed explanations of the Automenu
  736. command set are in Section 6, and in Appendix C.
  737.  
  738. Included with this package is a program called AUTOMAKE, the Menu-Building
  739. Facility. AUTOMAKE is a text editor that allows you to create or edit
  740. existing Menu Definition Files, and get on-line help with the Automenu
  741. commands and functions. AUTOMAKE will speed the creation of new MDFs by
  742. actually providing a "skeleton" menu file that you can edit and modify to
  743. your own requirements. From DOS, you can access the Menu-Building Facility by
  744. being in the Automenu subdirectory and typing "AUTOMAKE" (no quotes) and
  745. pressing "Enter".
  746.  
  747. When you have finished editing your file, place the cursor in column 2 (the
  748. narrow column) and press ESCAPE, then press "Y" twice, input a password (if
  749. encryption is desired) or leave the password field blank, and press "Enter".
  750. At the AUTOMAKE menu, Option 3 will Exit to DOS. More details on using
  751. AUTOMAKE can be found in Section 3-8.
  752.  
  753. 1-8 Technical Notes and Power Tips
  754.  
  755. Automenu is (in the most simple sense) a program that writes batch files and
  756. controls their execution. When you associate one or more DOS commands with a
  757. menu selection, Automenu will write those commands to a temporary batch file
  758. (AUTOTEMP.BAT) and, under the control of AUTO.BAT, execute it. If you use the
  759. "resident" feature of Automenu (the {!}, {=}, or {-} commands), it will
  760. regain control automatically after completion of the DOS function(s). If you
  761. use the "non-resident" feature ({+}), then you must use a "+AUTO" command to
  762. restart Automenu. If you find that Automenu just dumps you out to the DOS
  763. prompt after making a menu selection, chances are good that you did not start
  764. Automenu with the AUTO.BAT batch file. (Look at the contents of AUTO.BAT to
  765. see what happens there.) Check your procedures again and see if that is the
  766. case.
  767.  
  768.   Automenu 4.5               THIS IS AUTOMENU                     Page 13
  769. When writing your own Menu Definition Files, keep these POWER TIPS in mind:
  770.  
  771. 1. Do not mix "resident" and "non-resident" batch commands within the same
  772. menu selection. These are the {!} and {+} commands.
  773.  
  774. 2. Do all your input {<} and output {>} messaging before using any other
  775. commands ({+}, {!}, {=}, or {-}). This allows you to prompt for input, then
  776. pass that input to DOS as a replaceable parameter (%1, %2, %3)
  777.  
  778. 3. Make certain to end your MDF with the "#" symbol - this tells Automenu
  779. that the file has ended. An error will occur if you do not include this.
  780.  
  781. 4. Use a {%} symbol within your MDF to signify a new page, and do not use
  782. more than eight {%} symbols in any one MDF.
  783.  
  784. 5. Do not forget to include a "Return to DOS" option on your main menu.
  785. Alternate menus should contain an option to return (or go) to another menu
  786. level, and may or may not include an option to return to DOS.
  787.  
  788. 6. You can specify a filename to be edited by Automake by typing "AUTOMAKE
  789. FILENAME.MDF" at the DOS prompt.
  790.  
  791. 7. Do not leave any blank lines in your MDF.
  792.  
  793. 8. Make reference to Appendixes A, B, C and D.
  794.  
  795. 9. To start Automenu, just type "AUTO".
  796.  
  797. 10. Call our Bulletin Board Service (BBS) 24 hours a day for technical
  798. assistance.
  799.  
  800.  
  801.  
  802.  
  803.  
  804.  
  805.  
  806.  
  807.  
  808.  
  809.  
  810.  
  811.  
  812.  
  813.  
  814.  
  815.  
  816.  
  817.  
  818.  
  819.  
  820.  
  821.  
  822.  
  823.  
  824.  
  825.  
  826.  
  827.   Automenu 4.5               THIS IS AUTOMENU                     Page 14
  828. SECTION 2
  829.  
  830. INSTALLING AUTOMENU
  831.  
  832. Automenu is most useful for systems with a fixed disk which contain most of
  833. the programs, software and utilities, that you use regularly. These files
  834. usually include programs for word processing, spreadsheets,
  835. telecommunications, graphics, utilities and data base management. Since
  836. procedures for fixed and diskette drives are similar, we will concentrate on
  837. fixed disk systems. 
  838.  
  839. For installing Automenu on a local area network, please refer to Section 9.
  840.  
  841. 2-1 Installing Automenu For the First Time
  842.  
  843. There is an accelerated installation routine in Section 1. The following
  844. procedure should be used by those less familiar with DOS, or who wish to
  845. customize their installation. This INSTALL will ask you to specify which
  846. subdirectory you want the Automenu programs copied to, and where your DOS
  847. programs are located. Experienced users can use either system to install
  848. Automenu.
  849.  
  850. When you first install Automenu, you will set up the conditions required to
  851. permit Automenu to interact with and make use of your files and programs. The
  852. Automenu installation program will ask you for specific information. Typing
  853. in this information sets up the program to your individual specifications.
  854.  
  855. The first action you must take to use Automenu is to INSTALL it, or "load"
  856. the program onto your fixed disk so it can be linked, or connected, to the
  857. programs it will control for you. To install Automenu on the hard disk for
  858. the FIRST TIME, perform the following steps:
  859.  
  860. 1. Start up your system. Be at the DOS prompt and logged to the Fixed Disk.
  861.  
  862. 2. Insert the Automenu diskette into your diskette drive A:.
  863.  
  864. 3. Type "A:INSTALL" and press ENTER.
  865.  
  866. You will now see the first of a series of help and prompt screens that will
  867. walk you through the installation procedure. You will be told of some of the
  868. decisions you will be asked to make as you proceed with installation. Study
  869. them closely, so you will be ready to respond to the prompts as they occur.
  870. If you don't understand a question right now, continue on with this tutorial.
  871. We will explain each prompt as it is displayed. It is also explained by
  872. Automenu, on screen. Press the ENTER key. The next display tells you more
  873. about what will be happening as you proceed with installation. As this prompt
  874. notes, the act of installing the program will teach you a great deal about
  875. Automenu. Press ENTER again.
  876.  
  877. What you see now is the Automenu Installation menu. This is actually Automenu
  878. running with a file called INSTALL.MDF, and as you will see, we will use it
  879. to do the installation! Press the "1" key to select Option "1" and proceed
  880. with the installation. The next display tells you how to choose the drive on
  881. which you wish to load Automenu. The default drive is C:, the common booting
  882. drive in a fixed disk system.
  883.  
  884.  
  885.  
  886.   Automenu 4.5            INSTALLING AUTOMENU                     Page 15
  887. The next screen asks for the name of the subdirectory in which Automenu will
  888. reside. We recommend using a subdirectory name of "\AUTOMENU", but you can
  889. use your keyboard cursor control keys to select whichever name you desire.
  890.  
  891. When you press ENTER, the next displays ask for the name of the drive and
  892. sub-directory in which your DOS commands are located. This is vital for the
  893. operation of Automenu. Select the drive letter from the list of choices,
  894. press ENTER, and then type in the name of the directory containing your DOS
  895. commands and press ENTER again. The common drive that DOS commands are on is
  896. the "C:" drive, but select whichever applies. A common name for the
  897. subdirectory used to hold the set of DOS command files is \DOS, but sometimes
  898. people use the ROOT directory (\). When inputting this subdirectory name, be
  899. sure to type the entire name, i.e., "\DOS" or "\DOSPROGS" (no quotes),
  900. including the backslash character.
  901.  
  902. When you press ENTER, the next display asks if your AUTOEXEC.BAT file sets
  903. the path of your system to the DOS commands. As the prompt tells you, if you
  904. aren't sure, respond with a "NO" by pressing the right cursor key, and the
  905. install program will automatically set the path for you.
  906.  
  907. NOTE: If your DOS commands are in the root directory of your hard disk, you
  908. might consider setting up a \DOS subdirectory and adding that subdirectory to
  909. your PATH command in AUTOEXEC.BAT so that the DOS command files will not
  910. clutter your root directory.
  911.  
  912. Next, you are asked if you want Automenu to come up each time you boot up.
  913. Since a major purpose of Automenu is to save time and keystrokes, calling
  914. Automenu at boot time is the most common way of invoking it. We recommend you
  915. select the default "YES."
  916.  
  917. Now, you will be given the opportunity to review the decisions you have made.
  918. Review these carefully. If they are okay, press ENTER. If they are NOT
  919. correct, select "NO" with the right cursor key, and then press ENTER.
  920. Automenu will now complete the installation process, and when the program is
  921. installed on your fixed disk, a screen indicating a successful completion
  922. that will appear. This can take a few minutes depending on the speed of your
  923. system. Press any key to return to the Automenu Installation Menu Screen.
  924. Exit to DOS, restart your system, and away you go! 
  925.  
  926. 2-2 Installing Automenu On a Diskette System
  927.  
  928. To use Automenu on a personal computer with no fixed disk requires an
  929. Automenu diskette which contains the essential working files. The minimum
  930. configuration for developing and using Automenu MDFs requires the files:
  931. AUTOMENU.COM, AUTOMAKE.EXE, AUTO.BAT, and ANY files ending with a .MDF
  932. extension. The file AUTOMAKE.EXE is only needed during the menu building
  933. process and can be erased if space on the diskette is needed. Also, the
  934. AUTOCUST.COM program only needs to be included if there will be changes made
  935. to the system configuration (colors, custom switches, mouse support, time and
  936. date format, etc.). See Section 8 for examples of the file AUTOEXEC.BAT
  937. required to bring up Automenu directly when the floppy diskette is the boot
  938. disk.
  939.  
  940.  
  941.  
  942.  
  943.  
  944.  
  945.   Automenu 4.5            INSTALLING AUTOMENU                     Page 16
  946. 2-3 Updating From a Previous Version of Automenu
  947.  
  948. If you are upgrading from a prior version of Automenu, you do NOT need to
  949. perform the Install procedure as outlined above. Depending on the version you
  950. are now using, follow the guidelines as listed below to load the newest files
  951. onto your system, and purge (delete) the old ones.
  952.  
  953. For Version 4 or 4.01 users, simply delete your old copies of the following
  954. files, and replace them with the same ones from your distribution diskette:
  955.  
  956. AUTOMENU.COM, AUTOMAKE.EXE, READ.ME and AUTOCUST.COM
  957.  
  958. Then copy all *.DOC and *.TXT files from the diskette to your computer
  959. system. This will copy the document files and other important new reference
  960. files to your computer system, overwriting older versions.
  961.  
  962. For Version 3 or 3.01 users, delete the following files and replace with the
  963. one in parentheses:
  964.  
  965. AUTOMENU.COM (AUTOMENU.COM), AUTOINST.COM (AUTOCUST.COM), and READ.ME
  966. (READ.ME)
  967.  
  968. Then copy AUTOMAKE.EXE, and all *.DOC and *.TXT files from the diskette to
  969. your computer system. This will copy the document files and other important
  970. new reference files to your computer system, including the new menu editor.
  971.  
  972. For Versions 2 and PRIOR, delete the following files and replace with the
  973. ones in parentheses:
  974.  
  975. AUTOMENU.COM (AUTOMENU.COM) and AUTOMENU.DOC (AUTOMENU.DOC)
  976.  
  977. Then copy AUTOMAKE.EXE to your hard disk and RENAME all *.DAT files to *.MDF.
  978. This will change all the Menu Definition filenames to be in accordance with
  979. extension names used by versions 3 and later. The format of these menu files
  980. is the same, but the extension (.MDF) has been changed. (To start Automenu,
  981. we now use a batch file called "AUTO.BAT" instead of the old "Start",
  982. "Restart", "Auto1" or "Auto2" batch files. Please make a note of this - it
  983. applies ONLY to Automenu versions 2.0 and prior.) Make certain to edit the
  984. AUTO.BAT file to contain a CD\ command to change directories into the
  985. Automenu area.
  986.  
  987. Care should be taken that in renaming Menu Definition Files, any references
  988. to those filenames will need to be changed, also. That is, if any of your
  989. menu files call another, and the names have been changed, Automenu is likely
  990. to issue a "Cannot Open MDF" error message. If this happens, just edit the
  991. menu files to reflect the new filenames you are using. For example, instead
  992. of using an "@AUTOMENU.DAT" command, you may have to use an "@AUTOMENU.MDF"
  993. to load an alternate menu file.
  994.  
  995.  
  996.  
  997.  
  998.  
  999.  
  1000.  
  1001.  
  1002.  
  1003.  
  1004.   Automenu 4.5            INSTALLING AUTOMENU                     Page 17
  1005. SECTION 3
  1006.  
  1007. DOS AND AUTOMENU
  1008.  
  1009. We referred to "DOS" commands in Section 1 of this manual. You probably have
  1010. seen the letters "DOS" in other reference books for your computer, and the
  1011. applications for it. The letters stand for Disk Operating System. This is
  1012. simply a program that runs your computer. It handles tasks such as input and
  1013. output functions - reading, writing, and printing to the screen.
  1014.  
  1015. You see one aspect of DOS each time you turn on your computer. That is the
  1016. "DOS prompt" that always greets you: A>, if you have floppy drives, and C> if
  1017. you have a fixed disk. You will see this prompt referred to often in these
  1018. instructions. It will always be shown just the way we have used it here: C>.
  1019. You will see this reference when you are required to enter a command that you
  1020. want DOS to execute directly from the prompt.
  1021.  
  1022. 3-1 Types of Commands
  1023.  
  1024. DOS uses two types of commands: INTERNAL and EXTERNAL.
  1025.  
  1026. INTERNAL commands are loaded into the computer's memory from a file called
  1027. COMMAND.COM. These commands remain in memory until the machine is turned off.
  1028. They are referred to as resident or internal commands.
  1029.  
  1030. EXTERNAL commands are performed by executable files (".COM", ".EXE" or ".BAT"
  1031. files) with the same name as the command. These "COMmand", "EXEcutable" or
  1032. "BATch" files are stored on your disk. They are loaded into memory and
  1033. executed only when you invoke them. They are referred to as external or
  1034. non-resident commands.
  1035.  
  1036. All files with a suffix (or extension) of .COM, .EXE, or .BAT can be executed
  1037. by invoking their name from the DOS prompt.
  1038.  
  1039. 3-2 Subdirectories
  1040.  
  1041. DOS 2.0 and subsequent versions have the capability of organizing your fixed
  1042. disk into subdirectories. This means you can store your files in smaller
  1043. logical groupings according to their type or function. Use of the
  1044. subdirectory facility makes it easier to locate and manage your files. It
  1045. also prevents any one directory from becoming so large that the process of
  1046. locating and executing commands is slowed due to the sheer number of files.
  1047.  
  1048. A common practice with users who have a fixed disk drive is to store all of
  1049. their DOS files in a subdirectory, possibly named "\DOS". The concept of
  1050. subdirectories is important to your use of Automenu. You will have many
  1051. occasions to work with subdirectories when you create your menus.
  1052.  
  1053. A directory is a table of contents of the files on a specific part of the
  1054. disk. You might think of it as a file drawer. The main directory is called
  1055. the "root" directory. DOS identifies the root directory with a backslash (\).
  1056. You will often use this symbol when you create menus.
  1057.  
  1058. The file drawer--the root directory--may contain many file folders. These are
  1059. the subdirectories that are linked to the root like branches on a tree. A
  1060. typical group of file folders might be linked to the root like this:
  1061.  
  1062.  
  1063.   Automenu 4.5               DOS AND AUTOMENU                     Page 18
  1064.                             C:\ (ROOT DIRECTORY)
  1065.                             |
  1066.          +------------------+---------------------------+
  1067.          |                                              |
  1068.          |                                              |
  1069.          |                                         C:\AUTOMENU
  1070.      C:\SALES
  1071.          |
  1072.  +-------+---------------+
  1073. \SALES\ATL          \SALES\DEN
  1074.  
  1075.  
  1076. Notice that there is a specific PATH from the root to, say, your Atlanta
  1077. sales data. If you wanted to access that data, you would have to tell your
  1078. system what PATH to take to get to that data. See your DOS manual for more
  1079. discussion on the "PATH" command.
  1080.  
  1081. When specifying a PATH or SUBDIRECTORY name, "\SALES" tells the system to go
  1082. to that directory, or area of the disk. Then the "\ATL" directs the system to
  1083. the next lower directory, allowing more detail of organization to the files.
  1084.  
  1085. 3-3 Extensions
  1086.  
  1087. The last term represents the specific document in the \SALES\ATL file folder
  1088. that you want to use. All files on your system have a name similar in
  1089. structure to this (FILENAME and EXTENSION, as in filename.ext). Automenu uses
  1090. the extension ".MDF", to indicate that these are Menu Definition Files. When
  1091. you create an MDF, you will give it a FILENAME. Common extensions of files
  1092. that can be executed (like DOS commands and programs) have extensions such as
  1093. ".COM" (command), ".EXE" (executable), and ".BAT" (batch).
  1094.  
  1095. 3-4 Batch Files
  1096.  
  1097. A batch file is a series of DOS commands that can be entered through the
  1098. keyboard which are incorporated into a text file; one that can then be
  1099. executed any time either from the keyboard or, as in Automenu, from a
  1100. program. One of the ways that Automenu effects menu selections is by creating
  1101. a batch file named AUTOTEMP.BAT and executing that file.
  1102.  
  1103. One batch file in the DOS root directory is AUTOEXEC.BAT. This is a batch
  1104. file that is called upon by DOS during the booting process. Automenu will be
  1105. most useful if it is activated when your system is first turned on. We can
  1106. make this happen by putting commands in the AUTOEXEC.BAT file that
  1107. automatically activate Automenu. You may do that when you install Automenu on
  1108. your fixed disk (see Section 2).
  1109.  
  1110. 3-5 The Elements of Automenu
  1111.  
  1112. The heart of Automenu is AUTOMENU.COM, an executable file that displays menus
  1113. on the screen and causes menu selections to be executed. The menu contents
  1114. are stored in Menu Definition Files with ".MDF" filename extensions ("MDFs").
  1115. An ensemble of several MDFs are delivered with Automenu, one primary MDF and
  1116. many other alternate MDFs. The primary MDF (AUTOMENU.MDF) is the one that is
  1117. loaded by default whenever Automenu is activated by typing "AUTO" at the DOS
  1118. prompt.
  1119.  
  1120.  
  1121.  
  1122.   Automenu 4.5               DOS AND AUTOMENU                     Page 19
  1123. AUTOMENU.COM is ALWAYS invoked by a batch file called AUTO.BAT, whose primary
  1124. function is to run Automenu and then run any temporary files created by
  1125. Automenu.
  1126.  
  1127. NOTE: IF YOU ARE RUNNING AUTOMENU, ALWAYS TYPE "AUTO" TO BEGIN.
  1128.  
  1129. Automenu also contains programming tools to A) create and edit menus and to
  1130. B) customize the ways in which the menus are displayed and in the ways in
  1131. which the program AUTOMENU.COM operates. AUTOMAKE.COM is the text editor you
  1132. can use to create, modify or print out your menu definition files.
  1133. AUTOCUST.COM is the customization utility you can use to change screen
  1134. colors, blackout time delay, and other performance features of Automenu.
  1135.  
  1136. Documentation files and installation files complete the Automenu package.
  1137.  
  1138. 3-6 The Automenu Files
  1139.  
  1140. The files listed below comprise the Automenu package. They are categorized
  1141. and their functions are listed below. You may place your release disk in
  1142. Drive A: and give the "DIR A:" command to see the listing of these files.
  1143.  
  1144. The Automenu Programs
  1145.  
  1146. AUTO.BAT                      Batch file that starts Automenu
  1147.  
  1148. AUTOMENU.COM                  The operating program 
  1149.  
  1150.  
  1151. Programming Tools
  1152.  
  1153. AUTOCUST.COM                  Menu Customization Utility
  1154.  
  1155. AUTOMAKE.EXE                  Menu-Building Facility
  1156.  
  1157.  
  1158. Documentation Files
  1159.  
  1160. PRINTDOC.BAT                  Batch File to print this document
  1161.  
  1162. AUTOMENU.DOC                  This document
  1163.  
  1164. READ.ME                       Special information - READ THIS!!
  1165.  
  1166. LICENSE.DOC                   Automenu License Agreement
  1167.  
  1168. (C)1988.DOC                   Copyright Notice
  1169.  
  1170.  
  1171.  
  1172.  
  1173.  
  1174.  
  1175.  
  1176.  
  1177.  
  1178.  
  1179.  
  1180.  
  1181.   Automenu 4.5               DOS AND AUTOMENU                     Page 20
  1182. Installation Files
  1183.  
  1184. INSTALL.BAT                   Fixed disk installation routine
  1185.  
  1186. INSTALL.MDF                   Installation menu definition file
  1187.  
  1188. Miscellaneous Other Files
  1189.  
  1190. SW.COM                        "SWap Monitor" Utility Program
  1191. SW.DOC
  1192.  
  1193.  
  1194. 3-7 Menu Definition Files
  1195.  
  1196. A Menu Definition File (MDF) is a data file in which an Automenu menu is
  1197. stored. There may be up to eight menu pages and up to eight menu selections
  1198. on each page in any MDF.
  1199.  
  1200. 3-7.1 Organization and Purpose of Menu Definition Files
  1201.  
  1202. Initially, a single, primary MDF, supplemented by the MDFs delivered with
  1203. Automenu, may be sufficient for many users. Over time, though, as you learn
  1204. how to harness the power of Automenu, you will develop an ensemble of
  1205. Automenu MDFs. A user's ensemble will have only one primary MDF, and it will
  1206. be the one that is displayed whenever the Automenu system is activated.
  1207. Any number of subsidiary MDFs can be called from the primary MDF by execution
  1208. of a menu selection. Any MDF (subsidiary or primary) can be called from
  1209. another MDF. The MDFs you create, therefore, can move between related menus
  1210. and be set up to provide maximum utility for everyday use.
  1211.  
  1212. 3-7.2 Editing Menu Definition Files
  1213.  
  1214. An MDF is a regular ASCII text file. It consists solely of standard ASCII
  1215. characters (letters and numbers, usually). It can be edited with any text
  1216. editor that can read and write ASCII files without transforming the
  1217. characters or inserting special characters. Wordstar, when used in its
  1218. non-document mode, is such an editor. Another is the DOS line editor EDLIN. 
  1219.  
  1220. AUTOMAKE is a special-purpose editor developed by Magee Enterprises which
  1221. provides error messages specific to Automenu MDF file development and
  1222. incorporates tests of the structure and syntax of commands programmed into an
  1223. MDF. It is provided to make it easier for a new Automenu user to get started
  1224. in writing MDFs. After learning Automenu, advanced users may choose to use
  1225. AUTOMAKE as their Menu Definition File editor due to it's on-line HELP and
  1226. on-screen explanation of the Menu Definition Language symbols, although any
  1227. text editor that can produce plain ASCII text files will also work.
  1228.  
  1229.  
  1230.  
  1231.  
  1232.  
  1233.  
  1234.  
  1235.  
  1236.  
  1237.  
  1238.  
  1239.  
  1240.   Automenu 4.5               DOS AND AUTOMENU                     Page 21
  1241. 3-7.3 Menu Definition Development Philosophy
  1242.  
  1243. The MDFs delivered with Automenu are intended to demonstrate how the menu
  1244. system works and to provide some rudimentary general purpose functions. In
  1245. order to make Automenu useful in the PC environment, the user must develop
  1246. primary and alternate MDFs that address his or her own needs and priorities.
  1247.  
  1248. The next section will guide the user through installation of Automenu in such
  1249. a way that Automenu may be activated automatically, displaying menus defined
  1250. by these demonstration MDFs.
  1251.  
  1252. It is expected that the MDF files provided will be used initially as a guide
  1253. to developing your own primary MDFs. Eventually, they may be supplemented as
  1254. you modify the most useful of those functions to meet your own requirements
  1255. and incorporate those functions into your own MDFs.
  1256.  
  1257. 3-7.4 Getting Up to Speed with Automenu
  1258.  
  1259. The delivered primary MDF is called AUTOMENU.MDF. It is a working menu with
  1260. descriptive material and user exercises. A user with no knowledge of
  1261. Automenu whatsoever can invoke the Menu after system installation by just
  1262. typing "AUTO".
  1263.  
  1264. After performing the installation as described in Section 2, one should
  1265. activate Automenu by typing "AUTO", enter the Menu-Building Facility by
  1266. selecting menu option 1, and do the tutorial exercises. Following the
  1267. Automenu tutorial, one should either make a primary MDF as described in
  1268. Section 4, entitled "Making a Menu", or modify an existing file and begin to
  1269. use that menu as a primary MDF.
  1270.  
  1271. 3-8 AUTOMAKE - The Menu Building Facility
  1272.  
  1273. AUTOMAKE is the menu file editor that is included with Automenu, and features
  1274. on-line help and the ability to "encrypt" your menu files so that
  1275. unauthorized users cannot view or modify them. AUTOMAKE is shown on the main
  1276. menu screen that comes with Automenu as the "Menu-Building Facility", and can
  1277. be executed just by selecting that menu option, or from the DOS prompt by
  1278. typing "AUTOMAKE" and pressing ENTER. AUTOMAKE can now also accept the name
  1279. of a file to be edited on the DOS command line, i.e., AUTOMAKE
  1280. "filename.MDF", where "filename.MDF" is the MDF to be edited. The default is
  1281. AUTOMENU.MDF.
  1282.  
  1283. 3-8.1 Activating AUTOMAKE
  1284.  
  1285. Remove the Automenu diskette from Drive A: and reboot your computer by
  1286. pressing the DEL key while holding the CTRL and ALT keys down, or enter the
  1287. command "AUTO" at the DOS prompt to start Automenu and to bring up the sample
  1288. menu. (If you installed Automenu so as to activate Automenu when the system
  1289. is booted, you will now see the first page of the sample menu.)
  1290.  
  1291. Note that selection 1 invokes the "Menu-Building Facility". Press the ENTER
  1292. key (to select the currently highlighted menu selection) or the 1 key or the
  1293. Function Key F1 (to choose selection 1 regardless of the highlighted
  1294. selection) to enter AUTOMAKE.
  1295.  
  1296.  
  1297.  
  1298.  
  1299.   Automenu 4.5               DOS AND AUTOMENU                     Page 22
  1300. You will now see the selections offered by the Menu-Building Facility
  1301. displayed on your screen.
  1302.  
  1303. Type the numeral "1" at the prompt to modify an old menu.
  1304.  
  1305. The next screen will ask for the name of a Menu Definition File to edit.
  1306. Enter the name "AUTOMENU.MDF" in the highlighted space and press ENTER. The
  1307. first screenful of AUTOMENU.MDF will be displayed on the screen.
  1308.  
  1309.  
  1310. User Exercise: The Automenu Tutorial
  1311.  
  1312. While the Menu-Building Facility is still on the screen, examine the more
  1313. definitive descriptions of the Menu Building Facility and Control Keys on the
  1314. following pages.
  1315.  
  1316. The figure below displays the Menu-Building Facility screen. A description of
  1317. the numbered areas follows.
  1318.  
  1319. ================================================================
  1320.   MDF Functions      |              MDF Information
  1321. -----------------+---+------------------------------------------
  1322.                  |   |
  1323.                  |   |
  1324.       -1-        |   |                   -3-
  1325.                  |-2-|
  1326.                  |   |
  1327.                  |   |
  1328. -----------------+---+------------------------------------------
  1329.                            -4-
  1330. ----------------------------------------------------------------
  1331.                            -5-
  1332.  
  1333. ----------------------------------------------------------------
  1334.                            -6-
  1335. ================================================================
  1336.   Figure 3-2. Areas of MDF Display (see Table 3.1 following)
  1337.  
  1338.  
  1339.  
  1340.  
  1341.  
  1342.  
  1343.  
  1344.  
  1345.  
  1346.  
  1347.  
  1348.  
  1349.  
  1350.  
  1351.  
  1352.  
  1353.  
  1354.  
  1355.  
  1356.  
  1357.  
  1358.   Automenu 4.5               DOS AND AUTOMENU                     Page 23
  1359. This is the screen you will subsequently use to build your own menu. You can
  1360. see the type of entries you will be making. Each area of the MDF screen is
  1361. defined in the table below.
  1362.  
  1363. Area     Function                         Description
  1364. ----     --------                         -----------------------------
  1365.  
  1366. 1        Protected--AUTOMAKE              The entries in this column
  1367.          identifies symbol                describe the function of the
  1368.          entered in Area 2.               command in column (or area) 2.
  1369.  
  1370.  
  1371. 2        Command symbols are              The function codes you enter here
  1372.          entered here.                    will execute the required menu 
  1373.                                           building functions.
  1374.  
  1375. 3        Text to appear on                The text you type in this column
  1376.          your menu or used                is the text you want in the menu
  1377.          by Automenu                      section specified in column 1,
  1378.                                           or commands you want Automenu
  1379.                                           to execute.
  1380.  
  1381. 4        Protected--status                Error messages are displayed in
  1382.          line.                            this area.
  1383.  
  1384.  
  1385. 5        Protected--MDF                   When HELP toggle (F1) is ON,
  1386.          functions and                    functions entered in column 2
  1387.          HELP messages are                are defined. When HELP toggle
  1388.          displayed.                       is OFF, the name of all MDF
  1389.                                           symbols are shown.
  1390.  
  1391. 6        Protected--                      Certain keys are programmed to
  1392.          frequently used                  make your work easier. These are
  1393.          key functions.                   indicated here.
  1394.  
  1395.  
  1396.  
  1397. Area 2 is also referred to as "Column 2." When viewed by a text editor,
  1398. Column 2 will be the LEFTMOST character position. Area 3 will comprise the
  1399. remainder of the text area. Area 1 is an AUTOMAKE interpretation of the
  1400. symbol in area/column 2 and WILL NOT appear on general purpose text editors
  1401. like Wordstar or DOS's EDLIN line editor.
  1402.  
  1403.  
  1404.  
  1405.  
  1406.  
  1407.  
  1408.  
  1409.  
  1410.  
  1411.  
  1412.  
  1413.  
  1414.  
  1415.  
  1416.  
  1417.   Automenu 4.5               DOS AND AUTOMENU                     Page 24
  1418. 3-8.2 Menu Building Facility Key Functions
  1419.  
  1420. To make menu-building easier, several keys are given special functions. These
  1421. are described in Table 3.2.
  1422.  
  1423. Table 3.2. Menu-Building Facility Programmed Key Functions
  1424.  
  1425. Key                Function               Description
  1426. ---                --------               --------------------------------
  1427.  
  1428. F1                 HELP toggle            ON--extended Help messages 
  1429.                                           displayed;
  1430.                                           OFF--function of all MDF symbols.
  1431.  
  1432. F3                 Line insert            Adds a blank line below cursor
  1433.  
  1434. F4                 Delete                 Deletes entire line on which
  1435.                                           cursor appears.
  1436.  
  1437. INS                Insert toggle          ON--allows you to insert text
  1438.                                           from cursor position;
  1439.                                           OFF--new text overwrites old.
  1440.  
  1441. DEL                Delete                 Deletes a character to the left 
  1442.                                           of the cursor.
  1443.  
  1444. ESC                Exit MDF               With cursor in column 2, ESC
  1445.                                           returns you to the operating
  1446.                                           system.
  1447.  
  1448. ENTER              Enter data             Enters the line just completed,
  1449.                                           and moves cursor to next line;
  1450.                                           On some keyboards, this key is 
  1451.                                           marked RETURN.
  1452.  
  1453. HOME               Cursor return          When cursor is in column 3, this
  1454.                                           key moves it to the first
  1455.                                           character in the first line in
  1456.                                           column 3.
  1457.  
  1458. END                End of page            Moves cursor to last character in
  1459.                                           column 3.
  1460.  
  1461. CTRL               Top of MDF             Moves cursor to top of MDF
  1462. HOME
  1463.  
  1464. CTRL               Bottom of              Moves cursor to bottom of MDF.
  1465. END                MDF
  1466.  
  1467. PgDn               Next page              Displays next page in MDF
  1468.  
  1469. PgUp               Previous               Displays previous page in MDF
  1470.                    page
  1471.  
  1472. Arrow              Cursor                 Moves cursor right, left, up,
  1473.                    movement               down in direction of arrow.
  1474.  
  1475.  
  1476.   Automenu 4.5               DOS AND AUTOMENU                     Page 25
  1477. 3-8.3 Exiting the Edit Mode of the Menu Building Facility
  1478.  
  1479. Now that you are familiar with the facilities you will use, you are almost
  1480. ready to build a menu. First, we will escape from the Menu Building Facility
  1481. and save your modified AUTOMENU.MDF.
  1482.  
  1483. 1. Place the cursor in column 2 (the narrow column).
  1484.  
  1485. 2. Press the ESC key.
  1486.  
  1487. 3. At the prompt, type "Y".
  1488.  
  1489. 4. At the next prompt, type "Y".
  1490.  
  1491. You will be prompted for a password to protect the menu file. If you wish to
  1492. encrypt (to protect, or scramble) your menu file, enter a password up to 8
  1493. characters and press "ENTER". If you do not input a password, the file will
  1494. not be encrypted.
  1495.  
  1496.                                 >>>WARNING<<<
  1497.  
  1498. If you password protect your menu files, you MUST make certain to document
  1499. what that password is - DO NOT forget it.
  1500. You are then returned to the Menu-Building Facility menu. Option 3 will exit
  1501. the facility and return you to your menu screen. Remember - AUTOMAKE will
  1502. accept the name of a file to be edited from the DOS command line or from the
  1503. Automenu prompt by typing AUTOMAKE "filename.MDF".
  1504.  
  1505. 3-9 Summary: Planning and Creating Working Menus
  1506.  
  1507. First, write down the most common functions you perform that take more than a
  1508. few keystrokes from the DOS prompt. The following are examples:
  1509.  
  1510. Starting an application in a subdirectory, e.g. Spreadsheet, Database, etc.
  1511.  
  1512. Backing up your hard disk 
  1513.  
  1514. Parking the hard disk before shutdown 
  1515.  
  1516. Now, write these functions out in menu pages, one sheet per menu page, in the
  1517. sequence you want them to appear on the menu. Remember to include a menu
  1518. selection to exit to DOS. Compose the command strings that will:
  1519.  
  1520. 1)  change to the desired subdirectory ( +CD \DesiredSub )
  1521. 2)  execute the application program ( +PgmName [Parameter] [Parameter...] )
  1522. 3)  return to the Automenu subdirectory ( +CD \AUTOMENU )
  1523. 4)  execute the AUTO batch file to return to the menu ( +AUTO filename.mdf)
  1524.  
  1525. (Automenu Commands are in parentheses.)
  1526.  
  1527. Add Menu Description lines for the remainder of the Menu as you feel
  1528. necessary. Using these worksheets, you can enter the AUTOMAKE Menu-Building
  1529. Facility and modify the MDF file that came with Automenu to include your own
  1530. customized menu selections. As with all development activities in new areas,
  1531. it is best to take a small bite first and confirm that your scheme works
  1532. before composing an elaborate set of menus; then add one or a few items at a
  1533. time, successively confirming that your enhanced menu works as planned.
  1534.  
  1535.   Automenu 4.5               DOS AND AUTOMENU                     Page 26
  1536. SECTION 4 
  1537.  
  1538. MAKING A MENU
  1539.  
  1540. Now that you're acquainted with Automenu's menu-building facility, you are
  1541. ready to construct your own customized menu.
  1542.  
  1543. We will walk through the construction of a primary MDF to give you a base to
  1544. build on. After exiting from the Menu-Building Facility, you will find the
  1545. first page of the primary MDF menu again displayed on the screen. Again press
  1546. ENTER to return to AUTOMAKE and choose Menu-Building Facility selection "1."
  1547.  
  1548. You will now make your own primary MDF, AUTOMENU.MDF which will be able to
  1549. call upon the other Alternate MDFs which were delivered with Automenu.
  1550.  
  1551. 4-1 Developing an MDF
  1552.  
  1553. Remember, a Menu Definition File (MDF) is the Automenu file in which your
  1554. menu is stored. You can store as many as eight menu pages with up to eight
  1555. selections per page in each MDF. Menu selections can load ALTERNATE MDFs in a
  1556. multi-level tree structure or even in peer-to-peer structure.
  1557.  
  1558. To begin creating a menu, perform the following steps:
  1559.  
  1560. 1.  Access the Menu-Building Facility menu as explained in paragraph 2-3.  If
  1561. you are not within Automenu, you may type "AUTOMAKE" at the C> prompt. 
  1562.  
  1563. 2.  On the AUTOMAKE screen, select "1" by pressing the "1" key.
  1564.  
  1565. 3.  You are prompted to enter a file name for your MDF. You can give your MDF
  1566. any valid DOS file name of up to eight characters, with the three extension
  1567. characters, "MDF", such as TEST.MDF. Type in your MDF name. We will use
  1568. TEST.MDF, type: "TEST.MDF" (NO QUOTES), then press ENTER.
  1569.  
  1570. 4.  AUTOMAKE will search for an MDF file by that name. When it fails to find
  1571. the file, it will report that this must be a new MDF; press ENTER to
  1572. continue. A starter ("framework") menu will then be displayed.
  1573.  
  1574.  
  1575. This starter menu shows you a small example of some of the types of entries
  1576. you will be making when you create a menu. Study them before continuing.
  1577.  
  1578. It may be useful to have a permanent record for reference. Use the Print Menu
  1579. Definition File option on the main menu of AUTOMAKE to print the current menu
  1580. file. 
  1581.  
  1582. 4-1.1 Entering Comments
  1583.  
  1584. This starter menu is designed to function as a "template" for your own menu.
  1585. You are going to create your menu by adding to and editing this template.
  1586. This gives you the chance to see how a selection or item was entered, so you
  1587. will have a better idea of how to enter your own menu choices.
  1588.  
  1589. You must always have an "Exit to DOS" selection on your menu so you can
  1590. return to the system if necessary.
  1591.  
  1592.  
  1593.  
  1594.   Automenu 4.5                 MAKING A MENU                      Page 27
  1595. You will be using the F3 (INSERT) function key throughout the development of
  1596. your menu. Remember that each time you are instructed to press F3, your
  1597. cursor must be on the line ABOVE where you want the inserted line to appear.
  1598.  
  1599. You will probably want to provide certain data and notes on each menu that
  1600. explain aspects of the menu to anyone revising or modifying the file. The
  1601. first function we look at will make that possible (column numbers refer to
  1602. those illustrated in Figure 3-1).
  1603.  
  1604. The period {.} tells Automenu that any entry made in column 3, following that
  1605. symbol, is a comment only, and should be ignored. This gives you the ability
  1606. to enter explanatory data in the MDF, such as the date of the last menu
  1607. update, for your own use.
  1608.  
  1609. 1. The cursor will be at line 1, column 2.
  1610.  
  1611. 2. Press "END" to move the cursor into column 3
  1612.  
  1613. 3. Type "Primary MDF-Building Exercise" in column 3.
  1614.  
  1615. 4. Press ENTER to return the cursor to column 2.
  1616.  
  1617. 4-1.2 Giving Your Menu A Title
  1618.  
  1619. Each menu needs a descriptive title that will be displayed on the top line of
  1620. the screen when it is used. The {%} function provides this capability.
  1621.  
  1622. 1. The cursor will be on the line where the word "Title" appears in column 1.
  1623.  
  1624. The percent {%} symbol tells Automenu that an entry in column 3 following the
  1625. {%} symbol is a menu title. The title will be displayed on your completed
  1626. menu, in the center of the top line.
  1627.  
  1628. 2. Press the END key; type "Main Menu" (NO QUOTES) in column 3.
  1629.  
  1630. 3. Delete the remainder of the line with the DEL key
  1631.  
  1632. 4. Return the cursor to column 2 by pressing ENTER.
  1633.  
  1634. 4-1.3 Entering Your Menu Selections
  1635.  
  1636. Each menu will give the user the program selections that can be selected from
  1637. that menu. Each menu page may include up to eight menu selections. 
  1638.  
  1639. 1. Move the cursor up one line; press F3; move the cursor down one line
  1640.  
  1641. 2. Type the symbol {*} in column 2.
  1642.  
  1643. The word "Selection" appears in column 1.
  1644.  
  1645. The {*} symbol is the code for a menu selection.
  1646.  
  1647. 3. Toggle the INS key to change to the INSERT Mode
  1648.  
  1649. 4. Type "Root Directory" (NO QUOTES)
  1650.  
  1651. 5. Press ENTER.
  1652.  
  1653.   Automenu 4.5                 MAKING A MENU                      Page 28
  1654. You have entered the first menu selection on the first page of your menu.
  1655.  
  1656. 6. Type {*} in column 2.
  1657.  
  1658. 7. Type "Automenu Sample Menus" in column 3 (NO QUOTES).
  1659.  
  1660. 8. Press ENTER.
  1661.  
  1662. You have now added a menu selection for accessing the sample menus. 
  1663.  
  1664. 4-1.4 Including DOS Commands on the Menu
  1665.  
  1666. The entries above only cause Automenu to display selections on the screen.
  1667. They do not provide any information about how to cause those selections to be
  1668. executed. We will (for purposes of demonstration) build a menu selection to
  1669. display the files in the root directory; since we were in the \AUTOMENU
  1670. subdirectory to activate the menu, we will change to the root directory, call
  1671. for the directory, then change back to \AUTOMENU and call up the menu display
  1672. again.
  1673.  
  1674. 1. Move the cursor to your "Root Directory" entry.
  1675.  
  1676. 2. Press F3 to insert a line.
  1677.  
  1678. 3. Type {?}
  1679.  
  1680. 4. Type "Contents of the Root Directory"
  1681.  
  1682. 5. Press ENTER
  1683.  
  1684. 6. Type {+} in column 2.
  1685.  
  1686. The {+} symbol directs Automenu to execute any command following the code as
  1687. a DOS command.
  1688.  
  1689. 7. Type "CD \"
  1690.  
  1691. 8. Press ENTER
  1692.  
  1693. 9. Type {+} in column 2.
  1694.  
  1695. 10. Type "DIR"
  1696.  
  1697. 11. Press ENTER
  1698.  
  1699. These are commands that you could have entered from the keyboard. They will
  1700. be part of a batch file called AUTOTEMP.BAT written and executed by Automenu
  1701. whenever you invoke this menu selection. 
  1702.  
  1703. 12.  Type {+} 
  1704.  
  1705. 13.  Type "PAUSE"
  1706.  
  1707. 14.  Press ENTER
  1708.  
  1709. This will cause the display to be retained on the screen until the operator
  1710. is ready to continue.
  1711.  
  1712.   Automenu 4.5                 MAKING A MENU                      Page 29
  1713. With these commands, Automenu will automatically display the root directory,
  1714. and pause to wait for a keystroke before continuing.
  1715.  
  1716. When we have finished looking at the root directory we must return to
  1717. Automenu. To do that, the system must be given the return path.
  1718.  
  1719. 15. Type {+}
  1720.  
  1721. 16. Type "CD \AUTOMENU"
  1722.  
  1723. 17. Press ENTER
  1724.  
  1725. 18. Type {+}
  1726.  
  1727. 19. Type "AUTO TEST.MDF"
  1728.  
  1729. This last command returns control to Automenu and displays the TEST.MDF menu.
  1730. It is important that you end all {+} command series--those preceded by the
  1731. plus {+} symbol--with "AUTO" so your menu returns to the screen when you
  1732. complete your work with the selection. If you do not make "AUTO" the last
  1733. command, the user will be returned to DOS.
  1734.  
  1735. What you have now on this portion of the menu is this:
  1736.  
  1737. .Primary MDF-Building Exercise       <<<- Comment Line Only
  1738. %Main Menu                           <<<- Menu Title Line
  1739. *Root Directory                      <<<- Name of Menu Selection
  1740. +CD \                                <<<- "Batch" of DOS Commands to Change
  1741. +DIR                                 <<<- Directory, List It, then
  1742. +PAUSE                               <<<- Wait for a Keystroke to Continue
  1743. +CD \AUTOMENU                        <<<- Then Change Directory Back to
  1744. +AUTO TEST.MDF                       <<<- Automenu and restart the Test Menu
  1745.  
  1746. What you have done is to create a "DOS Batch routine," similar to the batch
  1747. files discussed in Section 3. These commands will be formed into a temporary
  1748. batch file (AUTOTEMP.BAT) and executed by Automenu when this menu option is
  1749. selected by the operator.
  1750.  
  1751. The user will construct command routines for other selections in a similar
  1752. fashion. The command routine to display a different menu would look like
  1753. this:
  1754.  
  1755. *Automenu Sample Menu            <<<- Menu Selection Name
  1756. @DIFFERENT.MDF                   <<<- Loads Another MDF and Displays It.
  1757.                                  Specify a Drive Letter and Path if
  1758.                                  File is not in Current Subdirectory
  1759.                                  (i.e., @D:\AUTO\DIFFERENT.MDF)
  1760.  
  1761. Inexperienced users may write Automenu command sets that give unexpected
  1762. results. For example, if commands are not entered in the order Automenu
  1763. expects to find them, undesirable operations may occur. One of the most
  1764. common mistakes users make is not placing an "End-of-File" mark {#} on the
  1765. last line of the MDFs they create. As we will discuss next, this symbol is
  1766. very important to the proper running of Automenu.
  1767.  
  1768.  
  1769.  
  1770.  
  1771.   Automenu 4.5                 MAKING A MENU                      Page 30
  1772. 4-2 Completing the Menu
  1773.  
  1774. An End-of-File mark {#} MUST follow the menu selections that comprise the
  1775. menu to indicate the end of the MDF to AUTOMENU.COM.
  1776.  
  1777. 4-2.1 The End-Of_file Mark
  1778.  
  1779. PAGE DOWN to the end of the file and note the {#} symbol in column 2 of the
  1780. last line in the file.
  1781.  
  1782. If it is absent, the {#} End-of-File symbol can be placed at the end of the
  1783. file just like any other column 2 symbol.
  1784.  
  1785. When called by the AUTO.BAT program, Automenu must find a {#} symbol in order
  1786. to complete the process of reading in the MDF before it can proceed to
  1787. display a menu on the monitor. Absence of the {#} symbol will cause an error
  1788. message appear on the monitor.
  1789.  
  1790. An occurrence of the {#} symbol before the intended end of the MDF will cause
  1791. all menu lines after the {#} sign to be ignored. The menu will appear to
  1792. consist of only those lines before the {#} symbol.
  1793.  
  1794. 4-2.2 Saving the MDF
  1795.  
  1796. Exit and save your test menu: 
  1797.  
  1798. 1. Place the cursor in column 2.
  1799.  
  1800. 2. Press the ESC key.
  1801.  
  1802. 3. At the prompt, type "Y".
  1803.  
  1804. 4. At the next prompt, type "Y", as we want to save our sample this time.
  1805.  
  1806. Automenu now asks if you wish to password protect your menu. A password lets
  1807. you prevent unauthorized users from accessing your MDF. This protects your
  1808. MDF from being changed. For now, we have no need to protect the test menu.
  1809. Without inputting anything in the field, just press ENTER.
  1810.  
  1811. The functions and symbols you have just used are summarized, along with
  1812. others, in Section 6.
  1813.  
  1814. 4-3 An Aid In Diagnosing Menu Development Problems
  1815.  
  1816. Inexperienced users may write Automenu command sets that give unexpected
  1817. results. If such a result occurs and then command is returned to Automenu, it
  1818. may be of interest to look at the batch file that was just executed. This
  1819. will be impossible if the EXIT TO DOS selection is used before reading the
  1820. batch file because a new AUTOTEMP batch file will have been written. A
  1821. debugging feature that can be handy is a menu selection that types the
  1822. previous AUTOTEMP.BAT file (and does not create a new batch file to do it).
  1823. Using the DOS TYPE command and the {=} Automenu command, develop such a
  1824. command and place it on a second menu page with a Title {%} such as
  1825. "Diagnostic Aid."
  1826.  
  1827.  
  1828.  
  1829.  
  1830.   Automenu 4.5                 MAKING A MENU                      Page 31
  1831. 4-4 Developing an MDF from Scratch
  1832.  
  1833. You may also build a menu from scratch using AUTOMAKE.COM. Advanced users may
  1834. also modify and build menus from scratch using their own text editor. To
  1835. begin creating a new menu, perform the following steps:
  1836.  
  1837. 1.  Move to the \AUTOMENU subdirectory.  
  1838.  
  1839. 2.  Execute the AUTOMAKE program with the command:
  1840.  
  1841.                                  C:>AUTOMAKE
  1842.  
  1843. 3.  When the first AUTOMAKE screen appears, select option 1.
  1844.  
  1845. 4.  Enter a unique MDF name of your own choosing, such as "MYAUTO.MDF" in the
  1846. highlighted space and press ENTER.
  1847.  
  1848. AUTOMAKE will search for an MDF file by that name. When it fails to find the
  1849. file, it will report that this must be a new MDF; press ENTER to continue. A
  1850. starter menu will then be displayed.
  1851.  
  1852. This starter menu shows you a small example of some of the types of entries
  1853. you will be making when you create a menu. Study them before continuing. It
  1854. may be useful to "dump" the screen to your printer, so you will have a
  1855. permanent record for reference. Use the Shift-PrtSc keys to print the current
  1856. screen to printer. 
  1857.  
  1858. This starter menu is designed to function as a "template" for your own menu.
  1859. You are going to create your menu by adding to this template. This gives you
  1860. the chance to see how a selection or item was entered, so you will have a
  1861. better idea of how to enter your own.
  1862.  
  1863. 4-5 Moving Between Menus
  1864.  
  1865. One of the nice capabilities of Automenu is being able to move between menus
  1866. files quickly and easily. As shown in the following diagram, one MDF can
  1867. easily reference another, and that MDF can reference any other, so that in
  1868. effect we can have a tree structure to our menu system.
  1869.  
  1870. By creating logically separate menu files, we can group similar functions of
  1871. the computer system together. When we wish to add or modify the selections on
  1872. any menu, we will be able to easily locate those files and make the changes
  1873. more quickly.
  1874.  
  1875. The diagram shows a typical main menu, AUTOMENU.MDF, which contains the
  1876. instructions needed to call three other MDFs, and an exit to DOS option. The
  1877. first selection is labeled "Word Processing" and when that selection is
  1878. chosen from the menu, Automenu will execute the command to load another MDF,
  1879. in this case one called WP.MDF. This new screen will appear on the user's
  1880. monitor and present three choices: run WordPerfect, run Word, or return to
  1881. the main menu. If the user selects the first two options, they will execute a
  1882. program and return to the menu. If the last option is chosen, Automenu will
  1883. load the main menu file (AUTOMENU.MDF) and again display that screen.
  1884.  
  1885. If the second selection from the main menu is chosen, Automenu will load the
  1886. DB.MDF file and display those choices. Again (in this example), the user will
  1887. have three choices on this screen, including an option to return to the main
  1888. menu.
  1889.   Automenu 4.5                 MAKING A MENU                      Page 32
  1890. The third selection on the main menu works just like these others - if the
  1891. user chooses it, Automenu will execute the {@} command that tells it to load
  1892. another MDF, in this case PIX.MDF. As in the previous examples, PIX.MDF
  1893. offers several selections including a return to main menu option.
  1894.  
  1895. The menus you create can move to any other MDFs you wish to, and only the
  1896. main menu needs to have an "Exit to DOS" option. You can place an exit option
  1897. on any menu, but the preferred method is to have subordinate menus return to
  1898. a main menu where the user can exit to DOS.
  1899.  
  1900. Remember that this is only an example, and that the "menu screens" you see
  1901. contain the actual Automenu commands and do not appear as they would when
  1902. displayed by Automenu on a user's monitor. We have drawn the diagram this way
  1903. to try and show you the easy way to move between menu files, and that this is
  1904. probably the best way to do that.
  1905.  
  1906.  
  1907.  
  1908.  
  1909.  
  1910.  
  1911.  
  1912.  
  1913.  
  1914.  
  1915.  
  1916.  
  1917.  
  1918.  
  1919.  
  1920.  
  1921.  
  1922.  
  1923.  
  1924.  
  1925.  
  1926.  
  1927.  
  1928.  
  1929.  
  1930.  
  1931.  
  1932.  
  1933.  
  1934.  
  1935.  
  1936.  
  1937.  
  1938.  
  1939.  
  1940.  
  1941.  
  1942.  
  1943.  
  1944.  
  1945.  
  1946.  
  1947.  
  1948.   Automenu 4.5                 MAKING A MENU                      Page 33
  1949. %AUTOMENU Main System Menu <-----------------------------+
  1950. *Word Processing                                         ^
  1951. @WP.MDF  ---------------------------->+                  |
  1952. *Database                             |                  |
  1953. @DB.MDF  -------------------------------->+              |
  1954. *Graphics                             |   |              |
  1955. @PIX.MDF ------------------------------------->+         |
  1956. *Return to DOS                        |   |    |         |
  1957. +echo              D O S              |   |    |         |
  1958. +echo          Type      "AUTO"       |   |    |         |
  1959. +echo             to  Return          |   |    |         |
  1960. +echo            to  Automenu         |   |    |         |
  1961. #End of AUTOMENU.MDF                  |   |    |         |
  1962.                                       |   |    |         |
  1963. %Word Processing Menu <---------------+   |    |         |
  1964. *WordPerfect                              |    |         |
  1965. +CD \WP                                   |    |         |
  1966. +WP                                       |    |         |
  1967. +CD \AUTO                                 |    |         |
  1968. +AUTO WP.MDF                              |    |         |
  1969. *Word                                     |    |         |
  1970. +CD \WORD                                 |    |         |
  1971. +WORD                                     |    |         |
  1972. +CD \AUTO                                 |    |         |
  1973. +AUTO WP.MDF                              |    |         |
  1974. *Return to Main Menu                      |    |         |
  1975. @AUTOMENU.MDF  ----------------------------------------->+
  1976. #End of WP.MDF File                       |    |         |
  1977.                                           |    |         |
  1978. %Database Main Menu <---------------------+    |         |
  1979. *PC-File Plus                                  |         |
  1980. +CD \PCFILE                                    |         |
  1981. +PCF                                           |         |
  1982. +CD \AUTO                                      |         |
  1983. +AUTO DB.MDF                                   |         |
  1984. *RapidFile                                     |         |
  1985. +CD \RF                                        |         |
  1986. +FILE                                          |         |
  1987. +CD \AUTO                                      |         |
  1988. +AUTO DB.MDF                                   |         |
  1989. *Return to Main Menu                           |         |
  1990. @AUTOMENU.MDF ------------------------------------------>+
  1991. #End of DB.MDF File                            |         |
  1992.                                                |         |
  1993. %Graphics Main Menu <--------------------------+         |
  1994. *Draw-It                                                 |
  1995. +CD \DRAW                                                |
  1996. +DRAWIT                                                  |
  1997. +CD \AUTO                                                |
  1998. +AUTO PIX.MDF                                            |
  1999. *Show Partner                                            |
  2000. +CD \SHOW                                                |
  2001. +GED                                                     |
  2002. +CD \AUTO                                                |
  2003. +AUTO PIX.MDF                                            |
  2004. *Return to Main Menu                                     |
  2005. @AUTOMENU.MDF ------------------------------------------>+
  2006. #End of PIX.MDF
  2007.   Automenu 4.5                 MAKING A MENU                      Page 34
  2008. SECTION 5 
  2009.  
  2010. USING YOUR MENU
  2011.  
  2012. Let's take a look at the menu we've built. Select the menu selection "Leave
  2013. this Facility". To display the test menu will require that you enter the
  2014. command "AUTO TEST.MDF" (no quotes) from the DOS prompt and press ENTER. This
  2015. command will cause Automenu to display the menu file called TEST.MDF.
  2016.  
  2017. 5-1 The Menu
  2018.  
  2019. If you just type "AUTO", you will see the main menu, AUTOMENU.MDF. It should
  2020. look similar to the following "generic" representation, with the important
  2021. featured areas detailed by the numbers:
  2022.  
  2023.                      ---------------------------------
  2024.         > 1 <        AUTOMENU  APPLICATION  MAIN  MENU
  2025.                      ---------------------------------
  2026.                                                     Menu 1 of 8     > 2 <
  2027.                          ==========================
  2028.         > 3 <            1 - Word Processing System
  2029.                          ==========================
  2030.  
  2031.         > 4 <            2 - Automenu Sample Menus
  2032.  
  2033.  
  2034.  
  2035.  
  2036.         > 5 <              Run the Word Processor
  2037.  
  2038.  
  2039. ---------------------------------------------------------------------
  2040. November 12, 1988 04:50:01am         CAPS     > 6 <     Memory: 505 K
  2041. ---------------------------------------------------------------------
  2042.         > 7 <                 Press H for HELP
  2043.  
  2044.  
  2045.  
  2046.  
  2047. Table 5.1, below explains the various parts of the menu, and how to use the
  2048. functions built into Automenu.
  2049.  
  2050.  
  2051.  
  2052.  
  2053.  
  2054.  
  2055.  
  2056.  
  2057.  
  2058.  
  2059.  
  2060.  
  2061.  
  2062.  
  2063.  
  2064.  
  2065.  
  2066.   Automenu 4.5               USING YOUR OWN MENUS                 Page 35
  2067. Table 5.1. Menu Description
  2068.  
  2069. Item     Function           Description and Use
  2070. ----     --------           ----------------------------
  2071.  
  2072. 1        Title              The menu title you specified with {%}
  2073.  
  2074. 2        Menu Page          You can have up to eight menu
  2075.          Number and         pages in each MDF by using more {%}
  2076.          Total Pages        symbols. If only one page is defined,
  2077.          in this MDF        you WILL NOT see this item.
  2078.  
  2079. 3        Menu selector      The arrow pointer can be moved,
  2080.                             using the space bar, to make a
  2081.                             menu selection.                        
  2082.  
  2083. 4        Selections         These are the options you specified for
  2084.                             your menu with the {*}. Option may
  2085.                             be selected by typing the number.
  2086.  
  2087. 5        Explanation        Text you can put on your MDF to 
  2088.                             clarify a menu selection.
  2089.  
  2090. 6        Status line        Gives you the following data:     
  2091.                             date--three formats you choose
  2092.  
  2093.                             time--two formats you choose
  2094.  
  2095.                             special keys in use--such as Caps
  2096.                             Lock, Shift, Alt, etc.
  2097.  
  2098.                             memory available--in Kilobytes.
  2099.  
  2100. 7        Help               Press "H" once to obtain a menu
  2101.                             help screen. Press "H" again for more
  2102.                             Automenu help information.
  2103.  
  2104.  
  2105.  
  2106.  
  2107.  
  2108.  
  2109.  
  2110.  
  2111.  
  2112.  
  2113.  
  2114.  
  2115.  
  2116.  
  2117.  
  2118.  
  2119.  
  2120.  
  2121.  
  2122.  
  2123.  
  2124.  
  2125.   Automenu 4.5               USING YOUR OWN MENUS                 Page 36
  2126. 5-2 Programmed Menu Keys
  2127.  
  2128. Several keys are given specific functions whenever a menu is on screen. These
  2129. are described in Table 5.2, below.
  2130.  
  2131. Table 5.2. Programmed Menu Keys
  2132.  
  2133. Key      Function                Description and Use
  2134. ---      --------                ----------------------------
  2135. F10      Next menu page          Displays the next menu page 
  2136.  
  2137. PgDn     Next menu page          Displays the next menu page 
  2138.  
  2139. -->      Next menu page          Displays the next menu page 
  2140.  
  2141. F9       Previous                Displays the previous menu
  2142.          page                    menu page
  2143.  
  2144. PgUp     Previous                Displays the previous menu page 
  2145.          menu page
  2146.  
  2147. <--      Previous                Displays the previous menu page
  2148.          menu page
  2149.  
  2150. HOME     First menu              Displays the first menu page 
  2151.  
  2152. END      Last menu               Displays the last menu page 
  2153.  
  2154. B        Screen                  Activates the screen blackout
  2155.          blackout                feature         
  2156.  
  2157. H        Help                    Displays help messages
  2158.  
  2159.                                  Press once to display the "Mini-Help".
  2160.                                  Press twice for extended help.
  2161.  
  2162. M        Message                 Prompts user for a message
  2163.                                  that will be displayed when screen is
  2164.                                  blacked out. This message will remain
  2165.                                  until Automenu is removed from RAM,
  2166.                                  (by a batch-nonresident command (+))  
  2167.  
  2168. S        Monitor                 Switches from color to monochrome
  2169.          switch                  monitor, and back. Switches active 
  2170.                                  monitor.
  2171.  
  2172. P        Program info            Displays info about this program. 
  2173.  
  2174.  
  2175. Work with your test menu to get acquainted with all of these functions. Then
  2176. you will be ready to build your own customized menu.
  2177.  
  2178. You can return to the test menu and edit it, or build a brand new MDF. The
  2179. file AUTOMENU.MDF is designed to be your main menu and we recommend that you
  2180. use it as a template. The menu selections AUTOMENU.MDF contains are for
  2181. example only and can be removed and modified to meet your needs.
  2182.  
  2183.  
  2184.   Automenu 4.5               USING YOUR OWN MENUS                 Page 37
  2185. Before designing your own customized menus, the experienced PC user may wish
  2186. to review the next section where additional Automenu functions are described.
  2187. Less experienced users may wish to build a simple menu and become more
  2188. comfortable with the commands covered thus far before exploring the more
  2189. powerful features of Automenu. 
  2190.  
  2191. 5-3 Suggestions for Menu Development
  2192.  
  2193. Now that you have learned how to key in a menu from scratch and studied the
  2194. basic features of Automenu, it is time to think about the working menus to
  2195. make your own PC more efficient. 
  2196.  
  2197.  
  2198. Using these examples, you can enter the AUTOMAKE Menu-Building Facility and
  2199. modify one of the MDF files that came with Automenu to include your own
  2200. customized menu selections. As with all development activities in new areas,
  2201. it is best to take a small bite first and confirm that your scheme works
  2202. before composing an elaborate set of menus; then add one or a few items at a
  2203. time, successively confirming that your enhanced menu works as planned.
  2204.  
  2205.  
  2206. You have enough knowledge at this point to write simple but effective menus
  2207. that will allow you to use your PC in a much more efficient manner than in
  2208. the "bad old days" (yesterday), when you had to key in every DOS command one
  2209. character at a time or memorize mnemonics for a subdirectory full of batch
  2210. files.
  2211.  
  2212.  
  2213.  
  2214.  
  2215.  
  2216.  
  2217.  
  2218.  
  2219.  
  2220.  
  2221.  
  2222.  
  2223.  
  2224.  
  2225.  
  2226.  
  2227.  
  2228.  
  2229.  
  2230.  
  2231.  
  2232.  
  2233.  
  2234.  
  2235.  
  2236.  
  2237.  
  2238.  
  2239.  
  2240.  
  2241.  
  2242.  
  2243.   Automenu 4.5               USING YOUR OWN MENUS                 Page 38
  2244. SECTION 6 
  2245.  
  2246. USING AUTOMENU'S OTHER CAPABILITIES
  2247.  
  2248. Automenu's capabilities can be grouped into three types of functions. These
  2249. are:
  2250.                                 Menu Design
  2251.                                 DOS Commands
  2252.                                 Special Functions
  2253.  
  2254. You have used some of the menu design functions in the previous section.
  2255. These were the {.}, {%}, and {*} symbol functions. You've also used one of
  2256. the DOS Command functions, the {+} symbol. The other functions in each group
  2257. also use special symbols that are entered in column 2 of the MDF. We will
  2258. describe these in this section. All symbols are summarized in Table 6-1, at
  2259. the end of the section.
  2260.  
  2261. 6-1 Menu Design Functions
  2262.  
  2263. As noted, you are already acquainted with most of the menu design features.
  2264. There is one other function we can include in this group. It may sometimes be
  2265. useful and necessary to provide a user with additional information about a
  2266. menu selection. For example, when he is selecting a copy protected program
  2267. for which a disk must be inserted. It could be useful to warn the user he
  2268. will have to do this before he actually makes the selection.
  2269.  
  2270. The Selection Help function, a question mark {?} symbol, does this. With the
  2271. Selection Help functions, an explanatory message of your choice is displayed
  2272. in a reverse video block just above the Menu Status Line on the menu.
  2273.  
  2274. Why don't you edit your TEST.MDF and include this function?
  2275.  
  2276. Using Automenu, select the Menu-Building Facility and edit TEST.MDF the same
  2277. way we did in Section 4.
  2278.  
  2279. With the cursor in column 2, move to the line containing
  2280.  
  2281.              |  Selection   | * |   LOTUS 123  | 
  2282.  
  2283. Press the F3 key to add a blank line below the "LOTUS 123" line.
  2284.                  
  2285. Move the cursor to the new blank line.
  2286.  
  2287. Type {?}.
  2288.  
  2289. The word "Descript" is displayed in column 1.
  2290.  
  2291. In column 3, type "Insert the 123 diskette in Drive A:" (NO QUOTES)
  2292. Save the edited MDF, and call up the test menu from DOS by typing "AUTO
  2293. TEST.MDF" to see the message displayed when the arrow pointer or highlight
  2294. block is moved to the Lotus 123 selection. To summarize the four Menu Design
  2295. functions:
  2296.  
  2297.                    %     Menu Title
  2298.                    .     MDF Comment
  2299.                    *     Menu Selection
  2300.                    ?     Selection Help Message
  2301.  
  2302.   Automenu 4.5        USING AUTOMENU'S OTHER CAPABILITIES         Page 39
  2303. Here is an example of how these might be used in an MDF.
  2304.  
  2305. .Menu-Building Test
  2306. %TEST MENU
  2307. *Word Processing
  2308. +CD \WS                <<<---- The {+} commands will be built into a
  2309. +WS                            batch file and executed after Automenu
  2310. +CD \AUTOMENU                  terminates and leaves memory. That's why
  2311. +AUTO                  <<<---- the last command is "AUTO", to restart it.
  2312. *LOTUS 123
  2313. ?Need Lotus Disk in Drive A:
  2314. +CD \LOTUS
  2315. +123
  2316. +CD \AUTOMENU
  2317. +AUTO
  2318. *Return to Disk Operating System
  2319. +CD \                  <<<---- This option will change directories and exit 
  2320. +ECHO ON                       to DOS, because there is nothing else to do
  2321. .
  2322. . Below is an example how to add a second and third page
  2323. . to your MDF. These pages would be available by pressing
  2324. . Page Down while the menu is displayed.
  2325. . Remember, these lines beginning with a period are comments
  2326. . and are disregarded by Automenu!
  2327. .
  2328. %SECOND PAGE       <<<--- This is how you add a second page to your menu.
  2329. *Erase files on Drive A:  Just add another percent symbol, and carry on!
  2330. +ERASE A:*.*       <<<--- Be CAREFUL with commands like this one!
  2331. +AUTO
  2332. %THIRD PAGE        <<<--- Here is the Third Page of your menu!
  2333. *Copy diskette in Drive A: to Drive B:
  2334. +DISKCOPY A: B:
  2335. +AUTO
  2336. #End of MDF
  2337. Automenu selections can cause either a single command or a group of commands
  2338. to be executed. Each command (single or part of a group) can be up to 127
  2339. characters in length. When several commands are combined to execute a single
  2340. menu selection, the group of commands is called a batch routine because all
  2341. the commands are batched together in a single procedure.
  2342.  
  2343. 6-2 DOS Commands
  2344.  
  2345. In Section 3, you used the plus {+} symbol command to write routines needed
  2346. to permit the user to proceed with his menu selection. These were DOS
  2347. commands executed by the operating system. Automenu has the capability of
  2348. executing DOS commands in a variety of ways, depending on your needs and what
  2349. you want the system to do. There are two general categories of commands:
  2350. batch and direct.
  2351.  
  2352. 6-2.1 Batch Commands
  2353.  
  2354. When you used the {+} symbol in building TEST.MDF, the test menu, you
  2355. combined several DOS commands into a routine that performed one specific
  2356. function. When several commands are combined like this, it is known as a
  2357. batch routine--all the commands are "batched" together in a single procedure.
  2358. For complex routines, these are the most advantageous. Automenu utilizes two
  2359. types of batch routines: non-resident and resident.
  2360.  
  2361.   Automenu 4.5        USING AUTOMENU'S OTHER CAPABILITIES         Page 40
  2362. In general, non-resident Automenu commands offer larger Random Access Memory
  2363. (RAM) availability for executing the commands contained in the batch file.
  2364. Resident commands do not require that Automenu be reloaded at the end of the
  2365. batch file, and are, therefore, faster to redisplay the menu after execution.
  2366. You can, therefore, make the tradeoff between execution speed and memory
  2367. availability depending on your own individual requirements.
  2368.  
  2369. 6-2.1.1 RAM Utilization and RAM Cram
  2370.  
  2371. When a program is loaded into RAM, it marks the highest memory location that
  2372. it needs. A program loaded later while the first remains in RAM can use that
  2373. mark to locate unclaimed memory in which to locate itself. When a program is
  2374. not needed, it may relinquish its claim to memory or it may "Terminate and
  2375. Stay Resident" (TSR), retaining its claim on part of RAM. In this way, more
  2376. than one program can reside in RAM simultaneously. This ability is used by
  2377. DOS (in its MODE, PRINT and GRAPHICS commands), and by a variety of programs
  2378. that "pop-up" in response to a "hot-key." Desktop organizers, spelling
  2379. checkers, on-line dictionaries and some communications packages are among
  2380. this group.
  2381.  
  2382. Technical Notes
  2383.  
  2384. If a TSR program is loaded while Automenu remains resident, later programs
  2385. will find the highest claimed memory to be that used by the TSR program.
  2386. Thus, if a TSR program is loaded while Automenu is resident, the RAM-freeing
  2387. effect of executing Automenu Non-Resident Batch files will be lost until the
  2388. TSR program is unloaded (or more commonly, until the system is rebooted).
  2389. Simply, you will lock out certain areas of memory by "piling up" Automenu on
  2390. top of another TSR program that will NOT release itself from memory. We
  2391. definitely recommend AGAINST executing TSRs from within Automenu's Resident
  2392. Mode ({!}, {-}, or {=} commands), however using the {+} Non-Resident Automenu
  2393. command to call these types of programs should present no unusual problems.
  2394.  
  2395. This aspect of RAM utilization has been called "RAM CRAM". You should keep
  2396. this in mind when writing commands to load TSR programs, e.g., SideKick,
  2397. MODE.COM, etc. By using the {+} command to perform this type of program
  2398. loading, Automenu will exit memory prior to executing your series of
  2399. commands, and no "RAM CRAM" will occur. If you notice the available memory
  2400. DECREASING after calling a menu selection and returning, you may have a case
  2401. of running a TSR program on your hands, or you may have issued the dreaded
  2402. "!AUTO" command, which loads another copy of Automenu on top of one already
  2403. resident.
  2404.  
  2405. The routine you wrote in TEST.MDF for selecting Wordstar would cause Automenu
  2406. to build an external batch file, AUTOTEMP.BAT, and return to the operating
  2407. system. The commands contained in the batch file would then be executed on a
  2408. line-by-line basis.
  2409.  
  2410. Automenu would become "non-resident" or relinquish its claim on memory before
  2411. the batch file was executed. The memory formerly claimed by Automenu would
  2412. become available for use by Wordstar instead. Typically, any application that
  2413. needs the maximum memory available in your PC will REQUIRE using the {+}
  2414. command to free up any and all workspace in RAM.
  2415.  
  2416.  
  2417.  
  2418.  
  2419.  
  2420.   Automenu 4.5        USING AUTOMENU'S OTHER CAPABILITIES         Page 41
  2421. 6-2.1.2 Non-Resident Commands
  2422.  
  2423. There is no limit to the number of {+} commands that can be combined into a
  2424. batch routine for any single menu selection, however EACH COMMAND LINE CAN
  2425. ONLY BE UP TO 127 CHARACTERS IN LENGTH.
  2426.  
  2427. One major advantage of the {+} symbol is its ability to load programs that
  2428. terminate and stay resident--known as TSR programs--such as SIDEKICK, PROKEY,
  2429. PRINT.COM, MODE.COM and others.
  2430.  
  2431. But, there are disadvantages in some instances: this type of batch routine is
  2432. slower because Automenu must terminate and turn control over to the temporary
  2433. batch file AUTOTEMP.BAT; a CONTROL-BREAK also will return you to DOS, which
  2434. undermines any security measures you may have installed; and Automenu and the
  2435. Menu Definition File must be reloaded when you want to return to the menu.
  2436.  
  2437. Use of the {+} commands REQUIRES the use of the batch file AUTO.BAT, which
  2438. contains two essential commands: one to run the Automenu program
  2439. (AUTOMENU.COM) and the other to run AUTOTEMP.BAT, the temporary batch file
  2440. built by Automenu. 
  2441.  
  2442. The {+} commands are also used in situations where the user wants to return
  2443. to DOS when finished with a series of commands. The examples below return to
  2444. DOS or copy a file and then return to DOS; the reason they do not return to
  2445. the menu is because the AUTO command is not included.
  2446.  
  2447. %Example Menu
  2448. *Copy text files to C: from A: and return to MENU
  2449. +COPY A:*.TXT C:
  2450. +AUTO                       <<<--- Return to the Menu by running AUTO.BAT
  2451. *Copy Text Files And Goto DOS
  2452. +COPY A:*.TXT C:            <<<--- DO NOT return to Menu - No AUTO command
  2453. *Return to DOS
  2454. +CLS                        <<<--- Only Clear Screen, then go to DOS
  2455. #End of example menu
  2456.  
  2457. Even though using the {+} commands is a slightly slower method, WE RECOMMEND
  2458. THAT THEY BE USED BY NEW USERS because they are less prone to mistakes. Once
  2459. you become familiar with Automenu, other forms of the commands may be used.
  2460. When using the {+} commands in an alternate menu, it might be desired for the
  2461. alternate menu to be redisplayed when the routine is finished instead of
  2462. AUTOMENU.MDF or the main menu. To do this requires the user to specify the
  2463. name of the alternate menu on the same line with AUTO. For example, lets say
  2464. you have a communications menu called COMM.MDF and you want to return to the
  2465. COMM.MDF when Mercury is finished.
  2466.  
  2467. .Filename COMM.MDF
  2468. %Communications Menu
  2469. *Aquarius System
  2470. +CD \MERCURY
  2471. +MERCURY
  2472. +CD \AUTOMENU
  2473. +AUTO COMM.MDF   <<<-- By specifying a filename, we will return there
  2474. *Return to Main Menu
  2475. @AUTOMENU.MDF    <<<-- This command LOADS a different MDF
  2476. #End of COMM.MDF 
  2477.  
  2478.  
  2479.   Automenu 4.5        USING AUTOMENU'S OTHER CAPABILITIES         Page 42
  2480. 6-2.1.3 Resident Commands
  2481.  
  2482. The disadvantages mentioned in the paragraph above can be overcome to a great
  2483. extent by keeping Automenu in memory. This can be done with the {!} symbol
  2484. command. This symbol is used in exactly the same manner as the {+} symbol.
  2485. There is no limit to the number of commands that can be included in each
  2486. routine, and each line of the routine may contain as many as 127 characters. 
  2487.  
  2488. Like the {+} command, the {!} symbol creates a batch file called
  2489. AUTOTEMP.BAT. This file contains each command in the routine. When it is
  2490. initiated, the routine is executed directly from Automenu, which remains
  2491. dormant, i.e., stays resident in memory. This type of batch file is faster
  2492. than the {+} command file, and is useful for actions that do not require
  2493. exiting to DOS.
  2494.  
  2495. Here is an example with a routine for calling Wordstar using this symbol:
  2496.  
  2497. %Example Menu
  2498. *Word Processing
  2499. !ECHO OFF             <<<--- While Automenu remains in memory,
  2500. !CLS                         all "!" commands will be executed.
  2501. !CD \WS                      Automenu will reappear faster when
  2502. !WS                          this method is used because it does
  2503. !CD \AUTOMENU                NOT have to re-load or re-read the
  2504. *Return to DOS               Menu Definition File.
  2505. +CLS                  <<<--- Automenu is NOT Resident in this command
  2506. #End of example menu 
  2507.  
  2508.                                 >>>WARNING<<<
  2509.  
  2510.                         Never use the Command "!AUTO"
  2511.  
  2512. This will not only perform the command to restart Automenu, but will do so
  2513. while a previous copy of Automenu and COMMAND.COM are still in memory!
  2514. Needless to say, this will result in an unnecessary loss of available memory
  2515. reflected in the Automenu screen. Also, do not attempt to execute TSR
  2516. programs with the {!} symbol, as DOS will leave a similar pair of files
  2517. trapped in memory while the newly loaded TSR program sits on top of all of
  2518. them locked in place, unable to be recovered until after a system reboot.
  2519.  
  2520. Note that you still need to enter the "CD" (change directory) commands before
  2521. AND AFTER executing the program, if the program is in another directory. This
  2522. is ALWAYS necessary.
  2523.  
  2524. In the example above, the DOS commands ECHO OFF and CLS were added to the
  2525. beginning of the routine. This is because this method uses a SECONDARY
  2526. COMMAND PROCESSOR (COMMAND.COM) to run AUTOTEMP.BAT and ECHO would be ON by
  2527. default. In other words, without those two lines you would see the individual
  2528. commands displayed on the screen while they are being executed.
  2529.  
  2530. When the routine is finished, the last menu displayed will be the menu that
  2531. reappears. Note that it returns without the use of "!AUTO", which is NOT
  2532. needed and would cause problems. NEVER USE THE "!AUTO" COMMAND!
  2533.  
  2534.  
  2535.  
  2536.  
  2537.  
  2538.   Automenu 4.5        USING AUTOMENU'S OTHER CAPABILITIES         Page 43
  2539. 6-2.2 Direct Commands
  2540.  
  2541. Batch commands are most useful for lengthy routines in which a number of
  2542. actions must be executed. Many times, a single command is all that is
  2543. necessary. In this case, the command can be interpreted by the operating
  2544. system as a command entered directly from the system prompt "C>". It is a
  2545. "direct" command.
  2546.  
  2547. Automenu uses two types of DIRECT COMMANDS--WITH and WITHOUT a pause
  2548. following program or command completion.
  2549.  
  2550. 6-2.2.1 Direct Command without Pause
  2551.  
  2552. The dash {-} symbol creates a direct command. The command can be UP TO 127
  2553. CHARACTERS IN LENGTH, but there can be ONLY ONE {-} COMMAND per menu
  2554. selection.
  2555.  
  2556. This symbol does NOT create a batch file. When the command is completed, the
  2557. menu from which it was initiated is redisplayed.
  2558.  
  2559.                                 >>>WARNING<<<
  2560.  
  2561. Resident and non-resident commands CANNOT be used together on the same menu
  2562. selection!
  2563.  
  2564. This command is useful for functions such as formatting a diskette or viewing
  2565. a directory. Here is how you might do that:
  2566.  
  2567. %TEST MENU
  2568. *Format Drive A:
  2569. -Format A:   <<<--- This command is executed IMMEDIATELY, with NO PAUSE
  2570. #END
  2571.  
  2572. OR:
  2573.  
  2574. %TEST MENU
  2575. *Directory
  2576. -DIR A:/P    <<<--- This command is executed IMMEDIATELY, with NO PAUSE
  2577. #END 
  2578.  
  2579. NOTE: You CANNOT use this function on any menu selection in which you have
  2580. used {+} or {!} symbols. These symbols are unique in their function and do
  2581. not operate together within the same selection.
  2582.  
  2583. 6-2.2.2 Direct Command with Pause
  2584.  
  2585. The equal {=} symbol operates in the same manner as the {-}, with one
  2586. exception. When the {=} command has been completed, the user must press the
  2587. spacebar (or any mouse button) to redisplay the menu. This is useful when it
  2588. is vital that the user observe the results of the command.
  2589.  
  2590. For instance, in the directory example in paragraph 6-2.2.1, the directory
  2591. disappears after it is displayed. The {=} symbol can prevent that.
  2592.  
  2593.  
  2594.  
  2595.  
  2596.  
  2597.   Automenu 4.5        USING AUTOMENU'S OTHER CAPABILITIES         Page 44
  2598. Here is one way in which this symbol might be used:
  2599.  
  2600. %TEST MENU
  2601. *Directory
  2602. =DIR A:/P     <<<--- This command says PAUSE after completion!
  2603. #END
  2604.  
  2605. As you see, the command entered at the {=} symbol is the "DIR" command you
  2606. normally use from the DOS prompt to view a directory (C:> DIR A:/P). Direct
  2607. commands execute more quickly than others. They do however use more memory,
  2608. and only ONE command per selection is permitted.
  2609.  
  2610. Here is a summary of the Commands available within Automenu:
  2611.  
  2612. Table 6.1.   AUTOMENU DOS Commands
  2613.  
  2614. Symbol          Function              Description and Use
  2615. ------          ---------             ----------------------------
  2616.  
  2617.   +             Batch Command         Use for lengthy routines;
  2618.                 non-resident          when necessary to exit to DOS;
  2619.                                       when user must take exterior
  2620.                                       action. Preferred method.
  2621.  
  2622.   !             Batch command         Use when it is necessary to keep user
  2623.                 resident              from returning to DOS with ctrl-break.
  2624.  
  2625.                                 >>>WARNING<<<
  2626.  
  2627. Only one of these symbols can be used in a single menu selection. You cannot
  2628. use both symbols in one menu selection.
  2629.  
  2630.  
  2631.   -             Direct                Use when fast execution is needed.
  2632.                                       Useful for starting batch files.
  2633.  
  2634.   =             Direct                Use for fast execution, when it is
  2635.                 with pause            appropriate to have operator press
  2636.                                       the space bar to redisplay the
  2637.                                       menu.
  2638.  
  2639.  
  2640. If you would like to learn more about how these command symbols work, their
  2641. technical aspects are analyzed in Section 8, and further described in
  2642. APPENDIX C.
  2643.  
  2644. 6-3 Special Functions
  2645.  
  2646. The largest group of symbols are reserved to execute the functions that make
  2647. Automenu unique. These functions give you sophisticated capabilities that
  2648. provide that total control you desire.
  2649.  
  2650. There are seven other Special Function symbols in the MDL (Menu Definition
  2651. Language):
  2652.  
  2653.  
  2654.  
  2655.  
  2656.   Automenu 4.5        USING AUTOMENU'S OTHER CAPABILITIES         Page 45
  2657. #--End of MDF
  2658.  
  2659. .--Comment
  2660.  
  2661. ^--Password
  2662.  
  2663. @--Alternate MDF
  2664.  
  2665. >--Output Message
  2666.  
  2667. <--Input (Dynamic/Static)
  2668.  
  2669. [--Timed Execution
  2670.  
  2671. You have already used the first two--{#} and {.}--in Section 3. 
  2672.  
  2673. If you recall, the {#} End of MDF symbol MUST be used to end every MDF.
  2674.  
  2675. 6-3.1 Password
  2676.  
  2677. A password enables you to prevent unauthorized individuals from accessing
  2678. individual selections on the menu. You can even specify multiple passwords
  2679. for each menu selection. This enables you to set up different levels of
  2680. security for different individuals. While you would be able to access all
  2681. menus, your accounting clerk could be limited only to those with accounting
  2682. functions, and only to those selections on the menu. Your word processing
  2683. operator can be limited to those functions only, so they cannot inadvertently
  2684. erase a file or access unauthorized functions within the system.
  2685.  
  2686. The password symbol is {^}, and appears above the number 6 on the top row of
  2687. keys on your keyboard.
  2688.  
  2689. A password can contain up to 30 characters. And there is no limit to the
  2690. number of passwords that can be defined for each menu selection.
  2691.  
  2692. Here is how a password might be added to a previous example, please note that
  2693. both passwords "OK" and "BOSS" would execute this menu selection:
  2694.  
  2695. %TEST MENU
  2696. *Format Drive A:
  2697. ^OK           <<<--- Makes a selection PASSWORD PROTECTED, in this
  2698. ^BOSS                case, either "OK" or "BOSS" would allow access
  2699. -Format A:
  2700. #END 
  2701.  
  2702. 6-3.2 Alternate MDF
  2703.  
  2704. One of the strengths of Automenu is its ability to connect menus and MDF's to
  2705. create a menu controlled system for separate pieces of software. The
  2706. Alternate MDF function gives you the ability to access an MDF from any other
  2707. MDF. Thereby providing unlimited numbers of menus and menu selections
  2708.  
  2709. The Alternate MDF symbol is {@}.
  2710.  
  2711.  
  2712.  
  2713.  
  2714.  
  2715.   Automenu 4.5        USING AUTOMENU'S OTHER CAPABILITIES         Page 46
  2716. To use this in an MDF, enter the {@} in column 2, and the filename of the
  2717. menu you wish to call in column 3. Automenu supports full pathnames for
  2718. alternate MDF's.
  2719.                                 >>>WARNING<<<
  2720.  
  2721. THIS FUNCTION CANNOT BE USED TOGETHER WITH THE {+}, {!}, {-} or {=} SYMBOLS!
  2722.  
  2723. The following Example shows how the main menu, AUTOMENU.MDF, might lead to
  2724. Alternate menus:
  2725.  
  2726. %Main System Menu
  2727. *Communications Menu
  2728. ?Display Communications Menu
  2729. @COMM.MDF                 <<<--- Load another Menu File named "COMM.MDF"
  2730. *Accounting Menu
  2731. ?Display Accounting Menu
  2732. @ACCOUNT.MDF              <<<--- Load the menu file named "ACCOUNT.MDF"
  2733. *Utility Menu
  2734. ?DOS Utility Menu, ask supervisor for password
  2735. ^BOSS                     <<<--- This option is PASSWORD protected
  2736. @UTILITY.MDF              <<<--- Remember to use the ".MDF" extensions!! 
  2737. #End of AUTOMENU.MDF
  2738.  
  2739. The UTILITY.MDF menu example above also shows a good way to protect all of
  2740. the menu selections in an alternate menu. In other words, the user must know
  2741. the password to get to the utility menu to execute any of the utility menu
  2742. selections.
  2743.  
  2744. The example below shows what one of the alternate menus might look like. Note
  2745. that the second menu selection is setup to return the user to the main menu:
  2746.  
  2747. .Filename COMM.MDF         <<<--- Comment Line
  2748. %Communications Menu
  2749. *Aquarius
  2750. +CD \MERCURY
  2751. +MERCURY
  2752. +CD \AUTOMENU
  2753. +AUTO COMM.MDF
  2754. *Return to Main Menu
  2755. @AUTOMENU.MDF              <<<--- Load and return to Main Menu Screen
  2756. #End of COMM.MDF                 (In this case, the main menu is called 
  2757.                                   AUTOMENU.MDF.)
  2758. 6-3.3 Output Message
  2759.  
  2760. It is often necessary to give a user information or data about some action he
  2761. must take, or observation he should make, after a menu selection. This
  2762. function does that.
  2763.  
  2764. %Example Menu
  2765. *Directory 
  2766. >The directory displayed below is of the diskette in Drive A:
  2767. >The only files listed are Work Sheet files, or those files
  2768. >whose filename extension is WKS.
  2769. =DIR A:*.WKS                 <<<--- AFTER message is displayed,
  2770. #End of Example                         perform DOS command
  2771.  
  2772.  
  2773.  
  2774.   Automenu 4.5        USING AUTOMENU'S OTHER CAPABILITIES         Page 47
  2775. EACH OUTPUT MESSAGE IS LIMITED TO 80 CHARACTERS, but you can enter as many
  2776. message lines as you wish. However, if the message is more than 23 lines, the
  2777. additional lines will scroll off the screen.
  2778.  
  2779. NOTE: ALL OUTPUT MESSAGES WILL BE DISPLAYED BEFORE ANY DOS COMMANDS DEFINED
  2780. ARE EXECUTED. Do not intermix ">" and "<" with any other commands. See the
  2781. example below.
  2782.  
  2783. %Example Menu
  2784. *Check Disk
  2785. >Enter the Drive Letter You Wish to Check
  2786. >
  2787. <A:,B:,C:,D:
  2788. =CHKDSK %1      <<<--- This %1 will be the value of the Drive letter input
  2789. *Directory             on the line above (A, B, C, or D). This is OK!
  2790. >Enter Drive to List
  2791. +PAUSE          <<<--- NO NO NO! - Do Not Intermix ">" with ANY 
  2792. >Then Press ENTER        other symbol!
  2793. <A:,B:,C:,D:
  2794. =DIR %1         <<<--- Except the line noted above, this example will 
  2795. *Next Option           work. DON'T intermix the commands. Use
  2796. .                      ">" symbols FIRST, then {=}, {+}, {-} or {!}.
  2797. .                      Check the Appendix on Command Reference for details.
  2798.  
  2799. 6-3.4 Input
  2800.  
  2801. Some programs require additional information to be passed to them. For
  2802. example, many programs will require that a filename be entered at the time of
  2803. execution. The Input function, used with the Output Message function, makes
  2804. it possible to prompt the user for this information.
  2805.  
  2806. The Input symbol is {<}.
  2807.  
  2808. Let's suppose you want to go directly to a file to edit when you select the
  2809. word processing option. Here is how you would set up your MDF to accomplish
  2810. that. 
  2811.  
  2812. %Mark's Example Menu
  2813. *Word Processing
  2814. ?Run Wordstar
  2815. >This option requires the filename you wish to edit.
  2816. >Enter the filename on the DOTTED line below and press ENTER.
  2817. <             <<<---    This will show as a blank, dotted line onscreen.
  2818. +CD \WS                 After inputting data, Automenu
  2819. +WS %1                  will pass that data as "%1" to
  2820. +CD \AUTOMENU           tell Wordstar which file to edit.
  2821. +AUTO
  2822. #End of Mark's Example Menu
  2823.  
  2824. When the output messages appear on the screen, a row of dots will appear
  2825. below it. The user then simply types in the filename, and Automenu will go
  2826. directly to that file. The information entered will be used to replace the %1
  2827. before the DOS commands are executed. This is called "Dynamic Input." 
  2828.  
  2829. It is also possible to give the user the choices he has available from which
  2830. to select. This function is known as "Static Input."
  2831.  
  2832.  
  2833.   Automenu 4.5        USING AUTOMENU'S OTHER CAPABILITIES         Page 48
  2834. Automenu accepts any entry following the {<} command as input to be passed to
  2835. DOS (as a parameter). You can give the user as many choices as will fit on
  2836. one line. Each must be separated by a comma. The user then need only move the
  2837. cursor to the desired choice and press ENTER.
  2838.  
  2839. Using either Dynamic and Static Input, you can define up to nine prompts per
  2840. menu selection, mixing Dynamic and Static requests.
  2841.  
  2842. The results of each input request will be used to replace variables defined
  2843. within a particular menu selection. Each variable is given a number, 1-9,
  2844. preceded by a percent {%} sign. For example, %1, %2, etc. For a further
  2845. explanation of REPLACEABLE PARAMETERS (%1, %2, etc.), see your DOS manual or
  2846. the recommended reading list as outlined in Appendix B.
  2847.  
  2848. Here is how you might use both these capabilities in an MDF.
  2849.  
  2850. *Copy a file to TEMP directory on Drive C.
  2851. >Please select the diskette drive from which you wish to copy.
  2852. >Use the arrow keys to highlight the desired drive letter,
  2853. >then press ENTER.
  2854. <A:,B:        <<<--- This line will display "A:" and "B:" as choices
  2855. >                    to be highlighted with cursor keys and selected
  2856. >Now enter the name of the file you wish to copy.
  2857. >The filename can be up to eight characters, followed by a 
  2858. >three character extension. Example: TEST.DAT.
  2859. >Press ENTER when you have entered the filename.   
  2860. >Or you may quit now by pressing the ESC key.
  2861. <             <<<--- This line will be a blank dotted line for the user to
  2862. >                    "fill-in-the-blanks".
  2863. >The file will be copied from Drive %1
  2864. >The filename is %2
  2865. -Copy %1%2 C:\TEMP
  2866.  
  2867. NOTE: Another important feature of the input function that gives added
  2868. flexibility is the use of the ESCape key. The user can return to the menu at
  2869. ANY time during an input request by pressing <ESC>.
  2870.  
  2871. For an even better example of the use of the INPUT and OUTPUT functions, list
  2872. out the contents of the INSTALL.MDF file that is on your Automenu
  2873. distribution diskette. It details the sort of use you can make of these
  2874. powerful features, and will make it easier to understand how the {<} command
  2875. works with the DOS replaceable parameter (%1, %2, etc.).
  2876.  
  2877. Also check your DOS manual on the definition of replaceable parameters.
  2878.  
  2879. 6-3.5 Timed Execution
  2880.  
  2881. There may be times when you want a menu selection to be selected at some
  2882. future time. This function does that.
  2883.  
  2884. The symbol for timed execution is {[}.
  2885.  
  2886. As many as 128 different times can be specified in an MDF. And since a menu
  2887. selection using the {@} symbol could load a second MDF with 128 more times,
  2888. the number of times is all but limitless.
  2889.  
  2890.  
  2891.  
  2892.   Automenu 4.5        USING AUTOMENU'S OTHER CAPABILITIES         Page 49
  2893. The times must be entered in international 24-hour format. For example, 10:30
  2894. AM MUST be entered as 10:30, whereas 10:30 PM MUST be entered as 22:30.
  2895.  
  2896. Special Note
  2897.  
  2898. The MDF from which the execution will take place MUST BE IN MEMORY at the
  2899. specified time for the function to operate. This function WILL NOT EXECUTE
  2900. automatically if the user is inside an application. If you are working in
  2901. your word processing application at 10:00 AM, and you have selected a timed
  2902. execution for 10:00 AM, the menu selection WILL NOT BE EXECUTED!
  2903.  
  2904. This capability is especially useful for automatic backups or reading
  2905. equipment connected to the computer like in this example:
  2906.  
  2907. %Example Menu
  2908. *Backup System Data
  2909. [10:00        <<<--- At 10 AM, perform this DOS command
  2910. [16:00        <<<--- At 4 PM, also perform this DOS command
  2911. -Backup C:    <<<--- This is the DOS command to be carried out
  2912. *Check Rain Gauge automatically
  2913. . These are comment lines and are ignored by Automenu
  2914. . This example reads a rain gauge connected to COM1:
  2915. . every two hours and then appends the results to a file
  2916. [01:00        <<<--- At these times, perform the DOS commands
  2917. [03:00               automatically!
  2918. [05:00
  2919. [07:00
  2920. [09:00
  2921. [11:00
  2922. [13:00        <<<--- Notice we use 24 HOUR time format!
  2923. [15:00
  2924. [17:00
  2925. [19:00
  2926. [21:00
  2927. [23:00
  2928. +CD \WEATHER  <<<--- Again, these are the commands to be carried
  2929. +RAINREAD            out at the preset time.
  2930. +COPY RESULTS.OLD+RESULTS RESULTS.NEW
  2931. +CD \AUTOMENU <<<--- These DOS commands will be carried out
  2932. +AUTO                at EACH of the times listed above ONLY IF
  2933. #End of Example      this Menu File is in memory at the time!
  2934.  
  2935. 6-4 MDF Command Symbol Summary - Menu Definition Language (TM)
  2936.  
  2937. All Menu Definition Language commands are summarized in Table 6.2, below, and
  2938. in greater detail in Appendix C.
  2939.  
  2940.  
  2941.  
  2942.  
  2943.  
  2944.  
  2945.  
  2946.  
  2947.  
  2948.  
  2949.  
  2950.  
  2951.   Automenu 4.5        USING AUTOMENU'S OTHER CAPABILITIES         Page 50
  2952. Table 6.2. MDF Command Symbols
  2953.  
  2954. Symbol        Function           Description and Use
  2955. ------        --------           ---------------------------
  2956.  
  2957.    %          Menu Title         Display title of menu
  2958.  
  2959.    *          Menu Selection     The selections available to user
  2960.  
  2961.    ?          Selection          Explain a menu selection in further
  2962.               Description        detail
  2963.  
  2964.    ^          Password           Limit access to selections
  2965.  
  2966.    @          Alternate          Link menus and MDF's to create menu
  2967.               MDF                driven systems. Load another MDF.
  2968.  
  2969.    -          Direct             Executed as if command were entered
  2970.               DOS                at DOS prompt (C:\>);
  2971.               Command            ONE COMMAND PER SELECTION LIMIT;
  2972.                                  127 character line limit;
  2973.                                  Automenu remains dormant in memory.
  2974.  
  2975.    =          Direct             Same as previous command, but user
  2976.               Command            must press spacebar to return to
  2977.                                  w/Pause menu (PAUSE).
  2978.  
  2979.    !          Resident           Creates batch file for series of
  2980.               Batch              DOS commands;
  2981.               Command            Automenu remains resident;
  2982.                                  127 character line limit;
  2983.                                  number of lines unlimited per 
  2984.                                  selection.
  2985.  
  2986.    +          Non-Resident       Creates batch file for series of
  2987.               Batch              DOS commands;
  2988.               Command            returns user to DOS if desired;
  2989.                                  127 character line limit;
  2990.                                  number of lines per selection
  2991.                                  unlimited.
  2992.  
  2993.    .          Comment            Places comment in MDF that is not
  2994.                                  displayed on menu.
  2995.  
  2996.    >          Output             Displays a message on user screen.
  2997.  
  2998.    <          Input              Permits user to enter variable
  2999.                                  parameters or data defining files,
  3000.                                  etc., to be called up when menu
  3001.                                  selection is made.
  3002.  
  3003.    [          Timed              Allows user to specify a future time
  3004.               Execution          for execution of menu selection.
  3005.  
  3006.    #          End of             MUST be entered as FINAL command in
  3007.               MDF                EVERY Menu Definition File.
  3008.  
  3009.  
  3010.   Automenu 4.5        USING AUTOMENU'S OTHER CAPABILITIES         Page 51
  3011. SECTION 7 
  3012.  
  3013. CUSTOMIZING YOUR MENU
  3014.  
  3015. As individual and unique as your menus can be made with the functions
  3016. discussed up to now, there may still be additional features you want to
  3017. include. You may even want to switch off certain features such as the
  3018. selection bar or arrow. Only one may be needed. You almost certainly will
  3019. want to customize the menu screen colors. Automenu provides a customization
  3020. utility that allows you to do this.
  3021.  
  3022. 7-1 Accessing the Customization Utility
  3023.  
  3024. The customizing program is in the file AUTOCUST.COM. You can call this up
  3025. directly from the DOS prompt. It can be more useful, however, if you make
  3026. AUTOCUST.COM a selection on one of your menus, perhaps the main menu. This
  3027. will enable you to change features of your menu as often as you desire,
  3028. without exiting to DOS.
  3029.  
  3030. You can access the customizing function from DOS by typing "AUTOCUST" at the
  3031. prompt:
  3032.  
  3033.                                  C:>AUTOCUST
  3034.  
  3035. NOTE: If you have changed the name of the AUTOMENU.COM for any reason, you
  3036. must specify the new file name to AUTOCUST. To do this, enter:
  3037.  
  3038.                           C>AUTOCUST "FILENAME.COM"
  3039.  
  3040. Be sure to include drive and pathname if "FILENAME.COM" is not in the current
  3041. subdirectory. AUTOCUST is a menu driven program, containing three menus. When
  3042. you call AUTOCUST you will first see this screen:
  3043.  
  3044. These functions will be discussed in the order in which they appear on the
  3045. menu. The changes made to the individual characteristics of the menu are
  3046. stored as part of AUTOMENU.COM and NOT in a separate configuration file, as
  3047. with some other menuing product systems.
  3048.  
  3049. 7-2 Color Customization
  3050.  
  3051. Select this function by typing "1" at the menu prompt. The Automenu Color
  3052. Customization Section menu will be displayed. This menu lists all sections of
  3053. the menu for which the color can be customized. Select the area you wish to
  3054. change color on by moving the double bracket pointers ( --> ITEM  <-- ) with
  3055. the up and down arrow keys.
  3056.  
  3057. The keys that make the color changes are indicated at the lower third of this
  3058. menu. If you want to black out a section of your menu, simply set the
  3059. foreground color to match the background color, for example black on black.
  3060.  
  3061. When you have made all your desired color changes, press "W" to make the
  3062. changes permanent (Write them to disk). 
  3063.  
  3064. 7-3 Custom Switches
  3065.  
  3066. This menu operates in the same manner as the color menu. The switches are
  3067. described in Table 7.1. 
  3068.  
  3069.   Automenu 4.5             CUSTOMIZING YOUR MENU                  Page 52
  3070. Table 7.1. Custom Switches
  3071.  
  3072. Switch        Options                     Description & Use
  3073. ------        -------                     ----------------------
  3074.  
  3075. Country       USA    --  mm/dd/yy         Sets form in which date
  3076. format for    Europe --  dd/mm/yy         is displayed.
  3077. date          Japan  --  yy/mm/dd
  3078.  
  3079. Time          (12) or 24 hour              12 hour shows AM, PM
  3080.  
  3081. Date/Time     (enabled)/disabled           Determines if date/time is
  3082. display                                    displayed
  3083.  
  3084. Key display   (enabled)/disabled           displays or blanks CAPS, 
  3085.                                            NUM LOCK, etc. display
  3086.  
  3087. Blackout      OFF, or 1-45 min.            Default delay is (3) min.
  3088. delay
  3089.  
  3090. Blackout      (enabled)/disabled           Displays blackout message
  3091. message                                    when enabled.
  3092.  
  3093. Cursor type   (IBM)/Tandy                  Prevents the cursor from
  3094.                                            being seen on the menu
  3095.  
  3096. Screen mode   (color)/b&w                  Used if computer requires
  3097.                                            specific mode
  3098.  
  3099. Display       (color)/b&w                  Used for amber/monochrome screens
  3100.  
  3101. Selection
  3102.  < bar >      (enabled)/disabled           Generally, only one of these
  3103. <pointer>     (enabled)/disabled           is utilized
  3104. <numbers>     (displayed)
  3105.                /not displayed
  3106.  
  3107. Control       (enabled)/disabled            When disabled, user cannot
  3108. Break                                       use CTRL-BREAK to exit to DOS
  3109.                                             while menu screens are active
  3110.  
  3111. Screen swap   (enabled)/disabled            Enabled, allows switching
  3112.                                             between monitors
  3113.  
  3114. Automatic     enabled/(disabled)            Enabled, prevents user from
  3115. clearing                                    making entries before a menu
  3116. of keyboard                                 is displayed, or before a
  3117. buffer                                      command is completed.
  3118.  
  3119. Mouse          enabled/(disabled)           Are you using a mouse?
  3120. support
  3121.  
  3122. Mouse          5 to 60                      Set in increments of 5;
  3123. sensitivity                                 default is (20); Lower 
  3124.                                             numbers = more sensitive
  3125.  
  3126. Default values are in parentheses ( ).
  3127.  
  3128.   Automenu 4.5             CUSTOMIZING YOUR MENU                  Page 53
  3129. 7-4 Change Default Filename for MDF
  3130.  
  3131. If you want to change the default MDF to your something other than
  3132. AUTOMENU.MDF, you must tell that to Automenu. This switch permits you to
  3133. specify your own MDF as the default. The name you specify here remains in
  3134. effect until you change it. However, we recommend that you use AUTOMENU.MDF
  3135. as your default main menu filename.
  3136.  
  3137. 7-5 Change Default Filename for Temporary Batch File
  3138.  
  3139. Changing the temporary batch filename (default is AUTOTEMP.BAT) enables you
  3140. to write the temporary file to a virtual disk, specific drive, or specific
  3141. subdirectory. The filespec you enter here remains in effect until it is
  3142. changed, for example you can either change the name of the file to be created
  3143. (i.e., MYTEMP.BAT), or just change the directory or drive where the temporary
  3144. file is written (i.e., \YOURDIR\AUTOTEMP.BAT or E:AUTOTEMP.BAT). This
  3145. capability gives you needed flexibility in working with Automenu because you
  3146. can specify different names and locations for the temporary batch file.
  3147.  
  3148. The AUTOCUST utility allows you to specify an environmental variable in the
  3149. path/filename to permit Automenu to write a unique AUTOTEMP.BAT so that users
  3150. on a network will not overwrite each other's batch files. Please refer to
  3151. Section 9, "AUTOMENU and Networks", for more details on using environmental
  3152. variables and Automenu.
  3153.  
  3154. 7-6 Reset All Values and Save
  3155.  
  3156. This function permits the user to return all switches, colors and filenames
  3157. to the original program values. You can do this anytime the program is
  3158. running.
  3159.  
  3160. You now have all the information you need to build any kind of menu or menu
  3161. system, and make it as individual as yourself.
  3162.  
  3163. 7-7 Creating Your Own Menus
  3164.  
  3165. After you have installed Automenu on your system, it will be time to add
  3166. items to the menu system. Using AUTOMAKE, you should modify AUTOMENU.MDF and
  3167. enter in menu selection for your own programs and delete all the examples in
  3168. this MDF that you do not need. We recommend that you basically use only the
  3169. {%},{*},{+}, and {#} to get started at first. Once you have the system up and
  3170. running, you can go back and improve it. 
  3171.  
  3172. If you have any problems or questions at this point, you may want to take the
  3173. time to contact our Technical Support Group and see if we can get you back on
  3174. track. Please have your serial number handy when you call. 
  3175.  
  3176. For those who would like a deeper understanding of Automenu, the next section
  3177. provides a more technical discussion of the more complex functions. There are
  3178. also some examples to look at in addition to the MDF's that are on the disk.
  3179.  
  3180.  
  3181.  
  3182.  
  3183.  
  3184.  
  3185.  
  3186.  
  3187.   Automenu 4.5             CUSTOMIZING YOUR MENU                  Page 54
  3188. SECTION 8 
  3189.  
  3190. TECHNICAL CONSIDERATIONS
  3191.  
  3192. Users familiar with DOS and who have some programming experience can use
  3193. Automenu's capabilities to an even greater extent. This section discusses the
  3194. more technical aspects of the program, so those who desire to use it can
  3195. enjoy even more flexibility with Automenu.
  3196.  
  3197. 8-1 Automenu Configuration
  3198.  
  3199. Automenu provides a direct interface with the DOS operating system. Menus are
  3200. created with Magee Enterprises' proprietary and copyrighted Menu Definition
  3201. Language (MDL). The MDL is used to create a Menu Definition File (MDF) in
  3202. which the menus and the commands that create them are stored.
  3203.  
  3204. The Automenu program reads the Menu Definition File (MDF) and effectively
  3205. routes commands entered there to the operating system for execution.
  3206.  
  3207. 8-1.1 Program Interfaces
  3208.  
  3209. A batch file, AUTO.BAT, is the program root. When you follow the installation
  3210. procedure in Section 3, the batch file AUTO.BAT is created and placed in the
  3211. Automenu directory, and optionally within the AUTOEXEC.BAT file. To start
  3212. Automenu, always type "AUTO".
  3213.  
  3214. AUTO.BAT is built around two commands: AUTOMENU %1, which executes the main
  3215. program and your choice of menu files, and AUTOTEMP, which executes commands
  3216. written to AUTOTEMP.BAT by Automenu.
  3217.  
  3218. 8-2 Program Operation
  3219.  
  3220. Automenu executes a menu selection either directly, or through the batch
  3221. file, AUTOTEMP.BAT. The method of execution is set by symbol commands entered
  3222. in the MDF (see Section 5).
  3223.  
  3224. In the direct mode (using the {-} or {=}), Automenu routes the MDF command
  3225. directly to DOS. This method is fast, and since the Automenu program remains
  3226. dormant in memory, the MDF does not have to be reread. The direct mode does,
  3227. however, use more memory than the batch mode.
  3228.  
  3229. In the batch mode, Automenu creates a batch file, AUTOTEMP.BAT, and if the
  3230. resident batch command {!} is present, Automenu executes it while remaining
  3231. dormant in memory.
  3232.  
  3233. If the non-resident batch command {+} is present, Automenu is terminated, and
  3234. the batch file AUTOTEMP.BAT is executed by a continuation of AUTO.BAT. This
  3235. requires that the final command in the MDF be "+AUTO" so that Automenu is
  3236. restarted.
  3237.  
  3238. We assume you are running Automenu from the hard drive C. ALWAYS START
  3239. AUTOMENU WITH THE "AUTO" COMMAND. Do NOT start Automenu by typing "AUTOMENU"
  3240. or you may find that when you make a menu selection, you are dumped out to
  3241. the DOS prompt with no action taken.
  3242.  
  3243.  
  3244.  
  3245.  
  3246.   Automenu 4.5             TECHNICAL CONSIDERATIONS               Page 55
  3247. 8-3 Avoiding Inadvertent Memory Misallocation
  3248.  
  3249. All programs require a minimum amount of RAM to be loaded and to operate.
  3250. Some programs exhibit limitations in their speed or in their capacity to
  3251. store variables when they find only the minimum required memory available for
  3252. use. Automenu's {+} command format provides the ability to maximize the
  3253. RAM available for use by a program. It does this by removing Automenu from
  3254. RAM before a selected program is loaded.
  3255.  
  3256. The most obvious example of how to better utilize memory is in the use of a
  3257. spreadsheet. If the spreadsheet is loaded from a {!} command sequence,
  3258. Automenu will continue to lay claim on approximately 32K of RAM that might
  3259. otherwise be used for spreadsheet cell locations. A better practice would be
  3260. to load the spreadsheet program using a {+} command.
  3261.  
  3262. A less obvious example of inadvertent misallocation of memory is in the
  3263. improper loading of the class of programs that "Terminate and Stay Resident."
  3264. This class of programs remain in memory when they are not in use; they are
  3265. sometimes referred to as "TSR" programs. Because they remain resident in
  3266. memory, they may be called upon without being loaded. Some, such as SIDEKICK
  3267. are called upon by use of a "hot key". Others, such as MODE.COM are
  3268. transparent to the user, but nevertheless all such programs remain in memory
  3269. after they are loaded until the computer is rebooted or until they are
  3270. explicitly removed from memory.
  3271.  
  3272. Examples of such programs are SIDEKICK, PROKEY, TURBO LIGHTNING, and certain
  3273. communications and terminal emulation programs. Also DOS commands GRAPHICS,
  3274. PRINT, and MODE are TSR programs, and in order to do their work they must
  3275. attach to an area of memory and not release it.
  3276.  
  3277. If such a program were to be loaded ABOVE Automenu using the {!} command
  3278. form, all programs loaded subsequently will load into memory above that
  3279. occupied by the TSR program; in this way a spreadsheet program loaded later
  3280. would be unable to use any of the memory that could be vacated by removing
  3281. Automenu from memory. An example of this could be an innocuous command to
  3282. change the MODE. This command would load MODE.COM into memory above that
  3283. occupied by Automenu and preclude the ability to vacate the memory used by
  3284. Automenu for use by programs executed later.
  3285.  
  3286. 8-4 Running Basic Programs
  3287.  
  3288. If you have programs written in BASIC language on your fixed disk, you can
  3289. access them using the {+} symbol in the MDF. When you do so, you must always
  3290. call up BASIC. Here is how you might set up a BASIC program selection:
  3291.  
  3292. %Example Menu
  3293. *Space Wars
  3294. +CD \GAMES
  3295. +BASICA SPACEWARS  <<<--- This command runs BASICA. You may be using
  3296. +CD \AUTOMENU             GWBASIC or some other derivative. In any case
  3297. +AUTO                     place the Basic start-up command here
  3298. #End of Example           followed by the filename to be used. 
  3299.  
  3300. When the program has finished running, the BASIC prompt, "OK," will be
  3301. displayed. Type "SYSTEM" at this prompt, and you will return to Automenu. If
  3302. you create your own BASIC programs use the command "SYSTEM" as the last
  3303. command in order to return to DOS (or Automenu) after completion.
  3304.  
  3305.   Automenu 4.5             TECHNICAL CONSIDERATIONS               Page 56
  3306. 8-5 Using Automenu On Networks
  3307.  
  3308. Automenu is fully compatible with networks. The main problem with older
  3309. versions of Automenu was the creation of the temporary batch file
  3310. AUTOTEMP.BAT. If more than one user ran the same copy of Automenu from the
  3311. same drive and subdirectory at the same time, then more than one person would
  3312. write the AUTOTEMP.BAT file and a conflict occurred. That is why Automenu
  3313. provides a customization utility that allows the user to change the filename
  3314. of the temporary batch file to include both a drive and path name.
  3315. There are many other ways to configure Automenu to be used in the LAN
  3316. environment. Please refer to Section 9, "AUTOMENU and Networks", for a more
  3317. detailed explanation of how to set up your own customized menu files.
  3318.  
  3319. The variety of network operating systems preclude a single method of
  3320. configuring Automenu for all systems. We have helped users set up Automenu to
  3321. work on networks with as many as 400 nodes. We use it in-house on a Novell
  3322. system with absolutely no problems. Please contact our sales department on
  3323. pricing for using Automenu on Networks.
  3324.  
  3325. 8-6 Mouse Support
  3326.  
  3327. Automenu supports the use of a mouse to allow the user to move the pointer
  3328. and to select an option. Moving the mouse up and down simulates the use of
  3329. the up and down arrow keys which moves the option pointer up and down on the
  3330. menu. Moving the mouse from side to side will simulate the use of the left
  3331. and right arrow keys which will then display other menus if they were
  3332. defined. Pressing any of the mouse buttons will simulate the pressing of the
  3333. ENTER key which selects the option indicated on the screen. The mouse
  3334. interface which Automenu uses to control the mouse is provided by the mouse
  3335. manufacturer through a device driver or DOS resident program. Automenu looks
  3336. for this support through interrupt 33H. If this interface is installed,
  3337. Automenu will detect its presence and communicate with the interface. NOTE:
  3338. Automenu is distributed with the menu support disabled. Please refer to
  3339. Section 7, "Customizing Your Menu", for details to enable mouse support.
  3340.  
  3341. 8-7 Uses and Performance for Floppy Diskette Systems
  3342.  
  3343. For a floppy based system, placing the Automenu files on a newly formatted
  3344. diskette will enhance Automenu's performance. The use of a RAM drive and the
  3345. copying of the COMMAND.COM file into this RAM Drive will also help. The
  3346. Customization section can also help to change the location of where the
  3347. temporary batch file is to be written for example on the RAM drive D.
  3348.  
  3349.  
  3350.  
  3351.  
  3352.  
  3353.  
  3354.  
  3355.  
  3356.  
  3357.  
  3358.  
  3359.  
  3360.  
  3361.  
  3362.  
  3363.  
  3364.   Automenu 4.5             TECHNICAL CONSIDERATIONS               Page 57
  3365. 8-8 Contents of an Example AUTOMENU.MDF
  3366.  
  3367. .AUTOMENU Menu Definition File
  3368. .
  3369. .By Marshall W. Magee                          <<<- Comment only
  3370. .................................................
  3371. %AUTOMENU(R) Application Menu       Version 4.5<<<- Menu Title
  3372. .................................................
  3373. *Automenu Menu Building Facility               <<<- Menu Option
  3374. ?Select to Use the AUTOMAKE Menu Editor        <<<- Option Help
  3375. +AUTOMAKE                                      <<<- Run Automake
  3376. +AUTO                                          <<<- Restart
  3377. .................................................   Automenu
  3378. *Automenu Customization Utility
  3379. ?Select to Use the AUTOCUST Utility
  3380. +AUTOCUST
  3381. +AUTO
  3382. ...............................................<<<- Comment only
  3383. *What Is Shareware - A Brief Explanation
  3384. ?Select to Find Out More About Shareware
  3385. +ECHO OFF                                      <<<- Turn echo off
  3386. +CLS                                           <<<- Clear screen
  3387. +TYPE SHARE1.TXT                               <<<- Display three
  3388. +PAUSE                                              screens to
  3389. +CLS                                                explain
  3390. +TYPE SHARE2.TXT                                    Shareware
  3391. +PAUSE
  3392. +CLS
  3393. +TYPE SHARE3.TXT
  3394. +PAUSE                                         <<<- Wait, then
  3395. +AUTO                                               Restart AUTOMENU
  3396. *Basic                                         <<<- Menu option
  3397. ?Run BASIC directly
  3398. -basica                                        <<<- Run without pausing
  3399. *DOS Command Menu
  3400. ?This menu contains commonly used DOS commands
  3401. @DOS.MDF                                       <<<- Load another
  3402. ...............................................     menu file
  3403. *Batch Command Menu
  3404. ?This menu contains some special commands
  3405. @BATCH.MDF                                     <<<- Load another
  3406. ...............................................     menu file
  3407. *Exit  to  DOS                                 <<<- Typical exit to
  3408. ?Return to Disk Operating System                    DOS option
  3409. +ECHO .
  3410. +ECHO                 Exiting  to  DOS
  3411. +ECHO .
  3412. +ECHO .
  3413. +ECHO              Please  Enter    AUTO 
  3414. +ECHO         To  Return  to   Automenu  4.5 
  3415. +ECHO .
  3416. +ECHO .
  3417. +ECHO .
  3418. +ECHO       Thank You For Supporting Shareware!
  3419. .------------------------------
  3420. .Define another sub-menu
  3421. .------------------------------
  3422.  
  3423.   Automenu 4.5             TECHNICAL CONSIDERATIONS               Page 58
  3424. .The following line is the start of Page 2
  3425. %AUTOMENU(R)    ***** Example Second Menu *****<<<- Second page
  3426. .These are examples ONLY - Programs NOT Included    marker
  3427. *Chess                                         <<<- No games are
  3428. ?Play the game of Chess                             included!
  3429. =ECHO No GAMES are included. Example only.     <<<- Run with pause
  3430. .................................................
  3431. *Backgammon
  3432. =ECHO No GAMES are included. Example only.
  3433. #End of AUTOMENU.MDF Menu Definition File      <<<- End of file mark
  3434.                                                     (required)
  3435. 8-9 Examples of Batch Files
  3436.  
  3437. 9-9.1 Floppy Diskette Version
  3438.  
  3439. Contents of AUTOEXEC.BAT             
  3440.  
  3441. ECHO OFF                     <<<- Don't display commands onscreen
  3442. CLS                          <<<- Clear Screen
  3443. DATE                         <<<- Used for systems WITHOUT clock/calendar
  3444. TIME                         <<<- with battery backup 
  3445. PROMPT $P$G                  <<<- Make prompt show current path
  3446. AUTO                         <<<- Command to Start Automenu
  3447.  
  3448. 8-9.2 Fixed Disk Version
  3449.  
  3450. Example contents of AUTOEXEC.BAT  for fixed disk systems
  3451.  
  3452. ECHO OFF                     <<<- Don't display commands that follow
  3453. CLS                          <<<- Clear Screen
  3454. VER                          <<<- Display current DOS version.
  3455. DATE                         <<<- Request present date (OPTIONAL)
  3456. TIME                         <<<- Request present time (OPTIONAL)
  3457. PROMPT $P$G                  <<<- Prompt to show current path
  3458. PATH C:\PUBLIC               <<<- Set Path to subdirectory PUBLIC on C:
  3459. VERIFY ON                    <<<- Disk read after write Verify
  3460. AUTO                         <<<- Execute Automenu batch file (AUTO.BAT)
  3461. REM AUTOEXEC.BAT             <<<- Remark statement in batch file and is
  3462. REM by Marshall  Magee       <<<- Ignored by Automenu.
  3463. REM on 11/15/83
  3464.  
  3465. 8-9.3 Example of AUTO.BAT
  3466.  
  3467. Example of AUTO.BAT          <<<- START Automenu BY TYPING "AUTO"
  3468.  
  3469. ECHO OFF                     <<<- Don't Display commands that follow
  3470. C:                           <<<- Change to C: drive
  3471. CD \AUTOMENU                 <<<- Change to Automenu subdirectory 
  3472. AUTOMENU %1                  <<<- Start Automenu program with menuname
  3473. IF ERRORLEVEL 1 GOTO QUIT    <<<- Check for ERROR during Automenu run
  3474. AUTOTEMP                     <<<- No Error, Execute AUTOTEMP.BAT 
  3475. :QUIT                        <<<- Label for error goto statement
  3476. ECHO ERROR DETECTED . . .    <<<- Display error message
  3477.  
  3478.  
  3479.  
  3480.  
  3481.  
  3482.   Automenu 4.5             TECHNICAL CONSIDERATIONS               Page 59
  3483. 8-10 Menu Definition File (MDF) Description
  3484.  
  3485. The MDF is a standard text file that is read by Automenu to obtain the
  3486. information needed to display the menu. The file consists of lines of text
  3487. ending with a carriage return and line feed characters. THE FIRST CHARACTER
  3488. OF EACH LINE IS USED TO DEFINE THE FUNCTION OF THAT LINE TO AUTOMENU.
  3489.  
  3490. 8-11 User Support
  3491.  
  3492. 8-11.1 Problems and Technical Support
  3493.  
  3494. If you have problems with Automenu, please read this manual first to make
  3495. sure you do understand everything. We have tried to provide a problem-free
  3496. product but sometimes we make mistakes. If you think you have found a problem
  3497. please take the time to contact us and explain your problem to us. All
  3498. registered users will be informed of any problems and their solution. Make
  3499. sure that you include the following information to help us evaluate the
  3500. problem:
  3501.  
  3502. 1.    Version of DOS you are using
  3503. 2.    Machine type, memory, monitor type, hardware description
  3504. 3.    Any application executed before Automenu
  3505. 4.    Your address and telephone number (when corresponding)
  3506. 5.    Where, when and how you obtained Automenu
  3507. 6.    Which version of Automenu you are using
  3508. 7.    Copies (printouts) of your current MDF's
  3509. 8.    Printouts of your AUTOEXEC.BAT and CONFIG.SYS files
  3510. 9.    Your product SERIAL NUMBER
  3511.  
  3512. We also provide an electronic Bulletin Board System (BBS) for anyone
  3513. interested in Automenu or Shareware in general. This board currently supports
  3514. 1200, 2400, 4800, 9600 baud and 19.2 KB (Hayes) speeds and is available 24
  3515. hours a day, seven days a week. Multiple lines are now available, however in
  3516. the future we will offer some lines that are limited to registered users
  3517. only.
  3518.  
  3519. We maintain the most current releases of our products and many other helpful
  3520. files concerning Automenu, as well as a large selection of other SHAREWARE
  3521. products provided to us DIRECTLY from the authors. The BBS can be reached by
  3522. calling 404-446-6650. We also can be reached through a CompuServe ID:
  3523. 76004,1541. Our Technical Support Group is open between the hours of 9am to
  3524. 4pm ET Monday through Friday, and their direct line is 404-662-5387. We also
  3525. a have FAX line available at 404-368-0719.
  3526.  
  3527. 8-12 Source Code
  3528.  
  3529. The source code for AUTOMENU.COM and AUTOCUST.COM is written entirely in
  3530. assembly language. The Menu-Building Facility (AUTOMAKE) is compiled with the
  3531. Microsoft Basic Compiler (BASCOM) Version 6.0.
  3532.  
  3533. For those interested, the source code was composed with IBM's Personal Editor
  3534. II and assembled with Microsoft's Macro Assembler Version 5.1 under DOS 3.3.
  3535. Automenu source code is no longer available. The current product is
  3536. substantially larger and more sophisticated than those before and the author
  3537. cannot (and does not wish to) be responsible for changes and enhancements
  3538. made by others as is the case when source code is released.
  3539.  
  3540.  
  3541.   Automenu 4.5             TECHNICAL CONSIDERATIONS               Page 60
  3542. 8-13 Shareware
  3543.  
  3544. Shareware distribution gives users a chance to try software before buying it.
  3545. If you try a shareware program and continue using it, you are expected to
  3546. register. Individual programs differ on details -- some request registration
  3547. while others require it, some specify a maximum trial period (30 days). With
  3548. registration, you get anything from the simple right to continue using the
  3549. software to an updated program with printed manual.
  3550.  
  3551. Copyright laws apply to both shareware and commercial software, and the
  3552. copyright holder retains all rights, with a few specific exceptions as stated
  3553. below. Shareware authors are accomplished programmers, just like commercial
  3554. authors, and the programs are of comparable quality. (In both cases, there
  3555. are good programs and bad ones!) The main difference is in the method of
  3556. distribution. The author specifically grants the right to copy and distribute
  3557. the software, either to all and sundry or to a specific group. For example,
  3558. some authors require written permission before a commercial disk vendor may
  3559. copy their programs.
  3560.  
  3561. So, shareware is a distribution method, not a type of software. You should
  3562. find software that suits your needs and pocketbook, whether it's commercial
  3563. or shareware. The shareware system makes fitting your needs easier, because
  3564. you can try before you buy. And because the overhead is low, prices are low
  3565. also. Shareware has the ultimate money-back guarantee -- if you don't use the
  3566. product, you don't pay for it!
  3567.  
  3568. There is an Association of Shareware Professionals (ASP) made up of companies
  3569. and individuals concerned about quality software. If you are interested in
  3570. shareware or the Association, please feel free to contact us and we will
  3571. provide you with current information.
  3572.  
  3573. A common question is asked of us, "How do I find out about other shareware
  3574. products that are available?" There are many companies that provide the
  3575. service of finding and cataloging shareware products; and for a small fee,
  3576. will send you a diskette with shareware products on it. The first company to
  3577. provide this service was "The Public (Software) Library." To reach them,
  3578. write to Nelson Ford, P.O. Box 35707, Houston, Texas 77235-5705 or call
  3579. 713-721-5205. For the names for other companies that provide this service,
  3580. look for ads in your favorite computing magazines. Our BBS contains the
  3581. latest versions of quality shareware provided to us DIRECTLY ON DISK from the
  3582. authors, so check for that phone number elsewhere in this manual.
  3583.  
  3584. 8-14 Future
  3585.  
  3586. There will always be improvements in this software as the need warrants. Any
  3587. comments or suggestions concerning Automenu would be greatly appreciated.
  3588. Updates and other exciting programs will be available in the future. Thank
  3589. you, and tell your friends about us!
  3590.  
  3591.  
  3592.  
  3593.  
  3594.  
  3595.  
  3596.  
  3597.  
  3598.  
  3599.  
  3600.   Automenu 4.5             TECHNICAL CONSIDERATIONS               Page 61
  3601. SECTION 9 
  3602.  
  3603. AUTOMENU AND NETWORKS
  3604.  
  3605. Automenu has been enhanced to operate more smoothly with local area networks,
  3606. and has been tested in-house under Novell Netware. 
  3607.  
  3608. The benefit in using Automenu (or any program) on a network is the fact that
  3609. a SINGLE COPY of the program and associated data files can be SHARED by all
  3610. users. Up until now, most programs required you to place several copies on
  3611. the system in separate subdirectories in order that no two users could access
  3612. the same files at the same time. Network-specific software is designed to
  3613. allow multiple users to utilize the program concurrently.
  3614.  
  3615. This version of Automenu employs some new user-defined controls that permit
  3616. you to establish some very important criteria:
  3617.  
  3618. 1. The file name and path where the temporary batch file is written
  3619. 2. The file name and path to use for the default Menu Definition File
  3620.  
  3621. 9-1 Environmental Variables
  3622.  
  3623. While previous versions could perform the above mentioned tasks, now you can
  3624. also substitute an ENVIRONMENTAL VARIABLE within those specifications. To
  3625. create ONE menu file that can be shared with all users on a network, we must
  3626. signify several things to the system, either at boot time or at network LOGIN
  3627. time.
  3628.  
  3629. For this feature of Automenu to work properly, we must be able to somehow
  3630. differentiate between users on a network system. This is typically done by
  3631. specifying something called an Environmental Variable. You will need to
  3632. specify the value for it by placing a "SET variablename = value" statement
  3633. within the network login or AUTOEXEC.BAT procedure. For example, if user
  3634. Betty logs onto the network, part of her login script should be SET USER_NAME
  3635. = BETTY, so that the variable "USER_NAME" will be placed in the DOS
  3636. environment and set to a value of "BETTY". Later, Automenu will be able to
  3637. reference this variable with the %USER_NAME% convention, and substitute
  3638. Betty's name in it's place.
  3639.  
  3640. Let's look at the sample network menu file below. You will note several uses
  3641. of environment variables as represented by names surrounded with the percent
  3642. symbols (%), i.e., "%USER_NAME%".
  3643.  
  3644. %AUTOMENU Sample Network Menu For %USER_NAME%
  3645. *Word Processing System
  3646. ?Run WordPerfect For %USER_NAME%      <<<-- Automenu will substitute user's 
  3647. +CD \ %USER_NAME%                           name for each occurrence of the 
  3648. +WP                                         variable %USER_NAME%.
  3649. +CD \AUTOMENU
  3650. +AUTO
  3651. *DataBase Management System
  3652. ?Run PC File+ Latest Version
  3653. +CD \PCF
  3654. +PCF /PATH,\PCF\%USER_NAME%           <<<-- Call a program and pass to it a
  3655. +CD \AUTOMENU                               parameter based on user's name
  3656. +AUTO 
  3657. #End of Sample MDF
  3658.  
  3659.   Automenu 4.5               AUTOMENU AND NETWORKS                Page 62
  3660. 9-2 The DOS Environment
  3661.  
  3662. In the above example, each time we use the "%USER_NAME%" variable, Automenu
  3663. will look in the DOS environment for a variable of the same name and use its
  3664. value instead. The "environment" is really just a common area of memory that
  3665. programs can write to and read from - kind of a "general store" of program
  3666. information. Some programs are geared to look specifically at the environment
  3667. to find particular data important to their operation. If we were to look at
  3668. the DOS environment (by typing the SET command), we might see a listing
  3669. similar to the one below:
  3670.  
  3671.                          COMSPEC=C:\COMMAND.COM
  3672.                          PATH=C:\;C:\DOS;C:\UTIL
  3673.  
  3674. Other values might be present, like PROMPT=$P$G, and more depending on the
  3675. types and kinds of software you are running. Some programs ask you to place a
  3676. variable into the environment equal to a certain value so that they can find
  3677. support files which could not be found otherwise.
  3678.  
  3679. If you use a "SET USER_NAME=username" command, either within AUTOEXEC.BAT or
  3680. your network login script, Automenu will be able to refer to that variable
  3681. later on during the course of operation. This way you can write a single Menu
  3682. Definition File, with variables throughout, and depending on how the user
  3683. logs into the system, each will see a slightly different menu, with what can
  3684. be dramatically different functionality.
  3685.  
  3686. In the preceding example of an MDF, if it were Betty who logged onto the
  3687. system, her screen would show a title that read "Automenu Sample Network Menu
  3688. For Betty", and if she selected menu option number one (Word Processing
  3689. System), she would be logged into the "\BETTY" subdirectory before executing
  3690. her word processing program. When she was done, Automenu would return her to
  3691. the main menu. Note that all this is done based on how the user logged into
  3692. the system. If the user were Mark, his name would have appeared in all those
  3693. places, and "\MARK" would have been the subdirectory changed to.
  3694.  
  3695. The DOS environment is initialized by the user with the SET command
  3696. (available under DOS 2.0 and later) and can be read and/or modified by
  3697. application programs and batch files by specifying the name of a variable
  3698. enclosed within percent symbols (%USER_NAME%). SET is an internal DOS command
  3699. to modify, create, delete or display string variables, and is an easy way to
  3700. provide configuration data to programs and batch files. 
  3701.  
  3702. Think of the environment as a kind of "message board" that your programs can
  3703. write to and read from whenever they want. Your AUTOEXEC.BAT file can contain
  3704. statements like SET MV=C:\UTIL, which will set the value of variable MV equal
  3705. to C:\UTIL. If you type the command SET at any time, you will see two things:
  3706. the variable names as they were written to the environment, and their values,
  3707. similar to the example earlier. That system had variables COMSPEC and PATH
  3708. defined as variables, and "C:\COMMAND.COM" and "C:\;C:\DOS;C:\AUTOMENU" as
  3709. the values associated with them, respectively.
  3710.  
  3711.  
  3712.  
  3713.  
  3714.  
  3715.  
  3716.  
  3717.  
  3718.   Automenu 4.5               AUTOMENU AND NETWORKS                Page 63
  3719. NOTE: When specifying environment variables for a FILENAME, make certain that
  3720. the resulting filename is a VALID DOS Filename! Errors will result if you
  3721. don't take this precaution. You may want to limit the length of the variables
  3722. you create to be sure they will operate correctly.
  3723.  
  3724. With the power to use a single menu file system-wide, this version of
  3725. Automenu eliminates the redundancy of files that you may have experienced
  3726. before. By creating only ONE Menu Definition File (MDF) and only placing ONE
  3727. copy of the AUTOMENU.COM program on your network server, far more efficient 
  3728. use of your system's storage facilities are maintained, and far less work is
  3729. required to make modifications to user menus. Here is an example of a typical
  3730. user-oriented, network based menu file:
  3731.  
  3732.  
  3733.  
  3734.  
  3735.  
  3736.  
  3737.  
  3738.  
  3739.  
  3740.  
  3741.  
  3742.  
  3743.  
  3744.  
  3745.  
  3746.  
  3747.  
  3748.  
  3749.  
  3750.  
  3751.  
  3752.  
  3753.  
  3754.  
  3755.  
  3756.  
  3757.  
  3758.  
  3759.  
  3760.  
  3761.  
  3762.  
  3763.  
  3764.  
  3765.  
  3766.  
  3767.  
  3768.  
  3769.  
  3770.  
  3771.  
  3772.  
  3773.  
  3774.  
  3775.  
  3776.  
  3777.   Automenu 4.5               AUTOMENU AND NETWORKS                Page 64
  3778. %%USER_NAME%'s NETWORK MAIN MENU <<<-- User's Name in Title
  3779. *%USER_NAME%'s Own Menu
  3780. ?Access User's own System        
  3781. @%USER_NAME%.MDF                 <<<-- Load User's Menu File
  3782. *Inventory Control System
  3783. ?Select to Use User's Dept. Database
  3784. >Please Input the Drive Letter   <<<-- Display Output Message
  3785. >             You Wish to Access, or Press
  3786. >             ESCAPE to Return to Automenu.
  3787. >
  3788. <A:,B:,C:,D:,F:,G:               <<<-- Drive Selections
  3789. >
  3790. >And the Name of the SUBDIRECTORY Your File is In.
  3791. >
  3792. <\%USER_NAME%,\,\DATA            <<<-- Show Generic 
  3793. >                                      Choices For Selection
  3794. >And Now Please Select the Name
  3795. >             Of the File You Wish to Access.
  3796. >
  3797. <%USER_NAME%,%FIRST_FILE%,INVENTRY,BASICS,LOCAL
  3798. +ECHO OFF
  3799. +CLS
  3800. +%1                              <<<-- Log to Drive as Specified
  3801. +CD \%2                                and Subdirectory
  3802. +PCF /FILE,%3                    <<<-- Use Variable Filename
  3803. +CD \AUTOMENU                    <<<-- Change Directory
  3804. +AUTO NETEXAMP.MDF               <<<-- Re-run Automenu with NETEXAMP.MDF
  3805. *Exit To DOS
  3806. ?Select to Return to Network Main Directory
  3807. +CD \PUBLIC
  3808. +ECHO NOW EXITING TO DOS IN NETWORK SUBDIRECTORY
  3809. +ECHO JUST TYPE "AUTO" TO RETURN TO AUTOMENU
  3810. #End of Network Menu Example "NETEXAMP.MDF"
  3811.  
  3812. You can find this file on your distribution disk as NETEXAMP.MDF. Feel free
  3813. to modify it as needed for your particular situation, and be sure to check
  3814. your DOS manual for further explanation of the Environmental Variable. Also
  3815. refer to the new Appendix B, "Recommended Reading", for more places you can
  3816. get technical background information about all aspects of the Disk Operating
  3817. System. 
  3818.  
  3819. The following is an example of a user-specific menu file called from the
  3820. previous sample:
  3821.  
  3822. %Betty's Own Menu
  3823. *Word Processing
  3824. +CD \WP\BETTY
  3825. +WP
  3826. +CD \AUTOMENU
  3827. +AUTO BETTY.MDF
  3828. *Return to Network Main Menu
  3829. @AUTOMENU.MDF
  3830. #End of Betty's Menu System  
  3831.  
  3832.  
  3833.  
  3834.  
  3835.  
  3836.   Automenu 4.5               AUTOMENU AND NETWORKS                Page 65
  3837. 9-3 Changing Default Temporary Batch Filename
  3838.  
  3839. To create uniquely named and located AUTOTEMP.BAT files, run the AUTOCUST
  3840. utility and choose option number four. When prompted for a new filename,
  3841. input something like this: C:\%USER_NAME%\AUTOTEMP.BAT. This will instruct
  3842. Automenu to use a particular user's subdirectory into which to write the
  3843. temporary batch file. Note that in this case the file will still be named
  3844. AUTOTEMP.BAT, it will just be located in a unique spot. Conversely you could
  3845. tell AUTOCUST to write the temporary batch file as: %USER_NAME%.BAT. This
  3846. will still write the batch file to the default drive and subdirectory, but
  3847. with a unique name. After inputting the new data, press ENTER, then option
  3848. six to exit AUTOCUST.
  3849.  
  3850. 9-4 Changing Default Menu Definition Filename
  3851.  
  3852. Similarly, to change the name of the default Menu Definition File, call
  3853. AUTOCUST and select option three. Input a new filename (if desired) something
  3854. like this: %USER_NAME%.MDF, then press ENTER. This will result in Automenu
  3855. using a different default menu file for each user on the network. To exit
  3856. AUTOCUST, select option six.
  3857.  
  3858. 9-5 Network Installation
  3859.  
  3860. To install Automenu on a network system, first make certain that you have
  3861. access rights to the drive and directory on which you wish to copy the
  3862. Automenu program files. Check with the network administrator or other
  3863. supervisor to make sure you have this access. You will not be able to install
  3864. Automenu properly without write access.
  3865.  
  3866. Because of the differing topologies involved with network system
  3867. architectures, this procedure may vary, but usually there is a network
  3868. (server) drive and subdirectory that users can access even when they are not
  3869. logged onto the system. We suggest that Automenu be installed on this drive
  3870. and in this subdirectory so that if user logging is to be performed from
  3871. Automenu, no errors will occur. If a user logs off the network from a drive
  3872. and/or subdirectory that only the network gives them access to, DOS will
  3873. report a "Batch File Missing" error upon system logout. By placing Automenu
  3874. in an area like this, all users will be able to access the files, whether or
  3875. not they are logged onto the network.
  3876.  
  3877. After determining that your system will permit you to copy the Automenu files
  3878. to the network server, make a subdirectory that all users will be able to
  3879. access, and copy all files from the distribution diskette into it. Edit the
  3880. AUTO.BAT file to contain an instruction to change drives and directories to
  3881. the one where Automenu files are located:
  3882.  
  3883.               F:
  3884.               CD \LOGIN\AUTOMENU
  3885.               AUTOMENU %1
  3886.               IF ERRORLEVEL 1 GOTO QUIT
  3887.               AUTOTEMP
  3888.               :QUIT
  3889.               ECHO ERROR DETECTED. . .
  3890.  
  3891.  
  3892.  
  3893.  
  3894.  
  3895.   Automenu 4.5               AUTOMENU AND NETWORKS                Page 66
  3896. Also change the line that says "AUTOTEMP" to one that uses an environmental
  3897. variable established in the user's login procedure. For example, if the
  3898. typical user login performs a "SET USER_NAME=" (where USER_NAME is a unique
  3899. name assigned to each user), then perhaps you could rename the AUTOTEMP
  3900. instruction to %USER_NAME%. This would keep different users from overwriting
  3901. each other's temporary batch file every time Automenu is executed.
  3902.  
  3903. Then make certain to call the Automenu Customization Utility AUTOCUST and
  3904. select option number four, "Change Default Filename for Temporary Batch
  3905. File". Enter %USER_NAME%.BAT and press Enter. This will tell Automenu to use
  3906. an environmental variable when writing the batch file, and if all users have
  3907. a unique value assigned, this will prevent accidental overwrites on the
  3908. system as different users perform different tasks.
  3909.  
  3910. You may also change the name of the default Menu Definition File in the same
  3911. manner by running AUTOCUST, selecting option three, "Change Default Filename
  3912. for Menu Definition File", and inputting a path and filename that includes an
  3913. environmental variable (i.e., F:\AUTOMENU\%USER_NAME%.MDF or
  3914. %USER_NAME%.MDF). In all these cases, Automenu will substitute the values for
  3915. the variables before reading the menu, so that Automenu will load
  3916. %USER_NAME%.MDF (where Betty is the user) as BETTY.MDF.
  3917.  
  3918. We recommend using AUTOMENU.MDF as your "anchor" menu, and calling or
  3919. branching out to other menus and then back to AUTOMENU.MDF again.
  3920.  
  3921. The use of variables in menu files has been supported in previous versions of
  3922. Automenu, however they have not been supported within the AUTOCUST program.
  3923. By using this capability sparingly and wisely, a network administrator can
  3924. set up a menu system that employs only a single copy of the Automenu program
  3925. and a single menu file that all users can access. These environmental
  3926. variables are now supported in the following areas:
  3927.  
  3928.  
  3929.                    Menu Definition Files (MDFs)
  3930.                    Name and location of the temporary batch file
  3931.                    Name of the default MDF
  3932.  
  3933.  
  3934. By using the example in this section as a guide, you should be able to adapt
  3935. Automenu to the requirements of your particular networking system. If you
  3936. require additional assistance, make certain to have your serial number handy
  3937. and call our Technical Support Group at the telephone number listed in the
  3938. very front of this manual.
  3939.  
  3940. 9-6 Automenu Control Points
  3941.  
  3942. There are several user definable features of Automenu that allow for
  3943. increased flexibility and control in everyday computer system operations.
  3944.  
  3945. The Automenu "system components" are as follows.
  3946.  
  3947. AUTOEXEC.BAT - This is one of the files your PC looks for at boot up, and if
  3948. it exists, the commands there are carried out. This is usually where
  3949. environmental variables are assigned, configurations loaded, time and date
  3950. set, terminate and stay resident programs executed and a startup program is
  3951. run (like Automenu). A typical AUTOEXEC.BAT file might look like this:
  3952.  
  3953.  
  3954.   Automenu 4.5               AUTOMENU AND NETWORKS                Page 67
  3955. SET USER_NAME=MARK
  3956. SET HOME_SPOT=C:
  3957. SET AUTO_DIR=\AUTOMENU
  3958. DATE
  3959. TIME
  3960. CD \AUTOMENU
  3961. AUTO
  3962.  
  3963. The SET commands are important because they can establish the unique identity
  3964. of the user for later processing and control. For instance, if we wish to
  3965. move to a drive and subdirectory that is unique to all users, we can specify
  3966. commands like
  3967.  
  3968.               %HOME_SPOT%
  3969.               CD \%USER_NAME%
  3970.  
  3971. This would execute as C: and CD \BETTY if those values were SET earlier in
  3972. the AUTOEXEC.BAT file. This would allow a single set of commands to perform a
  3973. wider variety of functionality based on values set into the environment. The
  3974. AUTOEXEC.BAT file is just one of the places that will recognize and utilize
  3975. these variables.
  3976.  
  3977. LOGIN SCRIPT (Optional, for Network Users) - Similar to the AUTOEXEC file,
  3978. the network login script is executed whenever the user logs onto a network
  3979. operating system. This is another place where environmental variables can
  3980. (and should) be set for later processing and control.
  3981.  
  3982. AUTO.BAT - This is the "root" program of Automenu; that is, for Automenu to
  3983. function properly, the user must issue an AUTO command from DOS. Typically
  3984. what happens in AUTO.BAT is as follows:
  3985.  
  3986. Log to a disk drive (C:)
  3987. Change to the Automenu directory (CD \AUTOMENU)
  3988. Run Automenu with a parameter (AUTOMENU %1)
  3989. Check for the successful execution of Automenu (IF ERRORLEVEL 1...)
  3990. Run the temporary batch file (AUTOTEMP)
  3991.  
  3992. The first two commands can be substituted with variables as in the
  3993. AUTOEXEC.BAT example, above. Instead of using an explicit drive designation
  3994. (C:), we could specify a variable (%HOME_SPOT%) to perform the same function.
  3995. This would allow different users to log to different drives as they required.
  3996. Similarly, instead of specifically calling a particular subdirectory by name
  3997. (\AUTOMENU), we could reference a variable (%AUTO_DIR%). You can see how this
  3998. provides much more flexibility for systems that need it, and keeps users from
  3999. trying to run each other's programs or using each other's data files.
  4000.  
  4001. While the name of the Automenu program should not be changed, under DOS 3.0
  4002. or above you could specify a particular drive or directory to run it from, as
  4003. in C:AUTOMENU %1, F:\AUTO\AUTOMENU %1, or even %HOME_SPOT%\AUTOMENU %1. In
  4004. this way you do not need to place the Automenu programs on the DOS PATH,
  4005. because you are specifying where to find the program on the command line,
  4006. either explicitly or through another environmental variable. Note that this
  4007. is only supported by DOS 3.X and above.
  4008.  
  4009.  
  4010.  
  4011.  
  4012.  
  4013.   Automenu 4.5               AUTOMENU AND NETWORKS                Page 68
  4014. As far as the temporary batch filename goes, again a variable can be
  4015. specified to designate which batch file to run based on a unique user
  4016. identifier as set within the environment. For example, instead of calling the
  4017. batch file AUTOTEMP, we might specify the same filename but in a unique
  4018. location (%USER_NAME%\AUTOTEMP), or a different filename in the same location
  4019. (%USER_NAME%). Calling a name other than the default of AUTOTEMP requires
  4020. that Automenu be told that new name and/or location through the use of the
  4021. AUTOCUST utility.
  4022.  
  4023. By running AUTOCUST.COM and selecting option four (Change Default Filename
  4024. for Temporary Batch File), we can tell Automenu not only where to write the 
  4025. temporary batch file (user's directory, root directory, local disk drive, RAM
  4026. disk, or as specified by a variable), but what to call it
  4027. (%USER_NAME%.BAT, TEMP.BAT, UNO.BAT, or WHATEVER.BAT). This powerful feature
  4028. means that there is virtually no network system or other user configuration
  4029. that cannot run Automenu properly and efficiently, and that it can be done
  4030. without overwriting each other's files or causing other hardware or software
  4031. related conflicts.
  4032.  
  4033. AUTOCUST.COM can also specify the name and location of the default menu file
  4034. to be used by Automenu when it runs. By calling AUTOCUST and selecting option
  4035. three (Change Default Filename for Menu Definition File), you can tell
  4036. Automenu where to read the menu file from (C:AUTOMENU.MDF,
  4037. %HOME_SPOT%AUTOMENU.MDF, or even %HOME_SPOT%%AUTO_DIR%\AUTOMENU.MDF), as well
  4038. as which file to read (C:MAINMENU.MDF, A:%USER_NAME%.MDF, or
  4039. %HOME_SPOT%%AUTO_DIR%\WHATEVER.MDF).
  4040.  
  4041. By using environmental variables, we can achieve a higher level of
  4042. functionality along with a lower requirement for maintenance. It is far
  4043. easier to change one menu file than dozens, and it is far more efficient to
  4044. store a single copy of a program and data files on a network server than
  4045. copies in different user subdirectories. By thinking through the requirements
  4046. of the network, you can configure Automenu in the best possible fashion, to
  4047. do the most work with the least effort.
  4048.  
  4049. Remember that Automenu can be told where to read and write files, and what to
  4050. call them through the use of DOS environmental variables. If you need further
  4051. discussion on the subject of the DOS environment, please check the listings
  4052. of recommended reading in Appendix B or your DOS technical reference manual.
  4053.  
  4054.  
  4055.  
  4056.  
  4057.  
  4058.  
  4059.  
  4060.  
  4061.  
  4062.  
  4063.  
  4064.  
  4065.  
  4066.  
  4067.  
  4068.  
  4069.  
  4070.  
  4071.  
  4072.   Automenu 4.5               AUTOMENU AND NETWORKS                Page 69
  4073. APPENDIX A 
  4074.  
  4075. ERROR MESSAGES
  4076.  
  4077. Message: ERROR READING MENU DEFINITION FILE
  4078.  
  4079. Reason: AUTOMENU cannot find or read the menu definition file, or the file is
  4080. in an improper format.
  4081.  
  4082. Action: Ensure that the file is in the proper format and properly named. Be
  4083. certain that your text editor saves pure ASCII files, without imbedded
  4084. control characters. Also, check for any possible disk-related hardware
  4085. problems. Make sure you are logged to the drive and subdirectory where your
  4086. Menu Definition Files are stored before calling AUTOMENU.
  4087.  
  4088. Remember that ALL MDFs SHOULD BE NAMED WITH AN EXTENSION OF ".MDF" (i.e.,
  4089. MYMENU.MDF).
  4090.  
  4091. Message: INVALID FILENAME
  4092.  
  4093. Reason: The filename given contains too many characters or is not a valid DOS
  4094. filename. You may not include spaces in any Filename.
  4095.  
  4096. Action: Rename your MDF filename. It can have up to eight characters,
  4097. followed by the extension ".MDF".
  4098.  
  4099. Message: NOT ENOUGH MEMORY AVAILABLE TO LOAD MDF
  4100.  
  4101. Possible Reason: Your MDF is too large for your computer's memory.
  4102.  
  4103. Action: Use {@} to place a portion of your menu into an alternate MDF. Call
  4104. the alternate MDF from the original menu. 
  4105.  
  4106. Possible Reason: You have attempted to run a TSR program such as Sidekick or
  4107. Turbo Lightning, or DOS commands like MODE, PRINT and GRAPHICS, using the
  4108. {!}, {-}, or {=} resident symbols. The system cannot get to the open portion
  4109. of memory.
  4110.  
  4111. Action: Rewrite the menu selection with the TSR program using {+}
  4112. non-resident symbols.
  4113.  
  4114. Message: AUTOMENU REQUIRES DOS 2.0 OR HIGHER
  4115.  
  4116. Reason: This software will not operate under any version of DOS 1.X.
  4117.  
  4118. Action: You must update your version of DOS to version 2.X, 3.X or 4.X.
  4119.  
  4120. Message: ERROR ON OR AFTER LINE nnn IN MDF
  4121.  
  4122. You have written an instruction within the Menu Definition File that is
  4123. incorrect, in an improper format, or have left a blank line within the MDF.
  4124. Look at the file again with AUTOMAKE or your own text editor, paying
  4125. particular attention to line number "nnn" or somewhere thereafter. For
  4126. example, a line with a "?" (or any AUTOMENU command) in position 1 followed
  4127. by blank spaces will give this error message.
  4128.  
  4129.  
  4130.  
  4131.   Automenu 4.5                    APPENDIX A                      Page 70
  4132. Message: NOT ENOUGH MEMORY TO LOAD COMMAND.COM
  4133.  
  4134. Reason: To execute any direct DOS commands, at least 17KB of memory is
  4135. required so COMMAND.COM can be loaded. Different versions of DOS will require
  4136. somewhat more memory.
  4137.  
  4138. Action: You can utilize only the non-resident features of AUTOMENU - use the
  4139. {+} command instead of {!}, {-}, or {=}.
  4140.  
  4141. Message: COMSPEC= NOT FOUND IN ENVIRONMENT
  4142.  
  4143. Reason: This information must be in the environment space for AUTOMENU to be
  4144. able to locate COMMAND.COM.
  4145.  
  4146. Action: Use the "SET" command in AUTOEXEC.BAT to place COMSPEC= in the system
  4147. environment space.
  4148.  
  4149. Example: SET COMSPEC=C:\COMMAND.COM.
  4150.  
  4151. This example would help AUTOMENU find COMMAND.COM on DRIVE C:. You should set
  4152. COMSPEC equal to the root directory of the boot drive, either A: or C:.
  4153.  
  4154. Message: CAN'T WRITE TEMPORARY BATCH FILE
  4155.  
  4156. Reason:  You do not have sufficient space left on your disk, or the disk is
  4157. write-protected.
  4158.  
  4159. Action: Delete unnecessary files on disk. Remove any write-protect tabs.
  4160. Replace disk with non-write-protected disk. Check for disk related hardware
  4161. problems. On NETWORK SYSTEMS, make sure you have read/write access privileges
  4162. set up by the System Administrator.
  4163.  
  4164. Message: CANNOT OPEN MDF
  4165.  
  4166. Reason:  Automenu cannot find the Menu Definition File, or an incorrect menu
  4167. name was specified.
  4168.  
  4169. Possible Cause: The user has failed to return to the subdirectory where MDFs
  4170. are stored after execution of a DOS command. 
  4171.  
  4172. Action:  Rewrite the menu selection to include a "+CD \AUTOMENU" command (NO
  4173. QUOTES). Check the spelling of the menu file you have specified.
  4174.  
  4175. %Example Menu
  4176. *Wordstar
  4177. +CD \WS            <<<--- Execute while AUTOMENU remains in
  4178. +WS                       memory.
  4179. +CD \AUTOMENU
  4180. +AUTO              <<<--- Automenu will regain control after completion.
  4181. #End of Example
  4182.  
  4183. Possible Cause: MDF does not contain a "#" (End-of-File mark) in column 2, or
  4184. the left-most position when using an editor other than AUTOMAKE, of the last
  4185. line of the file.
  4186.  
  4187. Action: Verify that MDF has a "#" symbol at the beginning of its last line.
  4188.  
  4189.  
  4190.   Automenu 4.5                    APPENDIX A                      Page 71
  4191. Error - AUTOMENU starts Okay, but when a menu selection is made, user is
  4192. "dumped" to the DOS prompt.
  4193.  
  4194. Solution: You did not start by typing "AUTO". AUTOMENU will create a
  4195. temporary batch file from your DOS commands, but it requires AUTO.BAT to
  4196. execute that file. Start again by typing "AUTO", optionally followed by the
  4197. name of a menu file: "AUTO MAIN.MDF".
  4198.  
  4199.  
  4200. Error: Cannot Install AUTOMENU - "Error in executing command"
  4201.  
  4202. Solution 1: Make sure you are logged to the drive you wish to install
  4203. AUTOMENU on, and type "A:INSTALL". To install on fixed disk drive C, log to
  4204. the "C:" drive and place the AUTOMENU distribution disk in the "A:" drive and
  4205. type "A:INSTALL".
  4206.  
  4207. Solution 2: Sometimes AUTOMENU needs access to COMMAND.COM, and if it is not
  4208. in the current subdirectory it will be looked for in the "COMSPEC=" string
  4209. within the DOS environment. If this error persists, try placing a copy of
  4210. your version of COMMAND.COM within the same subdirectory that your AUTOMENU
  4211. programs are located. Also make sure that you do not have different versions
  4212. of COMMAND.COM on your fixed disk.
  4213.  
  4214.  
  4215. Error: Unexpected SW Interrupt nn at XXXX:YYYY
  4216.  
  4217. Sometimes, your system may return an error similar to the one above. While
  4218. the "nn", "XXXX" and "YYYY" are numbers whose values may differ, they
  4219. basically indicate a condition that is related to AUTOMENU looking for a
  4220. system resource (such as a mouse device driver) that it cannot find. If you
  4221. are NOT using a mouse, make sure to configure AUTOMENU to disable mouse
  4222. support by calling the Customization Utility AUTOCUST. Selecting Option 2
  4223. (Custom Switches) will present a list of items that can be modified, the last
  4224. two of which deal with the mouse feature.
  4225.  
  4226.  
  4227. Some errors are noticed by AUTOMAKE, the Menu Building Facility:
  4228.  
  4229. Error: Error In Reading This File
  4230.  
  4231. You may have attempted to use a text editor that places characters other than
  4232. "straight ASCII" codes in your MDF, or the End Of File (^Z) marker is not
  4233. present within the file. AUTOMAKE requires a text file where each line begins
  4234. with a valid AUTOMENU command character and with an EOF mark placed after the
  4235. last line. Re-edit your file with DOS' Edlin program, or use a text editor
  4236. that you are sure places the file in the proper format. Also be sure NOT to
  4237. have any blank lines in the file.
  4238.  
  4239.  
  4240.  
  4241.  
  4242.  
  4243.  
  4244.  
  4245.  
  4246.  
  4247.  
  4248.  
  4249.   Automenu 4.5                    APPENDIX A                      Page 72
  4250. APPENDIX B 
  4251.  
  4252. RECOMMENDED  READING  FOR  DOS  USERS
  4253.  
  4254. There are many good books on using the hidden powers of the Disk Operating
  4255. System, and if you want additional background on using and learning DOS, try
  4256. one or more of these fine volumes:
  4257.  
  4258. RUNNING MS-DOS (3rd Ed.), Van Wolverton, Microsoft Press
  4259.  
  4260. This is probably the very best of the "aftermarket" DOS books, not just
  4261. because it's published by Microsoft, but because Van has taken an easy going,
  4262. almost casual approach to teaching the fundamentals of DOS. He begins by
  4263. explaining what DOS is, how it gets the computer started, and how it
  4264. organizes files and disks (hence it's name: Disk Operating System). He then
  4265. goes into a very understandable explanation of managing files and devices,
  4266. hard disk organization, system controls and tailoring, local area networks
  4267. and more. Several appendices are included, one that tells how to prepare a
  4268. hard disk and another that details the syntax of every DOS command. This is
  4269. the best book for the first time DOS user. Highly Recommended!
  4270.  
  4271. SUPERCHARGING MS-DOS, Van Wolverton, Microsoft Press
  4272.  
  4273. As a follow-up to the title above, Van takes the DOS user deeper into the
  4274. system functionality with chapters on things like printer "languages", using
  4275. the DOS DEBUG utility, controlling the environment with CONFIG.SYS, system
  4276. customizations, care and feeding of the computer, and much more. A Quick
  4277. Reference section is set up to answer questions about ANSI.SYS drivers and
  4278. hexadecimal codes. Definitely NOT for the beginner, SUPERCHARGING is still
  4279. one of the "must-have" books in any DOS user's library. Also Highly
  4280. Recommended!
  4281.  
  4282. MS-DOS BIBLE, Steven Simrin, The Waite Group
  4283.  
  4284. Also geared for the beginners, this volume stretches the technical side a bit
  4285. more than RUNNING MS-DOS, and even includes a tutorial on booting DOS,
  4286. formatting diskettes, installing and changing drives, filenames and
  4287. extensions, copying files, batch files, redirection and piping, EDLIN (the
  4288. DOS line or text editor), and much, much more! This one is definitely for
  4289. those who have a foundation of knowledge in DOS, and will take you even
  4290. further than the SUPERCHARGING MS-DOS mentioned above. A fine reference work
  4291. for daily use, this book will provide many hours of ready information on all
  4292. aspects of DOS. Recommended.
  4293.  
  4294. TRICKS OF THE MS-DOS MASTERS, The Waite Group
  4295.  
  4296. For users with a previous knowledge of DOS, TRICKS will show you insight and
  4297. techniques not published anywhere else. According to the authors (four of
  4298. them!), this volume is for serious business and personal users, software
  4299. developers and consultants, and "power users". If this means you, then this
  4300. book will open your eyes to some of the more arcane tips and practices for
  4301. stretching DOS to the max. Check this one out!
  4302.  
  4303.  
  4304.  
  4305.  
  4306.  
  4307.  
  4308.   Automenu 4.5                    APPENDIX B                      Page 73
  4309. MS-DOS BATCH FILE PROGRAMMING, Ronny Richardson, Tab Books
  4310.  
  4311. This is a definitive reference to those who wish additional insight into the
  4312. mysteries of programming directly within the operating system (DOS).
  4313. Everything from simple batch files to replaceable parameters, looping and
  4314. control flow, and the AUTOEXEC.BAT and CONFIG.SYS files are covered. A
  4315. reference to DOS commands is included, and many examples are used 
  4316.  
  4317. throughout. If you are DOS-literate, this volume will certainly assist in
  4318. creating more imaginative and powerful batch procedures that will be easily
  4319. controlled from within AUTOMENU. Recommended.
  4320.  
  4321.  
  4322.  
  4323.  
  4324. This is definitely NOT intended as any kind of complete resource listing of
  4325. available DOS publications. You should refer to a local PC Users Group for
  4326. the best advice. And keep checking the Magee Enterprises BBS for updated
  4327. information and tips and tricks on using DOS and AUTOMENU.
  4328.  
  4329. MS-DOS is a registered trademark of Microsoft Corporation.
  4330.  
  4331. The above listing is only provided as a public service, and Magee Enterprises
  4332. Inc. is in no way connected or involved with any of the above companies,
  4333. authors or publications. We do, however, feel that in the interests of
  4334. furthering knowledge about computers and DOS in general, it is necessary to
  4335. provide some kind of reference listing for our user's further investigation
  4336. and comprehension.
  4337.  
  4338.  
  4339.  
  4340.  
  4341.  
  4342.  
  4343.  
  4344.  
  4345.  
  4346.  
  4347.  
  4348.  
  4349.  
  4350.  
  4351.  
  4352.  
  4353.  
  4354.  
  4355.  
  4356.  
  4357.  
  4358.  
  4359.  
  4360.  
  4361.  
  4362.  
  4363.  
  4364.  
  4365.  
  4366.  
  4367.   Automenu 4.5                    APPENDIX B                      Page 74
  4368. APPENDIX C
  4369.  
  4370. AUTOMENU  COMMAND  REFERENCE
  4371. Menu Definition File (MDF) Functions
  4372.  
  4373. %  - Menu Title 
  4374.  
  4375. A title must be defined for each individual menu page. This title will be
  4376. displayed as the first line of text on the menu. The Title will be also be
  4377. centered automatically. In each MDF the user can define up to eight
  4378. individual menus.
  4379.  
  4380. *  - Menu Selection 
  4381.  
  4382. This is the actual menu item displayed for the user to choose from. There is
  4383. a limit of eight different options to each of the eight individual menu
  4384. screens in any single file.
  4385.  
  4386. ?  - Selection Description (Menu Prompt)
  4387.  
  4388. Will cause the text that follows to be displayed as a description for the
  4389. selection that the arrow is pointing to, or is highlighted. The text is
  4390. centered automatically and printed on a line above the status block at the
  4391. bottom of the menu.
  4392.  
  4393. EXAMPLE:       *AUTOMENU Documentation
  4394.                ?This option prints document to printer   <<<-Selection
  4395.                                                              Description
  4396.  
  4397. ^  - Selection Password 
  4398.  
  4399. The text that follows this function will be used as the password required by
  4400. the user to gain access to that option selected. A maximum of 30 characters
  4401. is allowed for each password. The example below would require the user to
  4402. enter the password "DOS". The password checking routine does not try to
  4403. determine any difference between UPPER and lower case letters. (If you use
  4404. this feature, consider ENCRYPTING the MDF from within the AUTOMAKE menu
  4405. editing utility. See Section 4 on AUTOMAKE for more details.)
  4406. EXAMPLE:     *Return to Disk Operating System
  4407.              ^DOS                            <<<- Password = "DOS"
  4408.  
  4409. @  - Load an Alternate MDF 
  4410.  
  4411. This specific option will cause the text that follows to be treated as the
  4412. name of another Menu Definition File (MDF). When the user selects an
  4413. selection with this listed under it, Automenu will read the new MDF and
  4414. change the menu display accordingly to show the options in the new MDF. The
  4415. MDF filename can be any valid DOS filename and can include drive name and
  4416. path. If for example, the MDF called "DOS.MDF" was on drive D: in
  4417. subdirectory \PUBLIC, the following example shows an example on how to get
  4418. Automenu to read that file as a MDF.
  4419.  
  4420. EXAMPLE:       *Load DOS Command Sub Menu
  4421.                @D:\PUBLIC\DOS.MDF         <<<- Load MDF from Drive D:
  4422. or
  4423.                *Load DOS Command Sub Menu
  4424.                @DOS.MDF                   <<<- Load from current drive
  4425.                                                and subdirectory
  4426.   Automenu 4.5                    APPENDIX C                      Page 75
  4427. -  - Direct DOS Command (No Pause)
  4428.  
  4429. This specific option will cause the text that follows to be interpreted as a
  4430. valid DOS command. A limit of one Direct DOS command per menu selection. When
  4431. the user selects the menu option, Automenu loads a second COMMAND.COM and
  4432. requests this Direct DOS Command to be executed while Automenu remains
  4433. resident in memory in a dormant state. But as a result, the memory available
  4434. is reduced by minimum of 17K (version dependent), memory which was allocated
  4435. to Automenu and the second COMMAND.COM. When the DOS command is finished,
  4436. Automenu will regain control and will display the menu without re-reading the
  4437. MDF. This function acts as if the command were entered at the DOS level. As
  4438. DOS normally does, it will search both the present directory and any other
  4439. directories specified by the DOS PATH command. And with this function,
  4440. Automenu does not pause before displaying the menu when it regains control.
  4441.  
  4442. EXAMPLE:     *Format diskette in drive B:
  4443.              -FORMAT B:/S/V               <<<- No pause after formatting
  4444.                                                B:
  4445.  
  4446. =  - Direct DOS Command (Pause)
  4447.  
  4448. This function works the same as the function above, but when Automenu regains
  4449. control the user is required to press the space bar or any button on the
  4450. mouse to return to the menu.
  4451.  
  4452. !  - Batch DOS Commands (Resident)
  4453.  
  4454. This function defines a DOS command to be executed in a DOS batch file. There
  4455. is no limit to the number of commands that can be defined under each menu
  4456. selection. Automenu will create a batch file containing the lines marked with
  4457. this function. After the batch file is written, Automenu will execute this
  4458. batch file in the same manner as the function Direct DOS command ( - ) above.
  4459. In other words, Automenu remains resident during the execution of this batch
  4460. file, and will regain control upon completion. In any event, we NEVER want to
  4461. use a "!AUTO" command, because that would load a second copy of AUTOMENU.COM
  4462. on top of the one already resident in memory!
  4463.  
  4464. EXAMPLE:       *Execute 123 in its Subdirectory
  4465.                !CD \LOTUS
  4466.                !123
  4467.                !CD \
  4468.  
  4469. +  - Batch DOS Commands (Non-Resident)
  4470.  
  4471. This function defines a DOS command to be executed in a DOS batch file. There
  4472. is no limit to the number of commands that can defined under each menu 
  4473. selection. Automenu will create a batch file containing the lines marked with
  4474. this function. PLEASE NOTE: If the DOS Command that is executed from a {+}
  4475. command is itself a BATCH file, the result will usually be an abrupt dump to
  4476. DOS after termination of that command. This is because DOS does not support
  4477. calling one batch file from another and then returning to the calling batch
  4478. file.
  4479.  
  4480. Under DOS 3.3 and later, you can use the CALL command to call one batch file
  4481. from another and then return to complete the rest of the MDF. Under versions
  4482. prior to 3.3, use the following syntax: COMMAND /C batchfilename. Automenu
  4483. will execute batchfilename, and then continue with any other commands you
  4484. have entered within the MDF.
  4485.   Automenu 4.5                    APPENDIX C                      Page 76
  4486. To make use of this function REQUIRES the use of the batch file called
  4487. AUTO.BAT to start Automenu.
  4488.  
  4489. AUTO.BAT contains two commands: the first is AUTOMENU %1, which executes the
  4490. menu program and your choice of menu files, and the second is
  4491. AUTOTEMP, which is the name of the batch file containing commands written to
  4492. it by Automenu. After selection of the desired option from the menu, Automenu
  4493. creates AUTOTEMP.BAT which in turn is executed under control of AUTO.BAT. The
  4494. AUTOTEMP.BAT batch file will contain the DOS commands required to execute the
  4495. menu option selected. In any event, it is important that the last command be
  4496. "AUTO", so that Automenu regains control. If this is not done, the user will
  4497. be returned to DOS.
  4498.  
  4499. EXAMPLE:      *Directory of Diskette in Drive A:
  4500.               +DIR/P
  4501.               +PAUSE
  4502.               +AUTO Filename.MDF          <<<- Return and use this MDF
  4503.  
  4504. This method has an advantage and a disadvantage - the advantage is that
  4505. Automenu does not remain resident in memory, reducing the memory requirements
  4506. of the user. The disadvantage is that batch files execute (relatively)
  4507. slowly, and in addition, require the reloading of the Automenu program when
  4508. the batch file is finished.
  4509.  
  4510. [  - Timed Execution
  4511.  
  4512. Use of this command makes it easy to invoke any menu option (that does not
  4513. require interaction by the user) you have set up with Automenu. After
  4514. defining the menu option and prompt ({*} and {?} commands), you use the {[}
  4515. command followed by a time in military (24 hour) format. This item will be
  4516. displayed on the menu, and as long as Automenu is running and the particular
  4517. Menu Definition File is loaded into memory.
  4518.  
  4519. >  - Output Message
  4520.  
  4521. This command will display a message to the user on the monitor screen using
  4522. the colors as set up by the AUTOCUST customization utility. This feature is
  4523. typically used to prompt for additional parameters, or to tell the user what
  4524. is to happen next. Use as many of these commands as you need, followed by the
  4525. input {<} symbol to accept a response.
  4526.  
  4527. Be sure to specify ALL the {<} and {>} symbols before any other commands!
  4528.  
  4529. <  - Input Message
  4530.  
  4531. This is the complement of the Output Message, and permits the input of
  4532. user-supplied data to be passed to a program or batch file. Any input
  4533. accepted is assigned to a DOS replaceable parameter (%1 - %9) and can be
  4534. processed as such. The first {<} symbol that appears in an MDF will be the
  4535. value assigned to %1, the second symbol will be assigned to %2, and so on. No
  4536. other Automenu commands may be prior to, or intermixed with, the {<} or {>}
  4537. commands. See examples throughout this manual.
  4538.  
  4539.  
  4540.  
  4541.  
  4542.  
  4543.  
  4544.   Automenu 4.5                    APPENDIX C                      Page 77
  4545. .  - Comment 
  4546.  
  4547. This function is used to place a comment inside the MDF. Automenu simply
  4548. ignores this line all together. Anything can be placed on this line, and is
  4549. usually used to document the actions taken within the MDF, or credits for
  4550. those who wrote it.
  4551.  
  4552. #   - End  of MDF 
  4553.  
  4554. This function is used to inform Automenu that it has reached the end of the
  4555. MDF. Automenu will stop reading there, and information that follows will be
  4556. ignored. This symbol MUST be the first character on the very LAST LINE of the
  4557. Menu Definition File or an error message may result.
  4558.  
  4559.  
  4560.  
  4561.  
  4562.  
  4563.  
  4564.  
  4565.  
  4566.  
  4567.  
  4568.  
  4569.  
  4570.  
  4571.  
  4572.  
  4573.  
  4574.  
  4575.  
  4576.  
  4577.  
  4578.  
  4579.  
  4580.  
  4581.  
  4582.  
  4583.  
  4584.  
  4585.  
  4586.  
  4587.  
  4588.  
  4589.  
  4590.  
  4591.  
  4592.  
  4593.  
  4594.  
  4595.  
  4596.  
  4597.  
  4598.  
  4599.  
  4600.  
  4601.  
  4602.  
  4603.   Automenu 4.5                    APPENDIX C                      Page 78
  4604. APPENDIX D
  4605.  
  4606. AUTOMENU - A THUMBNAIL SKETCH
  4607.  
  4608. Here is a summary of the structure of a typical MDF (Menu Definition File).
  4609. You will see that usually we will create a line for a title of the working
  4610. menu, one or more menu options on that screen, and a series of DOS commands
  4611. to be carried out whenever one of those menu selections is pressed.
  4612.  
  4613. Each menu option is usually constructed as in the following example. Since
  4614. Automenu will most often be used to run a variety of application programs
  4615. from a single screen, this will give you a "thumbnail sketch" of how to
  4616. quickly set up your first Menu Definition File. Please be sure to read the
  4617. earlier chapters if you are unsure about how to work with Automenu. To build
  4618. an application menu and run your programs from it, you will need to ask
  4619. yourself the following questions:
  4620.  
  4621. A. What is the NAME of the program you want to run?
  4622. B. What SUBDIRECTORY does the application program reside in?
  4623. C. What is the COMMAND you type at the DOS prompt to start the program?
  4624. D. Is that command a BATCH FILE?
  4625.  
  4626. When building your Menu Definition File, do it in this fashion:
  4627.  
  4628. %Title Line        (name you want to appear on top line of menu screen)
  4629. *Menu Option       (from A, above)
  4630. +CD\subdirectory   (from B, above)
  4631. +DOScommand        (from C, above)        <<<- If a BATCH FILE, see below
  4632. +CD\AUTOMENU       (change back to Automenu subdirectory)
  4633. +AUTO              (to re-run Automenu)
  4634. *Next Menu Option  (A)                    <<<- Second Menu Selection
  4635. +CD\subdirectory   (B)
  4636. +DOScommand        (C)                    <<<- If a BATCH FILE, see below
  4637. +CD\AUTOMENU
  4638. +AUTO                                     <<<- Used to Restart Automenu 
  4639. .                                              after Program Terminates
  4640. .(Other Menu Selections Here....)
  4641.  
  4642. Due to a limitation within DOS prior to version 3.3, one BATCH FILE may call
  4643. another, but the called file never returns to the calling file to continue.
  4644. The preferred method of dealing with BATCH FILES within Automenu is to
  4645. actually list out the contents of the BATCH FILE and place them line-for-line
  4646. into your Menu Definition File, preceded by the {+} symbol. These
  4647. instructions will then be built into a BATCH FILE by Automenu, and executed
  4648. normally.
  4649.  
  4650. There is a quick way to perform a similar function, however we do not
  4651. recommend it because of the possibility of the BATCH FILE containing some
  4652. kind of TSR (Terminate and Stay Resident) command, like the DOS commands
  4653. PRINT, MODE or GRAPHICS. If you are certain that your BATCH FILE contains NO
  4654. TSR COMMANDS, you can substitute one of the following lines:
  4655.  
  4656. +COMMAND /C BatchFileName             (DOS versions 2.0 thru 3.2)
  4657. +CALL BatchFileName                   (DOS versions 3.3 and higher)
  4658.  
  4659. for the "+DOScommand" instruction in the above example. You can find out more
  4660. about this feature of DOS by checking your DOS manual on COMMAND.
  4661.  
  4662.   Automenu 4.5                    APPENDIX D                      Page 79
  4663. APPENDIX E
  4664.  
  4665. ABOUT THE AUTHOR
  4666.  
  4667. Marshall W. Magee has spent more than twelve years in the computer industry,
  4668. as both a software designer and systems consultant. His extensive background
  4669. in PCs has enabled him to produce this version of Automenu.
  4670.  
  4671. Originally introduced in 1983, Automenu is distributed through computer user
  4672. groups, electronic bulletin board systems and retail computer stores
  4673. worldwide. It has been so successful that Magee Enterprises Inc. is now
  4674. actively developing additional products to be distributed in the same
  4675. fashion. Automenu alone has in excess of fifty thousand registered users,
  4676. with more names being added every day.
  4677.  
  4678. Mr. Magee is a native of Atlanta, Georgia, and is President of Magee
  4679. Enterprises Inc. He is currently the President of the Association of
  4680. Shareware Professionals, a group dedicated to improving the awareness and
  4681. standards of quality among Shareware authors and distributors. He sits on the
  4682. board of the Atlanta PC Users Group, and is Chairman of their Programmers
  4683. Special Interest Group, an organization formed to promote the technical
  4684. aspects of programming in a variety of languages and environments. He also
  4685. contributes his expertise by providing instruction to members, producing the
  4686. club's monthly newsletter, and helping to organize and direct group
  4687. activities. He continues an active association with many PC users groups
  4688. worldwide.
  4689.  
  4690. Mr. Magee is leading a large development effort to bring new and exciting
  4691. products to the Shareware marketplace.
  4692.  
  4693. Magee Enterprises, Inc., is located in Norcross, Georgia, a suburb of
  4694. Atlanta.
  4695.  
  4696.  
  4697.  
  4698.  
  4699.  
  4700.  
  4701.  
  4702.  
  4703.  
  4704.  
  4705.  
  4706.  
  4707.  
  4708.  
  4709.  
  4710.  
  4711.  
  4712.  
  4713.  
  4714.  
  4715.  
  4716.  
  4717.  
  4718.  
  4719.  
  4720.  
  4721.   Automenu 4.5                                                    Page 80                         ------------------------------------
  4722.                          Automenu Registration Payment Form
  4723.                         ------------------------------------
  4724.  
  4725.         To order Automenu, please fill out the form below. Use your street
  4726.         address only, please.  WE CANNOT SHIP TO A POST OFFICE BOX.
  4727.         Or call 1-800-662-4330 USA; or 404-446-6611
  4728.  
  4729.                                                       Date: _____________
  4730.  
  4731.         Name: _____________________________  Title:   ___________________
  4732.  
  4733.         Company: ________________________________________________________
  4734.  
  4735.         Address: ________________________________________________________
  4736.  
  4737.         _________________________________________________________________
  4738.  
  4739.         City: ___________________________________________________________
  4740.  
  4741.         State/Country: ________________________ Zip: ____________________
  4742.  
  4743.         Phone  Work: (_____) _____ - ______  Home: (_____) _____ - ______
  4744.  
  4745.         Method of payment: Please complete the worksheet below and choose
  4746.         one of the payment options indicated. Georgia State residents
  4747.         must add sales tax. ALL CHECKS AND MONEY ORDERS MUST BE DRAWN ON
  4748.         U.S. ACCOUNTS ONLY.
  4749.  
  4750.         +----------+------------------------------+----------+----------+
  4751.         |          |                              |   Cost   |   Total  |
  4752.         | Quantity |          Description         | per unit |   Cost   |
  4753.         +==========+==============================+==========+==========+
  4754.         |          |                              |          |          |
  4755.         |          |Automenu 4.5 Software Package |  $50.00  |          |
  4756.         |          |                              |          |          |
  4757.         +==========+=+============================+==========+==========+
  4758.                      |       Georgia residents add sales tax |          |
  4759.                      +---------------------------------------+----------+
  4760.                      | Shipping Cost if Overseas, add $15.00 |          |
  4761.                      +---------------------------------------+==========+
  4762.                                                        TOTAL |          |
  4763.         Please indicate diskette format:  [ ] 5.25           +==========+
  4764.                                           [ ] 3.5
  4765.  
  4766.          [ ] Check with order  [ ] Money Order  [ ] MasterCard  [ ] VISA
  4767.  
  4768.         Credit card #:______________________________ Exp. Date: ____/____
  4769.  
  4770.         Signature: ______________________________________________________
  4771.  
  4772.         Cardholder's name: ______________________________________________
  4773.  
  4774.         Cardholder's address: ___________________________________________
  4775.         (If different from above)
  4776.         *****************************************************************
  4777.         Send all items to:     Magee Enterprises, Inc.
  4778.                                Automenu Order Department
  4779.                                Post Office Box 1587
  4780.                                Norcross, Georgia 30091 USA                              ---------------------
  4781.                              AUTOMENU COMMENT FORM
  4782.                              ---------------------
  4783.  
  4784.         Your comments about this software and documentation are welcome.
  4785.         Please take the time to fill out this form or write or call us
  4786.         with your comments.
  4787.  
  4788.         Name: _____________________________  Title:   __________________
  4789.  
  4790.         Company: _______________________________________________________
  4791.  
  4792.         Address: _______________________________________________________
  4793.  
  4794.         ________________________________________________________________
  4795.  
  4796.         City: __________________________________________________________
  4797.  
  4798.         State/Country: ________________________ Zip: ___________________
  4799.  
  4800.         Phone Work: (_____) _____ - ______  Home: (_____) _____ - ______
  4801.  
  4802.         Automenu Version Number: __4.50_______  Date: __________________
  4803.  
  4804.  
  4805.         ________________________________________________________________
  4806.  
  4807.         ________________________________________________________________
  4808.  
  4809.         ________________________________________________________________
  4810.  
  4811.         ________________________________________________________________
  4812.  
  4813.         ________________________________________________________________
  4814.  
  4815.         ________________________________________________________________
  4816.  
  4817.         ________________________________________________________________
  4818.  
  4819.         ________________________________________________________________
  4820.  
  4821.         ________________________________________________________________
  4822.  
  4823.         ________________________________________________________________
  4824.  
  4825.         ________________________________________________________________
  4826.  
  4827.         ________________________________________________________________
  4828.  
  4829.         ________________________________________________________________
  4830.  
  4831.         ________________________________________________________________
  4832.                                                               71440.8811
  4833.  
  4834.         *****************************************************************
  4835.         Send this form to:     Magee Enterprises, Inc.
  4836.                                Automenu Comments
  4837.                                Post Office Box 1587
  4838.                                Norcross, Georgia 30091  USA
  4839.         *****************************************************************