Path: utzoo!attcan!uunet!husc6!bbn!rochester!kodak!ektools!kadsma!pajerek From: pajerek@kadsma.kadsm (Don Pajerek) Newsgroups: comp.sys.ibm.pc Subject: Re: NumLock and/or CapsLock Disabling Keywords: numlock capslock Message-ID: <134@kadsma.kadsm> Date: 24 May 88 15:16:48 GMT References: <5453@umn-cs.cs.umn.edu> <686@cernvax.UUCP> <605@bbking.KSP.Unisys.COM> Reply-To: pajerek@kadsma.UUCP (Don Pajerek) Organization: Eastman Kodak, Dept. 47, Rochester NY Lines: 16 In article <605@bbking.KSP.Unisys.COM> rmarks@KSP.Unisys.COM (Richard Marks) writes: >In article <686@cernvax.UUCP> emanuel@cernvax.UUCP () writes: >>Do you know by chance how to disable (or enable) by software the >>NumLock and CapsLock keys? >There is no way to just tell the keyboard to ignore these keys. Sure there is. Write a small TSR that traps INT 09H and looks at each keypress. If it sees the scan codes for the NumLock or CapsLock keys, it just resets the keyboard and the 8259 and returns. Otherwise, it would pass the key on to the BIOS keyboard handler. The startup routine for this TSR could set the NumLock and CapsLock bits (40:17) to the desired values. >Richard Marks DJP