Path: utzoo!attcan!uunet!lll-winken!lll-tis!helios.ee.lbl.gov!pasteur!agate!saturn!ucscb.UCSC.EDU!lupin3 From: lupin3@ucscb.UCSC.EDU (-=/ Larry Hastings /=-) Newsgroups: comp.sys.ibm.pc Subject: Re: Caps Lock Blues? Message-ID: <5209@saturn.ucsc.edu> Date: 22 Oct 88 01:41:17 GMT References: <12440256984046@osu-20.ircc.ohio-state.edu> Sender: usenet@saturn.ucsc.edu Reply-To: lupin3@ucscb.UCSC.EDU (-=/ Larry Hastings /=-) Organization: MetaWare, Incorporated Lines: 40 +-In article <12440256984046@osu-20.ircc.ohio-state.edu>, DAVIS-M@osu-20.ircc.ohio-state.edu (Mark Davis Univ Sys) wrote:- +---------- | | I am writing a text editor in Microsoft Quick Basic Version 4.0 and am having | trouble determining when the caps-lock key is enabled and disabled. Is this | determined by some location in memory? | +---------- Yep. According to Peter Norton's Programmer's Guide to the IBM PC, hex 418 holds the following information: Bit 7 6 5 4 3 2 1 0 1=on, 0=off X 1=Ins X 1=Caps Lock X 1=Num Lock X 1=Scroll Lock Also, int 16h function 02 returns (in AL): Bit 7 6 5 4 3 2 1 0 1=on, 0=off X Ins X Caps Lock X Num Lock X Scroll Lock X Alt X Ctrl X left Shift key X right Shift key -- /|\ /|\ .. . . . . . . . . . . | |\| |\| .. . . . . . . . . . . |/|\|/|\|/|| _ _ _ _ |_| _ _ |_ -__ _ _ARPA: lupin3@ucscb.ucsc.EDU | |/| |/|L_ (_\( ( (_/ | |(_\_) (_ || )(_)_)UUCP: *!ucbvax!ucscc!ucscb!lupin3 \|/ \|/ larry / hastings _/ WORK: sun!acad!metaware!funkster MetaWare "I'm hovering like a fly, waiting for the windshield on the freeway." IncorporateDisclaimer:[MetaWare, UCSC]->opinion!=lhastings->opinion\\\Genesis