home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 11 Util
/
11-Util.zip
/
TR12OS.ZIP
/
TYPERATE.DOC
next >
Wrap
Text File
|
1990-03-15
|
4KB
|
125 lines
TYPERATE.DOC - Documentation for TYPERATE 1.0 for OS/2
------------------------------------------------------
Raymond J. Berra
410 Wehntalerstr.
CH-8046 Zurich, Switzerland
BIXname: rberra
TYPERATE lets you change the typematic rate (the rate at which characters
are repeated if you keep a key down) and the typematic delay (the time
elapsing between the key press and the start of the repeat sequence) to
your liking. TYPERATE is freeware - you may use it if you respect the
conditions of use outlined below.
It is NOT a resident utility, so the only penalties you pay for its use
are 12K of wasted harddisk space and a few seconds for its invocation. A
DOS Version of this program is available by me for free, just contact me
through BIX if you're interested in it.
Instructions
------------
At the OS/2 prompt, enter TYPERATE followed either by a single parameter
that sets both typematic rate and delay (max, opt, reset) or by two integer
numbers that specify the two values.
Here are a few examples:
typerate max You get approx. 30 repeats per second after a
250 ms. delay
typerate opt Same as above, except that the repeat sequence
starts after 500 ms. (better for less experienced
users)
typerate 2 1000 Beeeeeeg fun! Slows your keyboard down to a crawl!
typerate reset Resets to IBM default values (11 characters per
second, 500 ms. repeat delay)
typerate help Displays a help screen
The best place to invoke TYPERATE is to start the program in the
STARTUP.CMD file in the root directory of drive C:. That way, you
won't have to enter the command manually. The typematic values will be
maintained until you turn off your system or until some other program
messes around with them.
Conditions of use for TYPERATE.EXE:
-----------------------------------
You MAY: Use, copy, give away, upload the program and the documentation
FREE and AT YOUR OWN RISK. I don't want money, but I also assume no
reponsibility for the correct functioning of the program or for future
revisions and bug fixes.
You MAY NOT: Ask money for this program, trade it against anything with
commercial value, or distribute it as a part of a commercial package without
my prior written permission.
If you upload it to BBS's, please distribute the whole archive under the
name 'TR11OS' rather than the individual components.
PLEASE report bugs and suggestions back to me. Contact addresses are at
the end of this document.
Flames:
-------
It is a mistery to me why one cannot change the keyboard repeat
parameters in the OS/2 Control Panel, where they belong in the first
place. I suggest IBM and/or Microsoft have a look at the (modular and
extensible!) Macintosh Control Panel.
Tech info:
----------
There is no magic behind TYPERATE: Typematic rate and delay can be set
with a single OS/2 DEV-call. Here's the 'heart' of the program (I didn't
bother to include the whole source code because it's really a command
line parser and argument checker built around the following code):
VOID SetTypematic(USHORT usCheckedRate, USHORT usCheckedDelay)
{
HFILE hFile;
USHORT usRet, usAction;
RATEDELAY ratedelay;
ratedelay.usRate = usCheckedRate;
ratedelay.usDelay = usCheckedDelay;
usRet = DosOpen("KBD$", &hFile, &usAction, 0L, 0, FILE_OPEN,
OPEN_ACCESS_READWRITE | OPEN_SHARE_DENYNONE, 0L);
if (usRet)
{
fprintf(stderr, "Open of KBD device failed: %04X, aborting...\n",
usRet);
exit(1);
}
usRet = DosDevIOCtl(0L, &ratedelay, KBD_SETTYPAMATICRATE,
IOCTL_KEYBOARD, hFile);
if (usRet)
{
fprintf(stderr, "Cannot set typematic parameters: %04X, aborting...\n",
usRet);
exit(1);
}
printf("Typematic rate set to %i chars/sec., typematic delay set to %i ms.\n\r",
usCheckedRate, usCheckedDelay);
DosClose(hFile);
}