Text 248, 220 rader
Skriven 2004-10-12 22:37:10 av Charles Jennings
Kommentar till en text av Dan Ceppa
Ärende: Keyboard stuffer
========================
Hi Dan,
KEY-FAKE.ZIP and FAKEY.ZIP are good kb stuffers but they are TSRs.
They may work in some cases where KPUSH won't but I prefer KPUSH as
it is not a TSR.
------------------------------------------------------------------------
KPUSH Keyboard buffer utility Ver 2.0 (c) 1997 Horst Schaeffer
------------------------------------------------------------------------
KPUSH.COM stuffs keys into the keyboard buffer. This can be used to
pass a number of keystrokes to the following program in a batch file.
The keyboard buffer can hold up to 15 keys (see options for extension).
Examples:
KPUSH "password" CR
KPUSH /59 ESC "W" 17
(F1) (Ctrl-Q)
Keys may be specified as follows, separated by blank space or comma:
(examples)
"A" ASCII character
"string" ASCII string
17 decimal ASCII code (17=Ctrl-Q)
/59 non-ASCII keys with a slash (/59=F1)
CR,LF,BS,ESC
An optional factor may be given for keystrokes (not for strings),
examples:
/77*30 (cursor right, 30 steps)
" "*12 (12 spaces)
CR*3 (3*ENTER)
KPUSH has a built-in test mode to report the codes of any key you press.
For this mode run KPUSH without any parameters.
For ASCII keys the BIOS also supplies a SCAN code (see test mode), which
could be used by some programs. This SCAN code may be added with a slash
(no space between!). Examples:
"+"/27 is the white "+" key
"+"/78 is the grey "+" key (in the numeric key pad)
The SCAN code is usually the same that is returned for combination
with the ALT key:
65/30 Letter "A" with original scan code
/30 is ALT+"A"
If no extra SCAN code is supplied, it defaults to zero. This applies to
strings in any case.
OPTIONS (must be specified before any keys)
/F FLUSH buffer
the keyboard buffer will be flushed before the given keys are
stored. Examples:
KPUSH /F "XY",CR
KPUSH /F (flush only)
/E EXTEND buffer
the extended buffer for 127 keystrokes is supplied at $200 in the
BIOS segment. This area is reserved, but apparently not used by DOS
or BIOS. No guaranty. Example:
KPUSH /E "lots of keys to stuff into buffer",CR
The extended buffer remains available until reset by /R
/R RETURN to normal buffer size (15 keystrokes)
KPUSH /R
/? help info
Errorlevels: 0 ok, done
1 invalid specifications
2 buffer overflow
Important:
KPUSH will only work if the following programm ....
... does not do a key buffer flush (then it's all lost)
... uses standard DOS or BIOS functions for input
KPUSH requires an AT style keybord with BIOS support.
----
KPUSH is freeware by Horst Schaeffer - no warranties of any kind
Contact - FIDO: 2:2480/13.75, E-Mail: horst@confusion.rmc.de
= 29 JUL 1995
================================================================
You can find KPUSH in HORST32.ZIP. If you are interested in
batch programming you should visit Horst't web site. All his
programs are ASM so are small and fast. And best of all, they are
freeware. While there you might pick up WBAT also,
I use KPUSH in the batch file I use to call my OLR. I.e:
if not exist techndrm.rep kpush /F CR "R" CR CR /F
if exist techndrm.rep kpush /F CR CR "R" CR CR /F
if [%1]==[no] if exist techndrm.rep kpush /F CR CR CR CR "R" CR CR /F
xpreadp
================================================================
------------------------------------------------------------------------
HORST32 Batch Utilities 3.2 (c) 1994..2002 Horst Schaeffer
------------------------------------------------------------------------
These batch tools were spread through the FIDOnet - back in the days
when many computer users were still familiar with good old DOS..
But batch files still may be usefull even under Windows: when you just
want to make a quick script, when you run games in DOS mode, or when
you want to make boot disk handling.
For this release only some text files were edited, and a few tools were
enhanced as requested by users. The ANSI stuff is removed.
Please note: Programs that set environmental variables directly (in the
COMMAND.COM environment) will not function under Windows NT/2000/XP.
See notes in TXT files.
New tools (that are mostly W2K compatible) can be found on my homepage:
http://home.mnet-online.de/horst.muc
All programs are accompanied by a TXT file.
A brief help is available with /? (except NSET).
Contents of this package ---------------------------------------------
Variables, Output Handling
NSET 2.1 pipe data from STDIN into an environmental variable
LISTMOD 2.3 make list of commands from input list
LOGECHO 2.1 custom entries for logfiles, with enhanced date handling
QECHO 1.3 "quote echo" with control codes, defaults without CR/LF
COUNT 1.0 Count, add, subtract (variable), fixed length option
FPATH 1.1 locate path of program file, optional CHDIR
RANDOM 1.1 random number (given range) to STDOUT
Batch Control
EVERY 1.0 run jobs once a day / on specified days of week
DREADY 2.2 disk(ette) ready?, optional check "ready to write"?
PCHECK 1.1 checks if (parallel) printer is ready, optional reset
ESPACE 1.2 environment variable space report/check with errorlevel
KPUSH 2.0 stuff keystrokes into keyboard buffer, code test mode
CHOIX 1.1 CHOICE clone with mouse support
INPUT 1.2 string input, editing of existing variable..
ISDATE 2.3 compare date (also file date, today)
TIMENOW 1.0 current time within given period(s)?
WAIT 1.4 wait with prompt, key by errorlevel
WHAT 1.0 by errorlevel: hour/minute/year/month/day/day of week
File Utilities
CRLF 1.3 convert: lines to be terminated by CR+LF, CR or LF
LINEX 1.2 extract [multiple] range of lines from ASCII file
DELAGE 1.3 delete/report files by age (days)
CRC32 2.1 report and check CRC32, optional list processing
LOGTRIM 1.7 trim logfiles (min/max KB)
Effects
BANNER 1.2 big font looping message
BIGFONT 1.0 display big characters (4 lines high), round pixels
CSOUND 2.2 sound output to PC speaker / resident beep replacement
WAIT4 1.4 wait for/until with large "digital clock", options
Other
PACO 1.2 executable COM file archive (run with prefix)
------------------------------------------------------------------------
Copyright
These utilities are distributed as "freeware," that is, they are free
programs with copyright reserved by the author, Horst Schaeffer. There
is no restriction on their use within private corporations, nor on their
use in governmental agencies. There are no warranties of any kind, nor
any liability by the author. Users accept full responsibility for the
use they make of the software and for any damage caused thereby.
------------------------------------------------------------------------
Credits
Thanks to Robert Bull and Douglas Myers for testing and contributions
to program features and TXT files, and of course to the BATPOWER and
BATCH.GER people who reported bugs or supplied input for enhancements.
------------------------------------------------------------------------
Contact: Horst Schaeffer
eMail: horst.schaeffer@gmx.net
Homepage: http://home.mnet-online.de/horst.muc
------------------------------------------------------------------------
= 09 AUG 2002
Later,
Charles
... KEYBOARD= Where you hang the keys to the John Deere
--- Via Silver Xpress V4.5/P [Reg]
* Origin: Silver Xpress Mail System (1:382/61)
|