Annoyances.org
Home » Windows XP Discussion Forum » Message 1005889003 Search | Help | Home
  
re: Question about 'Customize Your Keyboard Mapping'
Thursday, November 15, 2001 at 9:36 pm
Windows XP Annoyances Discussion Forum
Posted by Dan Smith (1 messages posted)


I've used this for NT, 2000, and XP.  Works great...

3; Wed, 4 Dec 1996 14:36:22 -0600 (CST)
References: <9611038496.AA849638009@cccpp.com>
In-Reply-To: "Jeff McCarrell"'s message of Tue, 03 Dec 96 10:30:02 pdt
Message-ID: 
Lines: 43
X-Mailer: Red Gnus v0.66/Emacs 19.34
From: Shane Holder 
To: "Jeff McCarrell" 
Cc: cmcmahan@Teknowledge.COM, Jonathan Payne ,         ntem
acs-users@cs.washington.edu
Subject: Re: Re[2]: problem with caps/ctrl swap on NT 4.0
Date: 04 Dec 1996 14:36:21 -0600


Found this on the net somewhere.

Add this value:

HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\KeyBoard
Layout\Scancode Map

It's a binary value that lets you map keystrokes in the low-level keyboard
drivers in NT.  As a result you don't have to worry about applications
bypassing mappings that you've done at a higher level (i.e. it just works).
 Here's the format of the value:

        DWORD:  0x00000000      header
        DWORD:  0x00000000      header
        DWORD:  length (in DWORDs) of remaining data, including terminating DWO
RD
        DWORD:  mapping 1
        ...
        DWORD:  mapping n
        DWORD:  0x00000000      terminating null DWORD

Each mapping DWORD  has two parts: the input scancode, and an output
scancode.  To map scancode 0x1d (left control) to scancode 0x3a (caps
lock), you want a value of 0x003a001d.  Note that this does not swap the
keys.  Using just this mapping value, both the left control and the caps
lock key will behave as caps-lock.  To swap, you also need to map 0x3a to
0x1d, using 0x001d003a.  So, the complete registry value you'd use to swap
left-control and caps-lock is:

        00 00 00 00 00 00 00 00 03 00 00 00 1d 00 3a 00 3a 00 1d 00 00 00 00 00

This works on NT 4.0, I don't know about 3.51.  This registry value is
system wide, and can't be made user-specific.  It also only takes affect on
reboot.





Written in response to:
Question about 'Customize Your Keyboard Mapping' (Jeff Squires: Saturday, November 3, 2001 at 8:54 am)

Responses to this message:
*re: Question about 'Customize Your Keyboard Mapping' (Ed Hannigan: Monday, December 31, 2001 at 6:30 am)
*re: Question about 'Customize Your Keyboard Mapping' (Scott S: Wednesday, March 20, 2002 at 4:13 am)
*re: Question about 'Customize Your Keyboard Mapping' (Lynne: Friday, February 6, 2004 at 11:33 pm)

