Donation Goal
Donate Now Goal amount for this year: 799 USD, Received: 100 USD (13%)
Please donate to help support this website. The funds will be used to purchase owned license of LiteSpeed Web Server Enterprise (2-CPU). It provides superior performance in terms of raw speed, scalability and anti-DDoS capabilities.

Make Certain Keys On a Keyboard to Act Like Other Keys

Posted By Raymond In Category: Computer

Dec
12
2007

Macro tools can definitely help you map a key on a keyboard to something else or even to perform a task for you. Unless you are one of the few people that make use of every key on your keyboard and are completely happy with your keyboard layout, there is probably something you would like to change on your keyboard. Maybe you have an IBM Thinkpad and you really miss having a Windows Logo key. Maybe you are used to using a different keyboard and you keep hitting the wrong key. Another example is the F3 key which will bing up Windows Search and I seldom use it. Since I don’t use it, why not I hack the key to do something more useful? Problem with using Macro program to map a key on a keyboard to something else is it has to be running to monitor the keystroke. If it’s closed, the mapping won’t work.

Apple eject key on WindowsWhat if I want to change the key permanently? For example, make F3 key to act like the cool Apple eject key? Yes it’s possible to permanently make certain keys on a keyboard to act like other keys WITHOUT the need of a macro program running.


So how is it possible to hack the keyboard keys to act differently? Well, your keyboard communicates with your computer typically through a PS/2 port or a USB port. The data sent by your keyboard is referred to as Scan Codes. When you press a key, the “make” scan code for that key is received by your computer’s i8042 controller chip. When you release a key, the “break” scan code is sent. Prior to Windows 2000, device drivers had to be written to modify scan codes. Happily, Microsoft incorporated this feature into their operating system, thereby allowing us to hack registry and change the values to anything we see fit. Problem is manually editing the registry to do remapping can be quite tricky. Thankfully there are free tools to simplify this process…

Keytweak is a free keyboard remapper for Windows NT/2000/XP. It makes use of Microsoft’s Scancode Map registry key to remap your keyboard.
Keytweak to change your keyboard keys
To change a key, click on a key on the visual keyboard first, then select a command from the “Choose New Remapping” dropdown menu. Then press Remap Key which is located beside the dropdown menu. Once you’re sure that’s the key that you want to remap, click Apply button and restart. Please take note that the key mappings affects every user. KeyTweak KeyTweak is not able to combine keystrokes into a single key. For example, when you press the Tab key, you want it to combine Windows + R key to bring up the Run command. That is not possible because it is for REMAPPING only.

[ Download KeyTweak ]

There’s another great free tool to map your keyboard keys and it’s called SharpKeys.
Sharpkeys change keyboard keys
It works exactly the same as KeyTweak but it lacks of keyboard interface for you to easily identify the keys that you want to change. You can try SharpKeys to compare with KeyTweak and see which you’d prefer to use. Oh yes, nearly forget to mention that both KeyTweak and SharpKeys is able to scan the Scancode when you press a key. It’s called “Teach Mode” in KeyTweak and “Type Key” in SharpKeys.

[ Download SharpKeys ]

Found another one called MapKeyboard. This free keyboard remapper requires .NET Framework 2 installed. Very small, only 30KB in file size and no installation required.
MapKeyboard
[ Download MapKeyboard ]


Related posts:
  • List of Keyboard Shortcuts To Help You Speed Up Your Computing Tasks
  • Retrieve Serial Numbers or CD Keys from your computer
  • Make Your Computer Automatically Perform Tasks For You
  • How To Make a USB Flash Drive Bootable
  • Make your Recoverable Datas UNRECOVERABLE
    • Mahmoud

      looks cooooooooooooooool

      thanks Rymond

    • sumit

      this is gud but if u give the method of manually editing the registry to do remaping the keyboard key it will be the gr8 thing

    • http://www.raymond.cc/ Raymond

      Manually editing the registry to do remapping of keyboard key is not easy. Why settle for manual when you can automate it?

    • Ryan

      This is awesome, but when i remap any key on my keyboard to act as the eject key it doesn’t work I guess it’s because I have a standard keyboard. does the keyboard has to be a multimedia keyboard to remap the eject key to another key?

    • Nate

      So, how to make F3 key to act like the cool Apple eject key? Can you keep your ambitious promise?

    • http://www.raymond.cc/ Raymond

      Of course I can keep my “ambitious” promise. KeyTweak is able to map any keys to Eject key. When you run KeyTweak, you can see it has specialty buttons and it says for use with some keyboards. So if your keyboard doesn’t support, sorry to dissappoint you but my ambitious promise won’t work for you.

    • Tk

      Hey raymond, I was trying to map an fn key to a more convenient spot but, when i tried both progs they wouldn’t recognize the fn key. Do you know a fix for this?

    • http://www.raymond.cc/ Raymond

      Tk, I’ve done research on laptops fn key and it seems impossible to re-create / map it to another key.

    • Tk

      ahh that’s a shame, thanks though. Keep up the wonderful work

    • http://www.raymond.cc/ Raymond

      Yeap it is a shame. FN key is very important for laptop because it is used to control the brightness of the screen, and many other functions.

      If FN key is unusable, I guess the only way is to spend money to change the keyboard :(

    • kev

      I have windows vista on my laptop an it’s telling me that the scan code change has been denied ? any help please!

    • kev

      Opps!, Forgot to mention i know that it is ment for 2000/xp but is there anyway i can get around this or any other programs i can use designed for vista? i hate vista more and more every day :(

    • john_lennon

      i use autohotkey a very good program to remap the key with script. The website has a very good manual and a very active forum.

    • Ra

      Hello Raymond, I\\\\\\\’ve been reading your blog and you recommend pretty good tips.

      Well, I was wondering if it would be possible to map different actions to different keyboards. For example, i have ps/2 keyboard and a wireless keyboard; I want the ps/2 to do the normal functions and i want the wireless keyboard to do a complete different set of funtions than the ps/2 keyboard.

      Thanks.

    • ron

      Help! I have a problem loggin in since the Delete button is not recognized anymore after remapping to a different key. Can some one help how I can login now? Many Thanks!

    • MCY

      Raymond – people like you are a god sent. Many thx!

      Question regarding changing the keys on laptops – Does it work on laptops or only desktop keyboards?

      I currently have an Acer (which I love) but it has those annoying Euro and Dollar symbols next to the arrow keys which NEVER get used. I’d like to change them to page up and page down (very useful when working on large spreadsheets).

    • Luisa

      Necesito accesar a mi laptop ibm pero se me olvildo la clave y esta laptop no trae cd o dvd .. como puedo entonces accesar a mi laptop que tiene win xp

    • myrtille

      Heya,

      thanks for this presentation! :) These tools made my life a hole lot easier!

      @MCY

      I just tried keytweak on an acer with vista. Worked like a charm.
      Just use the teach-mode and hit the Eurokey for key 1 and page up for key 2 and then remap.

      If you want this to work with vista, you also need to run the programm with administrator priviliges (right click, “run as admin”) because it needs to access the registry.

      greets myrtille

    • Mick

      It will not change ; to :

      It won’t combine keystrokes into a single key.

    • dsfas

      cual es la tecla CRTL o control en el sharpkeys?

    Copyright © 2005-2012 - Raymond.CC Blog