Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!uwm.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!m.cs.uiuc.edu!roundup.crhc.uiuc.edu!ux1.cso.uiuc.edu!bradley.bradley.edu!buhub!data From: data@buhub.bradley.edu (CS Major: LCMDR Data) Newsgroups: comp.os.msdos.programmer Subject: Re: Disabling an Internal DOS Command Message-ID: <1991Mar6.233821.15345@bradley.bradley.edu> Date: 6 Mar 91 23:38:21 GMT References: <1991Mar4.151301.12925@cbnewsk.att.com> Sender: news@bradley.bradley.edu Distribution: usa Organization: MSD*S Programmers from h*||! =-] Lines: 33 Nntp-Posting-Host: buhub.bradley.edu In levericw@cheetah.ece.clarkson.edu (Walden Leverich) writes: >> Question #2: >> Is there any way to set the state of the NumLock key. I already know >> how to detect the state of the key, but what I really need to do is >> set it to be either on or off. Any help would be appreciated. >You can read the status from BIOS, you may also be able to SET the >status by playing with the settings in BIOS. (Obviously a RAM copy of >BIOS.) >Anyone on the net care to comment on the feasibility of this? I have >not tried it myself, but would be interested in the answer. I'm not 100% percent sure about this, I don't have my ASM manuals with me: If you flip the appropriate bit (in the keyboard status byte), when the keyboard interrupt executes, it checks that byte. That should effectively set the caps lock/numlock/scroll lock keys. This probably won't flip the light on the keyboard, but should work. Mark Hall CS Major at Bradley University (Gee, why is EVERYTHING a hack? =-) -- | I'nt: data@{bucs1,buhub,heartland}.bradley.edu, al632@cleveland.freenet.edu | |-----------------------------------------------------------------------------| | F'net : 1:232/28 1:2250/9 (fname.lname@f.n.z.fidonet.org) | |-----------------------------------------------------------------------------| | "He sees you when you're sleeping, he knows when you're awake, but Captain, | | it makes no sense!" "But Spock, with Santa, ALL things are possible!" | | Kirk and Spock...Hallmark Greeting Cards |