home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C!T ROM 5
/
ctrom5b.zip
/
ctrom5b
/
DOS
/
UTILITY
/
DIVERSEN
/
KEYTAP10
/
KEYTAP.DOC
< prev
next >
Wrap
Text File
|
1994-10-27
|
4KB
|
84 lines
************************************************************************
KEYTAP - Keystroke Simulator
(C) Copyright 1992-1994 Neil Faulks. All Rights Reserved.
************************************************************************
KEYTAP allows you to run a program whilst simulating a sequence of
keystrokes. The command to be run is given as an argument to KEYTAP,
together with the list of keystrokes. When the list of keys is exhausted
control is returned to the keyboard, unless the program has already
terminated. The key list may alternatively be stored in a file, and the
name of the file given to KEYTAP. Delays can be inserted into the stream
of keys, to allow a user time to read output, or time for an application
to finish processing.
KEYTAP has many uses such as allowing menu driven applications to be run
from the command line, or answering tiresome questions from programs
like FORMAT.
KEYTAP runs the application program by invoking a copy of COMMAND.COM,
KEYTAP also remains resident whilst the program is running, but, unlike
some other utilities KEYTAP does not remain in memory once the
application has terminated, it is not a TSR.
This program is SHAREWARE, which means that you are allowed to use it
free for a period of up to 30 days, after this time you must pay for it
if you wish to continue using it. Refer to the file ORDER.DOC for
ordering information.
Usage
KEYTAP <command name> // <key list>
The double slash ("//") is used to separate the command (which
may also have its own options) from the list of keys. Any spaces
between the // and the key list are ignored.
The key list may be placed in a file, in which case the
following syntax is used:
KEYTAP <command name> // @file
There can only be one filename given on the command line, and it
must not be followed by any characters such as spaces.
If the command name is omitted, a new command shell is started.
All characters in the keylist, including spaces, are fed to the
application with the exception of left square bracket "[", which
signals the start of a special key name.
If the key list is being read from a file Line Feed characters,
normally found at the end of each line, are sent to the
application as RETURN key presses.
The Key List
The following special keynames may be used in the key list (it
does not matter if they are in upper or lower case):
[ret] [esc] [bksp]
[up] [down] [left] [right]
[a] ... [z] Alt and letter keys
[^a] ... [^z] Ctrl and letter keys
[F1] ... [F12] function keys
[@F1] ... [@F12] Alt function keys
[$F1] ... [$F12] Shifted function keys
[^F1] ... [^F12] Ctrl function keys
[=#] Delay for # seconds
[1234] key with scancode 1234
The supplied KEYCODE program may be used to get the scan code of
any key on the keyboard, so every key may be simulated by
KEYTAP.
Hints on Using Keytap
Some applications ignore keystrokes entered whilst they are
starting up; you may need to use a delay at the start of a key
list for such applications.