Jan 052018
Routine to simulate keypress after specified interval.
File DEADMAN.ZIP from The Programmer’s Corner in
Category Utilities for DOS and Windows Machines
Routine to simulate keypress after specified interval.
File Name File Size Zip Size Zip Type
DEADMAN.COM 1842 1222 deflated
DEADMAN.DOC 4763 1889 deflated


Download File DEADMAN.ZIP Here

Contents of the DEADMAN.DOC file


Keith P. Graham

A "deadman" is a switch that was (and still is) used by
railroad engine designers to prevent the engineer from
falling asleep at the throttle. The deadman originally was a
switch that if the engineer fell over the switch would go
off, stopping the train. Now the engineers are attached
electronically to a device which requires them to touch a
metal portion of the controls every thirty seconds. If they
don't touch the metal, an alarm goes off and then the train
is automatically stopped.

This program was written for the benefit of a blind person
who was being disconnected from bbs's by the bbs's timeout
because of not being able to read the braille screen reader
fast enough to respond in time.

This program will send some characters every x number of
seconds so that the BBS will think that he is active. This
is a PC Deadman switch. If the person does not press a key
then the deadman takes over and prevents the crash.

The way to install DEADMAN.COM is to enter:

DEADMAN /Mmessage /C/Pnnn


/M is the message switch, everything following the /M up to
the end of line or the next slash character is the deadman
message (ie: these are the characters sent to the bbs to
keep the connection going. These must be selected with
care since you don't want to send input that will mess up
your situation with the bbs.

/C is the Carriage return key. If you want you message to
terminate with a carriage return include /C somewhere on
the command line.

/Pnnn where nnn is the number of seconds between the last
time a key was struck and the issuance of the deadman
message. There must be 3 digits! This is a Q&D program
and as such tends to be a little user antagonistic.

/F means turn off deadman. For instance at the A> enter
DEADMAN/F and the deadman is turned off.

/O is on (the opposite of off).

In addition to /O and /F the deadman switch can be turned off
with a hot key combination. Alt-Left shift-D toggles the
deadman. There will be sound indicating that deadman saw the

There is a 2 second warning sound that goes off before the
deadman runs so touch any key (I suggest a shift key) if you
don't want deadman to kick in just then.

I am releasing this to the public domain. Another example of
a program which is incredibly interesting to code and useful
to a small number of people, but not in the least commercial.
I am also including the code.

I hope that DEADMAN finds a home somewhere in someone's
autoexec.bat and doesn't languish forgotten on a few remote


Software Library Information:

This disk copy provided as a service of

The Public (Software) Library

If you have received this disk from another source, you
should be aware that disks in the P(s)L are updated monthly
so this copy may not be the latest version available.
For a copy of the latest monthly software library newsletter
and a list of the 800+ disks in the library, call or write

The Public (Software) Library
P.O.Box 35705 - F
Houston, TX 77235-5705
(713) 721-6104

We are not the authors of this program, nor are we associated
with the author in any way other than as a distributor of the
program in accordance with the author's terms of distribution.

Please direct shareware payments and specific questions about
this program to the author of the program, whose name appears
elsewhere in this documentation. If you have trouble getting
in touch with the author, we will do whatever we can to help
you with your questions. All programs have been tested and do
run. To report problems, please use the form that is in the
file PROBLEM.DOC on many of our disks or in other written for-
mat with screen printouts, if possible.

 January 5, 2018  Add comments

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>