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