home *** CD-ROM | disk | FTP | other *** search
- Matt Roberts
- 3 Cedar St., # 8
- Montpelier, Vt 05602-3006
- (802)223-2553
-
- 11-17-91
-
- NOTES ON EXTENDED.COM
-
- ──────────────────────────────────────────────────────────────────────────────
-
- This little "utility" is one I wrote myself, in order to help me take
- advantage of extended keys in my ASIC programs. It's pretty simple; it just
- keeps printing the character for the key(s) you press until you press Esc. At
- that point, the program ends.
-
- The reason I use this is that it's hard to remember what characters are
- returned to ASIC when extended keys are pressed. For instance, I've got the
- fact that pressing the F1 key returns the character ";" pretty well memorized,
- but the rest are a little hazy in my mind. Actually, it's my mind that's
- hazy, but that's beside the point (and a personal problem as well).
-
- Anyway, knowing which characters are returned allows you to write routines
- like this:
-
-
- wait:
- a$=inkey$
- if a$="" then wait:
- if extended=1 then readext:
- goto wait:
-
- readext:
- if a$=";" then f1key:
- if a$="<" then f2key:
- if a$="=" then f3key:
- .
- .
- .
-
- and so on.
-
- EXTENDED.COM also responds to combinations with the Alt and Ctrl keys as well.
- This allows you to use the extended keys in your programs, giving your work a
- more polished appearance. Information on using the system variable EXTENDED
- in your programs is in TIPS.DOC, on this disk. Source examples of using the
- EXTENDED variable can be found in GETKEY.ASI and FILE-MAN.ASI.
-
- The programs on this disk were compiled using ASIC by David Visti. He can be
- reached at P.O. Box 2952, Raleigh, NC 27602-2952. ASIC is a shareware BASIC
- compiler which generates .COM files. I've played around with a lot of BASIC
- programs, both interpreters and compilers, and this one seems to be the most
- powerful for those of us who don't use machine language. If you can access
- machine language from BASIC, there's no telling what you can do. There's no
- telling because I don't understand a byte of machine code, so I have no idea.
-
- Your comments, questions, and criticisms are important to me. If you have
- anything at all to say about my programs, be it nice or nasty, please write me
- at the address at the top of this document. I want to write the highest
- quality programs I can, and your comments, etc. will help me do that. Thanks.
-