home *** CD-ROM | disk | FTP | other *** search
- NOTES ON GETKEY.COM
-
- Version 1.01
-
- Matt Roberts
- 3 Cedar St., # 8
- Montpelier, Vt 05602-3006
-
- 07-14-91
-
- ───────────────────────────────────────────────────────────────────────────────
- GETKEY.COM is, essentially, a marriage of two of Bob Wallace's assembly
- language utilities, GETA9.COM and GETYN.COM, and my own GETPAUSE.COM.
-
- GETKEY is a batch file utility which allows you to display a message on the
- screen, wait for a key to be pressed, and take action based on that keypress.
-
- You can invoke GETKEY in one of several ways, although two of them just offer
- or give help.
-
- GETKEY OPTIONS
-
-
- 1- GETKEY typed by itself will produce the following message:
-
- Do you need help? (y/n)
-
- Typing Y (or y) will get you the help screen, with a summary of GETKEY's
- options. A negative response will get a message that GETKEY cannot be used
- without including a message (see more about that below) and informs you that
- it's designed to be used in batch files. Only y or n are acceptable as
- responses. Upper or lower case is fine.
-
-
- 2- Typing GETKEY /? produces a help screen and returns you to DOS.
-
-
- 3- Typing GETKEY /e Message will print the message, and wait for a key to be
- pressed. Whatever key you press will be printed to the screen (except Esc and
- the function keys), and an errorlevel will be generated based on that key.
- The following keys are accepted: a-z (upper or lower case), 0-9, the Esc key,
- and function keys F1-F10. A-Z or a-z return errorlevels 1-26; 0-9 return
- errorlevels 27-36; and the Esc key returns errorlevel 0. Function keys F1-F10
- return errorlevels 37-46. Originally, this option did not use any parameter
- but, due to the way ASIC works, this introduced a minor problem with screen
- writes in 40-column mode. The addition of the /e parameter solved that
- problem.
-
-
- 4- Typing GETKEY /m Message works just like the internal DOS command PAUSE,
- but allows you to customize your message. For instance, typing
-
- GETKEY /m Press any key to see the menu of files.
-
- will print the message Press any key etc., and pause. Execution of the batch
- file will continue with the next command with any keypress, just like the
- PAUSE command. The key typed is not printed on the screen.
-
-
- 5- GETKEY /q Yes or no question will print the question, pause, and wait for a
- 2
- y or n response. If you decide for some reason that you don't want to press
- either, your batch file can include an Esc option to get out of the whole
- mess. An errorlevel of 2 is set for y or Y; an errorlevel of 1 is generated
- for n or N; and an errorlevel of 0 is generated for the Esc key.
-
- In all examples preceding, you can use either upper or lower case; it makes no
- difference to GETKEY, as long as you get the spelling right.
-
-
- This utility came out of my desire to combine the Bob Wallace utilities
- mentioned at the beginning of this file, to add the pause feature, and to
- include the function keys. A utility which just generates a customized PAUSE
- message, GETPAUSE.COM, was also written by me. However, I prefer not to have
- any more utilities on a disk than necessary. This one does the work of three
- utilities, which makes for a somewhat neater appearance.
-
- There are, however, drawbacks. The first is speed. Bob Wallace's utilities
- are written in assembly language. Mine is written in ASIC, a BASIC compiler.
- Since ASIC doesn't write code that is as tight as assembly language, action is
- slowed down. In addition, DOS's PAUSE command is internal, which means it's
- faster than any external utility you could write.
-
- If you must have the highest speed possible, you may want to use Bob Wallace's
- utilities, which are available from Quicksoft on their PD/S 1 utilities disk.
- Their address is listed below. You can also use the ECHO command with PAUSE >
- NUL, to produce a customized PAUSE messages. The cursor, however, will go to
- the beginning of the next line, which bothered me. Sue me for being picky.
- Here's the usage:
-
- ECHO message
- PAUSE > NUL
-
-
- ───────────────────────────────────────────────────────────────────────────────
- Bob Wallace's two utilities can be obtained on Quicksoft's PD/S 1 diskette.
- Quicksoft can be reached at 219 First Ave N # 224, Seattle, Wa 98109.
-
- ASIC is an excellent compiler by David Visti. Registration is only
- $10.00 currently; I suggest you get you a registered copy before he comes to
- his senses and starts charging what it's worth. He can be reached at P.O. Box
- 2952, Raleigh, NC 27602-2952.
-
-
- TESTS
-
- Version numbers exist for the purpose of testing this disk's utilities on
- other computers. Version 1.00 has been tested on the following:
-
- Amstrad PC1512 SD: This system has an 8086 CPU, a composite monochrome
- monitor, and CGA which can access 16 shades of gray (or color with a color
- monitor) with a resolution of up to 640 X 200. The system originally came
- with 512K RAM, which I've upgraded to 640K. It came with a single 5.25", 360K
- drive. A second internal drive of the same type was later added, and I've
- installed a 49Mb hard disk card. Operating system is MS-DOS 3.20. This line
- has been discontinued. This utility had no problems running on the Amstrad.
-
-
- Packard Bell Pack-Mate: This system has an 80286 CPU and a color VGA monitor.
- Drives are one 40Mb internal hard disk, one 5.25", 1.2Mb drive, and one 3.5",
- 1.44 Mb drive. Operating system is MS-DOS 3.30. This utility had no problems
- 3
- running on the Packard Bell.
-
- Version 1.01 has been tested thus far only on the Amstrad, where it seems to
- work fine.
-
- If you have any problems using GETKEY, drop me a line. I'm also available for
- any comments, questions, or criticisms you may have.
-