All messages in this thread [show all]
-Question about 'Customize Your Keyboard Mapping' (Jeff Squires: Sat, Nov 3, 2001, 8:54 am)
-re: Question about 'Customize Your Keyboard Mapping' (Dan Smith: Thu, Nov 15, 2001, 9:36 pm)
-re: Question about 'Customize Your Keyboard Mapping' (Ed Hannigan: Mon, Dec 31, 2001, 6:30 am)
-re: Question about 'Customize Your Keyboard Mapping' (Ed Hannigan: Fri, Jan 4, 2002, 2:09 pm)
-re: Question about 'Customize Your Keyboard Mapping' (Bo Kahler: Tue, Jan 15, 2002, 7:48 am)
-re: Question about 'Customize Your Keyboard Mapping' (someone: Sat, Jan 19, 2002, 11:28 pm)
*re: Question about 'Customize Your Keyboard Mapping' (Keith Conover: Fri, Jun 28, 2002, 4:03 pm)
*re: Question about 'Customize Your Keyboard Mapping' (Alan Isaac: Sun, Jan 18, 2004, 8:19 am)
-re: Question about 'Customize Your Keyboard Mapping' (guy weiner: Sat, Nov 23, 2002, 2:16 pm)
*re: Question about 'Customize Your Keyboard Mapping' (Ed Hannigan: Sat, Nov 23, 2002, 2:58 pm)
-re: Question about 'Customize Your Keyboard Mapping' (Irene: Fri, Mar 14, 2003, 5:40 am)
*re: Question about 'Customize Your Keyboard Mapping' (Tipp: Sun, Jul 27, 2003, 11:15 am)
*re: Question about 'Customize Your Keyboard Mapping' (Rick Alber: Thu, Jan 29, 2004, 9:04 am)
*re: Question about 'Customize Your Keyboard Mapping' (RwK: Thu, Dec 12, 2002, 1:16 pm)
-re: Question about 'Customize Your Keyboard Mapping' (Scott S: Wed, Mar 20, 2002, 4:13 am)
-re: Question about 'Customize Your Keyboard Mapping' (Craig Leres: Wed, Mar 27, 2002, 11:09 am)
-re: Question about 'Customize Your Keyboard Mapping' (Kaineas: Wed, Oct 2, 2002, 1:07 am)
*re: Question about 'Customize Your Keyboard Mapping' (matt?: Mon, Oct 14, 2002, 6:17 pm)
-re: Question about 'Customize Your Keyboard Mapping' (Pat: Tue, Nov 26, 2002, 8:39 pm)
-re: Question about 'Customize Your Keyboard Mapping' (pawel: Thu, Nov 28, 2002, 9:24 am)
-re: Question about 'Customize Your Keyboard Mapping' (Jackson: Wed, Jan 26, 2005, 5:23 pm)
-re: Question about 'Customize Your Keyboard Mapping' (Maggy Rond: Fri, Jan 13, 2006, 5:36 pm)
*re: Question about 'Customize Your Keyboard Mapping' (Arthur Dent: Mon, Oct 2, 2006, 3:51 pm)
*Map Delete Key to Page Dn Key & Vice Versa (Zen: Thu, Apr 17, 2003, 4:26 pm)
-re: Question about 'Customize Your Keyboard Mapping' (Mark MacMillan: Sun, Dec 7, 2003, 1:50 pm)
-re: Question about 'Customize Your Keyboard Mapping' (Craig Leres: Sun, Dec 7, 2003, 2:16 pm)
*re: Question about 'Customize Your Keyboard Mapping' (Mike McKelvey: Thu, Dec 11, 2003, 6:49 pm)
*re: Question about 'Customize Your Keyboard Mapping' (Wonderer: Tue, Mar 2, 2004, 9:51 pm)
*re: Thanks for 'Customize Your Keyboard Mapping' (Edgar Mark : Sun, Apr 4, 2004, 12:10 pm)
*re: how to disable ctrl + esc ? (hook: Thu, Jul 14, 2005, 8:08 pm)
*re: Question about 'Customize Your Keyboard Mapping' (Kristian Kjær: Wed, Sep 26, 2007, 12:03 am)
-re: Question about 'Customize Your Keyboard Mapping' (Roger: Sat, Dec 1, 2007, 10:03 am)
*re: Question about 'Customize Your Keyboard Mapping' (UFUK: Wed, Jan 2, 2008, 10:54 pm)
-re: Question about 'Customize Your Keyboard Mapping' (bbb: Tue, Nov 30, 2004, 1:18 pm)
*re: Question about 'Customize Your Keyboard Mapping' (Eric Pement: Tue, Dec 21, 2004, 2:50 pm)
*re: Question about 'Customize Your Keyboard Mapping' (Lynne: Fri, Feb 6, 2004, 11:33 pm)
*re: Question about 'Customize Your Keyboard Mapping' (chad nash: Fri, Feb 18, 2005, 6:56 am)
Return to the Windows XP Discussion Forum

All content at Annoyances.org is Copyright © 1995-2008 Creative Elementtm All rights reserved.
Please do not plagiarize; redistributing these pages without permission is strictly prohibited.