home *** CD-ROM | disk | FTP | other *** search
- At the end of this message is XX34 code containing my EKEYS
- utility. EKEYS will allow access to the new keys found on the
- 101 and 102-key "Enhanced" keyboards.
-
- EKEYS first checks to see if the BIOS will support the enhanced
- functions. If not it will abort with an error message. Otherwise,
- EKEYS remains resident to intercept the BIOS keyboard interrupt
- and translate the enhanced return codes into the form readable by
- older applications (run-time libraries). The TP ReadKey function
- first returns a #0, followed by a second byte.
-
- EKEYS will also allow you to define the F11 and F12 keys via ANSI
- and the PROMPT command, as described in DOS manuals. Keep in mind
- that many existing programs were not made to be F11/F12 aware, and
- may never be, even with EKEYS.
-
- The F11 and F12 second-byte return codes are ...
-
- 133 = F11
- 134 = F12
- 135 = Shift-F11
- 136 = Shift-F12
- 137 = Ctrl-F11
- 138 = Ctrl-F12
- 139 = Alt-F11
- 140 = Alt-F12
-
- These are the standard second-byte codes, provided via the BIOS.
-
- The following Turbo Pascal 5 program may be used for testing:
-
- PROGRAM TestEKEYS;
- USES Crt;
- VAR Ch : CHAR;
- strv : string[10];
- BEGIN
- REPEAT
- WriteLn;
- WriteLn( 'Press F11 or F12 key, or Q to quit ...' );
- Ch := ReadKey;
- IF (Ch = #0) (* Functions are keys preceded by 0 *)
- THEN
- BEGIN
- Ch := ReadKey; (* get second-byte code *)
- CASE Ch OF
- #133 : strv := 'F11';
- #134 : strv := 'F12';
- #135 : strv := 'Shift-F11';
- #136 : strv := 'Shift-F12';
- #137 : strv := 'Ctrl-F11';
- #138 : strv := 'Ctrl-F12';
- #139 : strv := 'Alt-F11';
- #140 : strv := 'Alt-F12'
- ELSE strv := 'Wrong!'+#7
- END;
- WriteLn( '** ', strv, ' **' )
- END;
- UNTIL Ch IN [ 'Q', 'q' ]
- END. (*TestEKEYS*)
-
- EKEYS.COM version 1.1b is 358 bytes long, and consumes 320 bytes
- of memory when resident (TSR). Share it. Just don't change it, or
- charge for it (I reserve those rights).
-
- Use Guy McLoughlin's XX34.EXE utility to reassemble the following
- lines to the original EKEYS.COM file ...
-
- *XX3400-000358-211191-068085-000014920----EKEYS.COM--1-OF--1
- un+cMmZ5IpMu-5E39jwi-+48sAy+z+Bn361227kizls++Nkws5I0Ag0RmU6+9jwi++4o
- 2goK0iFo-PuW+Sh2jfs-WUGWv+5B81cYR1Os81KWcU5B6MYS-+4A-UM-iUU-i0UZnG4s
- 3XLB6MYS++4A-U6-iVE-i-MZnG2iXUMg+9F7nG4m0d0Eh+9B6McInG340h7pxs+ycU2V
- R+KuAU5B7woU6G--MaxmR1cUPawUEYZDIm-nRL-kPr7o1Ec8-m-3GoJNIm+l9X3W60VX
- 8H2tC1YgAHYtA0klCHYl647t62QiJaZbPaJVRKlo1Ec+FX2l60MUFX2m64JiMK7gNKEu
- 64ZnPWRo65FcOLAURqxmR4UUQqJiN4ZiNm+YBEo865Fj64pZ643o627jS0+rAHMt93Bo
- PWt-93FjQaxiR4wgEq3iMKFV62opJn3MC0+z1EcUNr7ZNrBqE4JVQrFZQasiRLJXQ+o8
- ++++
-
- Enjoy,
-
- Greg_
-
- Nov.20.91.Toronto.Canada.
-