Dec 092017
 
Small program that will control Num, Caps, and Scroll lock keys.
File KEYCTRL.ZIP from The Programmer’s Corner in
Category Utilities for DOS and Windows Machines
Small program that will control Num, Caps, and Scroll lock keys.
File Name File Size Zip Size Zip Type
KEYCTRL.DOC 1800 748 deflated
KEYCTRL.EXE 3438 715 deflated

Download File KEYCTRL.ZIP Here

Contents of the KEYCTRL.DOC file


Keyctrl is a small program that allows you to turn the Num Lock key
off on the AT&T 101 key keyboard. Simply insert the following command
anywhere in your autoexec.bat file to turn the Num Lock
key off at boot time:
KEYCTRL n

Keyctrl can toggle other locked key combinations. Upper case
characters will lock keys, and lower case characters will unlock them
For example to enable Caps Lock and disable Num lock enter the following:
KEYCTRL Cn

Keyctrl with a question mark will display all the options supported.

E:\TMP-->keyctrl ?

Keyboard Control Version 1.0

Usage: KEYCTRL [options]

Where the options are
I = Insert Key Locked i = Insert Key Unlocked
C = Caps Key Locked c = Caps Key Unlocked
N = Num Key Locked n = Num Key Unlocked
S = Scroll Key Locked s = Scroll Key Unlocked
P = Pause Key Locked p = Pause Key Unlocked
D = Display Keyboard Control Status
E = Keyboard Control Status returned as Error Code

E:\TMP-->

Keyctrl can also return the decimal code of the shifted key by
using the D option. Turn the Num Lock key on and try this command:
KEYCTRL D

E:\TMP-->keyctrl D
32
E:\TMP-->

Keyctrl should return a 32 indicating that the Num lock key was on.

The E option will place the shifted key status in the Return Code.
This Return code can be checked in batch files by using the
ERRORLEVEL option.

The following batch file (x.bat) will ask for the TIME if the Num
lock key is not on. If the Num lock key is on the TIME command will
be skipped.

Keyctrl E
IF ERRORLEVEL 32 GOTO :SKIPTIME
TIME
GOTO :END
:SKIPTIME
ECHO Time Not Set
:END

















 December 9, 2017  Add comments

Leave a Reply