While we're on that subject: I recently learned what the hell those .reg files are all about. Here's the inside of the one I use:
REGEDIT4
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]
; The next line maps RWin <- CapsLock <- BackSpace
;"Scancode Map"=hex:00,00,00,00,00,00,00,00,03,00,00,00,0e,00,3a,00,3a,00,5c,e0,00,00,00,00
; The next line remaps only CapsLock <- BackSpace
"Scancode Map"=hex:00,00,00,00,00,00,00,00,02,00,00,00,0e,00,3a,00,00,00,00,00
; The next line removes all scancode remappings
;"Scancode Map"=-
[HKEY_CURRENT_USER\Keyboard Layout]
"Scancode Map"=-
; Numbers are LittleEndian (0x12345678 -> 78,56,34,12)
; ---------------------------------------------------------------------
; Bytes Meaning
; ---------------------------------------------------------------------
; 00 00 00 00 Version info (usually zero)
; 00 00 00 00 Flags (usually zero)
; 03 00 00 00 # of entries (# of mappings +1 for the terminator)
; 0e 00 3a 00 The CapsLock(3a) key now sends a BackSpace(0e) scancode
; 3a 00 5c e0 The RWin(e05c) key now sends a CapsLock(3a) scancode
; 00 00 00 00 Null terminator (always zero)
Now, what this does is to set a remapping on the machine level. If you wanted it on the user level you'd use that HKEY_CURRENT_USER line instead. If you wanted to clear all remapping you'd set both lines to a simple "-" (like the second one already is).
Just found it somewhat interesting. That's why I added those comment lines in the file, too. :)
Shai, if you find this instructive feel free to use my more verbose file in your install package. (I use the RWin remapping myself but I suppose you don't want that so I quoted a version with only your standard remapping in it.)
Last edited by DreymaR (06-Mar-2008 14:24:24)