* NT kernel keymap hack
@ 1998-01-10 16:02 Steven R. Newcomb
1998-01-11 15:55 ` Larry Hall
0 siblings, 1 reply; 3+ messages in thread
From: Steven R. Newcomb @ 1998-01-10 16:02 UTC (permalink / raw)
To: GNU-Win32
Does anybody know of an NT kernel hack that switches the caps-lock key
with the control key (that lies under the shift key on most machines
these days)? I just can't adjust to the idea that the control key
should be so inaccessible. I'm an Emacs/bash bigot, and I like using
the control key a lot.
I've done this remapping in Linux, and I evidently *can* do it in
Win-95 thanks to a free downloadable kernel patch from Microsoft. But
I haven't found one for NT yet, and I'd sure like to. I write
to this list because it is read by people who expect rational
levels of functionality under NT.
-Steve
--
Steven R. Newcomb, President, TechnoTeacher, Inc.
srn@techno.com http://www.techno.com ftp.techno.com
voice: +1 972 231 4098 (at ISOGEN: +1 214 953 0004 x137)
fax +1 972 994 0087 (at ISOGEN: +1 214 953 3152)
3615 Tanner Lane
Richardson, Texas 75082-2618 USA
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: NT kernel keymap hack
1998-01-10 16:02 NT kernel keymap hack Steven R. Newcomb
@ 1998-01-11 15:55 ` Larry Hall
0 siblings, 0 replies; 3+ messages in thread
From: Larry Hall @ 1998-01-11 15:55 UTC (permalink / raw)
To: Steven R. Newcomb; +Cc: GNU-Win32
Steven R. Newcomb wrote:
>
> Does anybody know of an NT kernel hack that switches the caps-lock key
> with the control key (that lies under the shift key on most machines
> these days)? I just can't adjust to the idea that the control key
> should be so inaccessible. I'm an Emacs/bash bigot, and I like using
> the control key a lot.
>
> I've done this remapping in Linux, and I evidently *can* do it in
> Win-95 thanks to a free downloadable kernel patch from Microsoft. But
> I haven't found one for NT yet, and I'd sure like to. I write
> to this list because it is read by people who expect rational
> levels of functionality under NT.
>
> -Steve
>
> --
> Steven R. Newcomb, President, TechnoTeacher, Inc.
> srn@techno.com http://www.techno.com ftp.techno.com
>
> voice: +1 972 231 4098 (at ISOGEN: +1 214 953 0004 x137)
> fax +1 972 994 0087 (at ISOGEN: +1 214 953 3152)
>
> 3615 Tanner Lane
> Richardson, Texas 75082-2618 USA
> -
> For help on using this list (especially unsubscribing), send a message to
> "gnu-win32-request@cygnus.com" with one line of text: "help".
Try ctrl2cap at http://www.ntinternals.com/ntutil.htm . I haven't
tried it myself but I believe it will do what you want.
--
Larry
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: NT kernel keymap hack
@ 1998-01-11 9:41 Chuck Bogorad
0 siblings, 0 replies; 3+ messages in thread
From: Chuck Bogorad @ 1998-01-11 9:41 UTC (permalink / raw)
To: Steven R. Newcomb, gnu-win32
>Does anybody know of an NT kernel hack that switches the caps-lock key
>with the control key (that lies under the shift key on most machines
>these days)? I just can't adjust to the idea that the control key
>should be so inaccessible. I'm an Emacs/bash bigot, and I like using
>the control key a lot.
sure, enjoy (author is unknown). on my system, i totally disabled CAPS LOCK,
so both
keys act like CONTROL key
my system (caps -> ctrl) has this setting:
00 00 00 00 - 00 00 00 00 - 02 00 00 00 - 1d 00 3a 00 - 00 00 00 00
=== cut ===
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
DWORD
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.
=== cut ===
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1998-01-11 15:55 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-01-10 16:02 NT kernel keymap hack Steven R. Newcomb
1998-01-11 15:55 ` Larry Hall
1998-01-11 9:41 Chuck Bogorad
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).