home *** CD-ROM | disk | FTP | other *** search
- STUFFKB.COM v2.0
- NOVEMBER 17, 1990
-
- STUFFKB is a PUBLIC DOMAIN PROGRAM which places parameters on the
- command line into the BIOS Keyboard buffer. It was created to enable
- batch files to pass parameters to applications but may have other uses
- (see example below). As placed on BBSs, the following files should be
- in a single archived file:
-
- STUFFKB.TXT This File
- STUFFKB.COM Program File
- STUFFKB.Vxx Version xx of Assembler Source File
- BUFFERKB.COM See Below
- BUFFERKB.Vxx Version xx of Assembler Source File
-
- To use the program, type STUFFKB parameters. "Parameters" is a
- sequence of keystrokes to be placed in the keyboard buffer. Control
- characters can be passed by enclosing them in ~ characters. (i.e.
- ~CR~ passes an ASCII carriage return- decimal 13, ^M). Version 2.0
- supports the following "control" codes:
-
- Function Code ASCII Value
- ------------- ---- ----------
- Carriage Return CR 013
- Back Space BS 008
- Escape ESC 027
-
- While this is sufficient for most uses, it can easily be expanded by
- editing the accompanying Assembler source code and recompiling.
-
- LIMITATIONS:
- STUFFKB is not Memory Resident. This Maximizes its compatibility
- with any DOS software. As a result, it can not stuff more
- characters than will fit in the BIOS Keyboard Buffer. (Normally 15
- characters.
-
- To get around the 15 character limit, I've included another
- Non-TSR program called BUFFERKB. This program enlarges the
- Keyboard Buffer to 31 characters. It should be compatible with
- most software. However, since it uses "currently undefined but
- IBM reserved BIOS data areas" for the new buffer, I can make no
- promises. I've encluded the asssembler source code for this
- program as well should you need to make modifications.
-
- STUFFKB was designed to work directly with the BIOS keyboard of
- IBM PCs and compatibles. It will not work with some early "cheap"
- klones (i.e. SANYO), or with some Memory resident keyboard
- extenders which move the BIOS Buffer.
-
- If you enclose an unrecognized control code within "~" characters,
- STUFFKB will stuff a ^G (Bell) character instead. This should
- BEEP the PC's speaker when this character is encountered.
-
- EXAMPLE:
- I wrote this program to pass parameters to applications by
- stuffing the keyboard buffer. For instance suppose you wanted a
- batch file to load Lotus 123 (TM) and a spreadsheet passed as a
- parameter to the batch file. I.E. "L Homework" to bring you from
- the DOS prompt into Lotus with the Homework spreadsheet
- displayed. The following batch file would accomplish this
- assuming 1) the spreadsheet is in Lotus' default data directory
- (\Lotus\wks for me) and 2) STUFFKB.COM is in the current
- subdirectory or active DOS path.
-
- L.BAT
- CD \Lotus
- IF EXIST C:\Lotus\wks\%1.WK? GOTO Stuff
- 123
- GOTO Exit
- :Stuff
- --> STUFFKB 123~CR~/FR%1~CR~
- :Exit
-
-
- I hope you find STUFFKB and BUFFERKB useful. If you modify and return
- the program to the public, please rename the assembler source to a new
- revision level.
-
- Ed Derzawiec
-
-