home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 11 Util
/
11-Util.zip
/
KBDSET.ZIP
/
KEYBOARD.DOC
< prev
next >
Wrap
Text File
|
1991-12-04
|
3KB
|
68 lines
KEYBOARD.C
----------
by D. Pagliughi
The program KEYBOARD.C (KEYBOARD.EXE is the executable file) can
be used to control the status of the keyboard. For example, some
systems do not boot up with NumLock enabled. To cause the NumLock
to be enabled at boot time, simply insert the statement:
KEYBOARD N+
in your AUTOEXEC.BAT file. Note that KEYBOARD.EXE must be in a
directory defined in the PATH statement or in the root directory
of the boot disk.
Command Syntax:
--------------
The following command line switches are allowed:
N or n - NumLock
C or c - Caps Lock
S or s - Scroll Lock
I or i - Insert Mode
Each command switch can be followed by an identifier. Multiple
switches/modifiers can be specified but they must be separated by
a space.
Each command switch can be followed by a modifier:
+ - Turn option ON regardless of
its current status.
- - Turn the switch OFF regardless of
its current status.
blank - Toggle the switch.
Examples:
Assuming the following starting keyboard conditions:
NumLock ON, Caps Lock OFF, Insert OFF, Scroll Lock OFF
the following command switches and modifiers would result in the
indicated effects:
Command NumLock Caps Lock Insert Scroll Lock
KEYBOARD N C+ S OFF ON OFF ON
KEYBOARD N+ I+ C- ON OFF ON OFF
KEYBOARD N C S I OFF ON ON ON
Notes:
Many software packages set the status of certain of the switches
above when they start up, therefore the values you set may be
changed.
This program, along with the source code is placed in the public
domain and may be freely modified and distributed as long as no
fee is charged. The author takes no responsibility for damages
claimed as a result of using this program.