Search This Blog

Most Viewed

Friday, March 11, 2011

Change the Caps Lock key Function



Change the Caps Lock key Function

If you’re using Mac OS X instead, you can follow our guide on how to disable Caps Lock in OS X using a registry hack, or you can map any key to any key if you really want to.



Understanding How Windows Key Re-Mapping Works


Windows doesn’t have a default setting to allow for disabling the key, so what we have to do is re-map the key to something non-existent so as to completely disable it. To do this manually, you’d open up regedit.exe and browse down to the following key:

════════════════════════════════════════════════════════════════════
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout
════════════════════════════════════════════════════════════════════

Here’s the format of the binary data in the Scancode Map key, with the important parts in bold and various colors:

════════════════════════════════════════════════
00000000 00000000 02000000 00003A00 00000000
════════════════════════════════════════════════

Here’s how it works:
  • The first 16 zeros are just there to waste space.
  • The “02″ in bold represents how many keys you are going to re-map plus 1. (It really represents the length of the data, but whatever)
  • The orange bolded “0000″ is the key we actually want Windows to map TO, which in this case is nothing, or 0.
  • The blue bolded “3A00″ is the key we are mapping from, in this case the caps lock key.
  • The next 8 zeros are there to waste space as the null terminator.

You can map between multiple keys by incrementing the “02″ and then adding another of the colorful bold blocks in the middle. The 3A00 in the mix is the scan code.  For example, if you wanted to disable the caps lock key and then change scroll lock into a caps lock key:

═══════════════════════════════════════════════════════
00000000 00000000 03000000 00003A00 3A004600 00000000
═══════════════════════════════════════════════════════

Here are some Registry keys which are used for key re-mapping

Changes Caps Lock to be a Control key

════════════════════════════════════════════════════════════════════
 " S c a n c o d e   M a p " = h e x : 0 0 , 0 0 , 0 0 , 0 0 , 0 0 , 0 0 , 0 0 , 0 0 , 0 2 , 0 0 , 0 0 , 0 0 , 1 d , 0 0 , 3 a , 0 0 , 0 0 , 0 0 , 0 0 , 0 0 
════════════════════════════════════════════════════════════════════

Changes Caps Lock to be a Shift Key


════════════════════════════════════════════════════════════════════
 " S c a n c o d e   M a p " = h e x : 0 0 , 0 0 , 0 0 , 0 0 , 0 0 , 0 0 , 0 0 , 0 0 , 0 2 , 0 0 , 0 0 , 0 0 , 2 a , 0 0 , 3 a , 0 0 , 0 0 , 0 0 , 0 0 , 0 0
════════════════════════════════════════════════════════════════════

 kill Caps Lock

════════════════════════════════════════════════════════════════════

 " S c a n c o d e   M a p " = h e x : 0 0 , 0 0 , 0 0 , 0 0 , 0 0 , 0 0 , 0 0 , 0 0 , 0 2 , 0 0 , 0 0 , 0 0 , 0 0 , 0 0 , 3 a , 0 0 , 0 0 , 0 0 , 0 0 , 0 0 

════════════════════════════════════════════════════════════════════


No comments:

Post a Comment

If the contents is insufficient or if there any error, please write here....


Suggestion are welcome:

Popular Posts