Home > Windows Server Tips > > Remapping keys in Windows 2000 and XP
Windows Server Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 


Remapping keys in Windows 2000 and XP


Serdar Yegulalp
05.05.2004
Rating: --- (out of 5)


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


Windows 2000, XP and 2003 Server have the ability to remap incoming keystrokes through a registry entry. "Remapping" keystrokes means to reassign what key refers to what character or function, allowing (for instance) the left Shift key to be treated as the left Ctrl key.

Windows interprets keystrokes through keyboard scan codes. Each keypress sends a particular code to the keyboard controller in the computer, which is in turn passed on to Windows. When a user places key-remap entries in the registry for specific scan codes, they can be reinterpreted as another scan code, and thus be changed into another keystroke.

On some laptop keyboards, the presence of Alt or Shift keys next to other commonly-used keys can be distracting and problematic for some users who keep hitting the Shift key by mistake. With key remapping, the Shift key could be remapped to represent nothing at all to keep it from interfering with user input.

Aside from user comfort, some of the other possible applications for this is to hard-disable certain keys from ever being pressed (for kiosks or other applications), or to correct problems with firmware errors or aftermarket keyboards.

Scan code mappings are stored in the Registry under the key HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlKeyboard Layout, and are stored as sets of REG_BINARY keys. Once scan code mappings have been updated, they take effect after the current user logs off or after the system is rebooted. Key mappings affect all users and cannot be changed on a user-by-user basis.

Editing them is not easy, unfortunately, since the scan codes are stored in a not-so-user-friendly way. To aid in creating and modifying keyboard scan codes, a number of third-party utilities have been written. One of the best and most useful is Sharpkeys 1.1, which can be used to interpret scan codes from any keyboard by simply pressing the keys. The resulting scan codes can then be saved to the registry (and then copied out of the registry and re-used on other machines if needed). The program requires the .NET framework to run.

If you want to learn how to edit your own key mappings, Microsoft has a document that describes the exact syntax for key mapping.


Serdar Yegulalp is the editor of the Windows 2000 Power Users Newsletter. Check out his Windows 2000 blog for his latest advice and musings on the world of Windows network administrators – please share your thoughts as well!


Rate this Tip
To rate tips, you must be a member of SearchWindowsServer.com.
Register now to start rating these tips. Log in if you are already a member.




Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED CONTENT
Desktop Management
What's that strange file (~) on my desktop?
Use crash dumps to troubleshoot hardware/OS issues
Troubleshooting sleep-mode problems due to improper profiles
Enhancing folder view retention in Explorer
Part of Microsoft's 'crown jewels' hits the Net
Will Gates' e-mail postage idea stamp out spam?
Survey: IT spending back from the dead
A week of gloom and Mydoom
Longhorn may bridge the thin, fat client worlds
The top Windows products of the year

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary

DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



Server Room Design - Planning, Cooling, Maintenance
HomeTopicsBlogsITKnowledge ExchangeTipsAsk the ExpertsMultimediaWhite PapersIT Downloads
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2004 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts