home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Hall of Fame
/
HallofFameCDROM.cdr
/
dos
/
key-fake.lzh
/
KEY-FAKE.DOC
< prev
Wrap
Text File
|
1985-12-15
|
2KB
|
67 lines
Key-Fake is a utility for providing batch file processing of keystrokes
immediately after entry into an application program. For example, I use it to
set my IBM Writing Assistant (TM) colors to the black on gray combination I
prefer. Immediately upon boot up, once the batch file stops processing and
relinquishes control to the application, six Shift-Fn 3 keystrokes
automatically set the screen colors. The correct syntax is:
KEY-FAKE @86 @86 @86 @86 @86 @86
The @ symbol tells Key-Fake to use the extended keyboard characters and the 86
is the second code listed in the keyboard extended functions table of the tech
reference manual. For the PC Jr, look at the Tech Reference Manual, page 5-
31, or look at the PC Jr Basic manual, page G-6.
Quoted strings can also be entered at the Key-Fake command:
KEY-FAKE @86 @86 @86 @86 @86 @86 "1" 13
The "1" types the quoted string on the screen and the 13 is the ASCII code for
the Enter key. Thus, in Writing Assistant, the colors are set, a 1 then enter
are typed on the screen, taking the operator through the main menu straight to
the type/edit mode.
Key-Fake does not work with everything. If the program clears the keyboard
buffer, enter a 0 as the first character:
KEY-FAKE 0 13 13
If this doesn't work, try some other combinations. I've not been able to get
it to work with Pop-ups (To set window colors) or Symphony. But, there are
many programs it does work with.
This program was obtained from the Dec 24, 1985 issue of PC Magazine. I
provide it with this brief explanation to show you it works. However, to get
the most out of it, obtain a copy of the magazine from your local library.
Then read all the advertisements. That should keep the publishers happy.
Credits:
Charles Petzold--The real hero, he wrote the program and magazine article.
Carlos M. Arnaldo--He is saving you some typing.
Mark D. Doiron--That's me.