home *** CD-ROM | disk | FTP | other *** search
/ Shareware 1 2 the Maxx / sw_1.zip / sw_1 / WINDOWS / UTILS / MC.ZIP / MC.DOC next >
Text File  |  1992-05-19  |  14KB  |  262 lines

  1. MC.EXE (Version 1.0)
  2.  
  3. ------------------------------------------------------------------------
  4. Barry Simon                                    June 16, 1992 (Utilities)
  5. ------------------------------------------------------------------------
  6.  
  7. MC:     A utility that puts file-management and program-launching functions
  8. in the same window and makes it easy to run programs in Windows.
  9.  
  10.      MC is based on the premise that there are three ways you'll typically
  11. want to start programs from Microsoft Windows: First, you'll often want to
  12. pick an application from within a preset program group. This is one of the
  13. Program Manager's main features, of course, but when you've built up many
  14. groups, juggling their windows is more of a nuisance than the grouping is
  15. worth. MC forgoes the pretty icons in order to give you quick access to a
  16. large number of programs without so much clicking and dragging. And since
  17. you've probably invested some effort already in setting up Program Manager
  18. groups, MC lets you import your existing program sets intact. 
  19.  
  20.      Second, you'll sometimes want to locate a file by browsing a directory
  21. tree and then launch the program from there. You can do this with the File
  22. Manager, but the separation of the File Manager from the Program Manager is
  23. awkward. Windows 3.1 addresses this problem by adding a Browse button to the
  24. Program Manager's File/Run command, but even with that, it still takes several
  25. keystrokes to do the job. With MC, the drive/directory/file boxes are visible
  26. and available right on the main screen.
  27.  
  28.      Third, you'll sometimes want to enter a command directly, as you
  29. would by using the Program Manager's File/Run option. But File/Run suffers
  30. from the same defect that afflicted the DOS command line until DOS 5.0's
  31. DOSKEY came along: It has no memory. You can't just reissue a command you
  32. used earlier. So MC's third design goal was to enhance the Run command
  33. with a list of your most recent commands, which you can recall, reissue,
  34. and even edit. The history list includes not only programs that you
  35. launched from the command line, but programs you started from the directory
  36. tree as well.
  37.  
  38.      After copying MC.EXE and VBRUN100.DLL to your hard disk you can
  39. install the program and locate its icon in the Program Manager with the
  40. File New command. Note that MC is intended as a program launcher. Because
  41. of a limitation of Visual Basic, you can't use MC as your primary shell
  42. loaded via a SHELL statement in your SYSTEM.INI file. In discussing how
  43. to run MC, I'll start by assuming that you're using a mouse. If you want
  44. to use the keyboard instead, refer to the "Keyboard Usage" section below.
  45.  
  46. ADDING PROGRAM MANAGER GROUPS
  47.  
  48.      The first time you start MC, the list shown in the left column of
  49. the main screen will be blank and the title at the top of the window will
  50. say MC. Notice that there are no menus in the screen. Button bars and other
  51. shortcuts that avoid time-wasting menus are becoming so popular that I
  52. decided to push this approach to the logical extreme of providing button
  53. shortcuts for everything in MC.
  54.  
  55.      The first thing you'll want to do is to add your Program Manager
  56. groups to MC's group list. Before doing so, it's a good idea to hit the
  57. Add button in the second column and create a (temporarily empty) group
  58. called Main Programs, which MC will thereafter display when you load it.
  59. You'll probably want to customize the contents of the Main Programs group
  60. rather than simply bring up the first of your Program Manager groups by
  61. default each time.
  62.  
  63.      To add your existing Program Manager groups, hit the Configure button.
  64. Ignore the busy screen for the moment and press the button labeled Load
  65. Program Manager Groups. That will bring up a third dialog box, with a list
  66. of your current Program Manager groups.
  67.  
  68.      Unless you have a special reason for not adding all your established
  69. groupings to MC's own group listing, just hit the Process Selected Groups
  70. button. If you have more than 7 groups, or if any group has more than 16
  71. programs in it, a message will inform you that some parameters need to be
  72. increased and it will ask permission to save the changed parameters in the
  73. MC.INI file. If that message appears, answer yes.
  74.  
  75.      Either way, MC will then process your Program Manager groups by adding
  76. them to its own group list, and you will be taken back to MC's Configure
  77. screen. Hitting OK there will return you to the main screen. If you press
  78. the arrow next to the word ``Group'' in the leftmost column, you'll get a
  79. drop-down list of all your groups, starting with the (empty) Main Programs
  80. group that you added at the start. If you choose one of the Program Manager
  81. groups, the list below the drop-down box will display the names of the
  82. programs in that group.
  83.  
  84. LAUNCH BASICS
  85.  
  86.      The simplest way to launch a program is to double-click on it from
  87. either the group lists or the file list. To see how this works, just pick
  88. a small Windows application from those lists (for example, CLOCK.EXE from
  89. the Accessories group) and double-click on it. The program will launch in
  90. normal size.
  91.  
  92.      Instead of double-clicking, you can click only once and then use the
  93. buttons in the Run box in the lower-left-hand corner of the screen. As
  94. the button names indicate, the program can be launched in normal mode,
  95. as a full-screen application, or as an icon, depending on which button
  96. you press. (If you're at your machine, be sure to close the multiple
  97. copies of CLOCK that you've now opened!)
  98.  
  99.      Now notice the Minimize MC check box to the right of the Run box.
  100. If you click on it before launching, MC will automatically be minimized
  101. when you launch an application. If you want, you can tell MC in its
  102. configure screen always to recheck that box after a launch so the default
  103. will be to minimize before launching.
  104.  
  105.      Next, look at the History drop-down box. It will be blank the first
  106. time you load MC, but it won't be after you've made some practice launches.
  107. If you click on the History arrow you'll get a list of all the programs
  108. you've recently started from MC. By default, the history list keeps the
  109. last 20 commands that were issued, but you can adjust this value in the Configure
  110. dialog box.
  111.  
  112.      You can also type commands into the History box. For example,
  113. entering 
  114.  
  115.                    NOTEPAD C:\AUTOEXEC.BAT
  116.  
  117. will call that file into Notepad. Isn't that easier than clicking around
  118. to find the root directory? If you just type in
  119.  
  120.                             C:\CONFIG.SYS
  121.  
  122. and hit Enter, you'll get a message offering to load that file into
  123. Notepad. Whenever you try to run a file without an associated extension,
  124. MC will offer to load it into Notepad. It will also offer to run Notepad
  125. if you configure it to display ``All Files'' in the file display and
  126. double-click on a file that has an unassociated extension.
  127.  
  128.      MC recognizes one special command word when you type in a command.
  129. CDD is interpreted as "change drive and directory." Thus, if you enter
  130.  
  131.                             CDD D:\PROGRAMS\EXCEL
  132.  
  133. MC will change the underlying DOS drive to D: and the directory to
  134. \PROGRAMS\EXCEL. The current directory isn't usually important to MC,
  135. since MC changes it in response to a file launch or group launch. But
  136. since you might want to change the directory before running a program
  137. from the command line, CDD has been provided.
  138.  
  139.      There are four buttons to the right of the Group list box that can
  140. affect its contents:
  141.  
  142.        ADD can be used to add a new group or add an item based on either
  143.        the history list or the file list. Which is used depends on which
  144.        you clicked last. So to add a file, click on it once (not twice,
  145.        which would launch it) and then click on the Add button.
  146.  
  147.        DELETE will delete an item or an entire group, depending on which
  148.        radio button you push in the dialog box.
  149.  
  150.        RENAME lets you change the name that appears in the Group pull-down
  151.        or in the item list. Click on the item you want to rename and then
  152.        on this button.
  153.  
  154.        PARAMS displays the drive/directory used by an item in the group
  155.        and lets you add or edit parameters passed to a program you enter
  156.        on the command line.
  157.  
  158. THE FILE LAUNCH LIST
  159.  
  160.      Now that you understand how the groups and the history list work,
  161. focus on the three objects in the middle of the main screen, to the right
  162. of those four buttons. Here you'll find an untitled file list, a directory
  163. list (indicated with file folders), and a drop-down list of disk names.
  164. You might intuitively feel that these are placed in the wrong order --that
  165. the drive list belongs on the top left and that the file list should be to
  166. the right of the directory list. I selected the actual placement to conform
  167. to the new Common Dialog arrangement introduced with Windows 3.1 and used
  168. already in many applications introduced after September 1991. This is what
  169. you'll have to get accustomed to!
  170.  
  171.      The lists are linked together, so changing the directory in the
  172. directory list will change the executables displayed in the file list.
  173. (Data files are not shown in the file list unless the All Files box in
  174. the configure screen has been checked.) Double-clicking on a program
  175. will launch it in normal size. Alternatively, clicking once and hitting
  176. one of the Run box buttons will launch the chosen application in maximized
  177. or minimized form. As you single-click on an item in the file list, the
  178. caption in the Run box changes to indicate exactly what MC will launch.
  179. Files launched from the file list then appear in the history list.
  180.  
  181. MAIN-SCREEN MISCELLANY
  182.  
  183. Finally, on the main screen, look at the rightmost column. The Save button
  184. will save your groups, items, and history to MC.INI. If you started with a
  185. lot of Program Manager groups and items, your first save could take more
  186. than a few moments. After that, however, only the History list and changed
  187. groups will normally be saved, so the save will take less time. If you try
  188. to exit MC with unsaved changes or an unsaved history, you'll be warned
  189. and given a chance to save to MC.INI.
  190.  
  191.      Skip the Configure button for the moment and look at the radio buttons
  192. in the box marked Caption. These affect the title of the main MC window.
  193. When you pick Date Time, MC will act as a clock/date reminder even when
  194. minimized at the bottom of your screen. The last three buttons (About,
  195. Help, and Exit) are self-explanatory. Note that because MC changes to the
  196. directory of a program you wish to launch as the program is run, MC.HLP
  197. must be on your path or in the Windows directory.
  198.  
  199. KEYBOARD USAGE
  200.  
  201.      MC is really a huge dialog box and, like most dialog boxes, it's
  202. best driven with a mouse. If you don't like mice, or if you like to use
  203. keyboard shortcuts, MC supports keyboard operations, too. First, Tab and
  204. Shift-Tab will switch the input focus (indicated by a dotted-line box)
  205. forward and backward around the screen, respectively. So, for example,
  206. you could launch a file by tabbing to the file list and using the Arrow
  207. keys and Enter. The tabbing order was chosen to prioritize the items I
  208. expect you'll use most heavily rather than to reflect the physical
  209. arrangement of the items that appear on the screen.
  210.  
  211.      Pressing Alt together with the underscored letter on objects on the
  212. MC screen will immediately execute the corresponding command. For example,
  213. Alt-Y will change the focus to the history list. And as with any
  214. Windows-standard drop-down list, Alt--Down Arrow will open the list.
  215.  
  216.      Three lists don't have visible names but still have accelerator
  217. keys. Alt-V, Alt-D, and Alt-F take you to the driVe, Directory, and File
  218. lists, respectively. Within the lists, the Up Arrow and Down Arrow keys
  219. take you from one item to the next. Pressing F1 will invoke Help from
  220. anywhere in the program. 
  221.  
  222. THE CONFIGURE SCREEN
  223.  
  224. Hitting the Configure button pops up a screen from which you can change
  225. many of the MC defaults. Basically, this is a set-and-forget screen,
  226. which you've already used to import your Program Manager groups. The box
  227. on the left, labelled Date/Time Options, controls the format that MC uses
  228. to display the time or date and time. If you change one of those items, a
  229. box will pop up showing you how the date and time will look after your
  230. modification. 
  231.  
  232.       The Launch Choices box determines two things. The Minimize MC
  233. When App Runs check box works with the Minimize MC box on the main
  234. screen. Whether MC actually minimizes itself is determined entirely by
  235. whether the check box on the main screen is checked or not. The box on
  236. this secondary form simply sets a default. If you check this box, then
  237. each time you launch an application from MC, the Minimize MC box will be
  238. checked for the next launch. Thus, if you normally want to minimize MC
  239. upon launch, you should check this box on the configure screen. If you
  240. decide that you'd like to override the default one particular time, just
  241. uncheck the Minimize MC box on the main screen before that specific launch.
  242.  
  243.      The DoubleClick Option allows you to set which of the three options
  244. is used when an item is double-clicked. The Files Displayed dialog box
  245. determines which extensions are displayed in the file list. Checking the
  246. All Files box results in the listing of data files as well as executables.
  247. The Associations check box refers to the extensions singled out in the
  248. [Extensions] section of WIN.INI. Note that because of a limitation of
  249. Visual Basic, if you have more than 25 items in that list, only the first
  250. 25 are displayed.
  251.  
  252.      Finally, there are drop-down lists for setting the maximum number
  253. of groups and items, and for setting how many items are kept in the
  254. history list. These values might be better handled with a spin control,
  255. which would show numbers with little arrows next to them and let you
  256. increase or decrease them one at a time. But while third-party spin
  257. controls are available for Visual Basic, I decided to limit this project
  258. to what can be done to the drop-down lists with the unadorned version of
  259. Visual Basic.
  260.  
  261. Barry Simon is a contributing editor of PC Magazine.
  262.