KeyTweak Manual
KeyTweak Manual
Version History
v1.0.8 8/23/03 - Initial release. v1.0.9 9/26/03 - Fixed Show Me the Raw Map function. v1.0.10 10/4/03 - Fixed bug that caused dialog box to flash just before computer is rebooted. v1.0.11 11/9/03 Added more specialty buttons v1.0.12 12/22/03 Fixed bug: Numpad / key was not defined. Thank you Johan Barkhuizen. v1.0.14 5/11/04 Added Macintosh Keypad (=) key that generates LF characters. v2.0.0 -- 6/25/04 Added Teach Mode (Full) v2.0.1 -- 7/29/04 Added support for extended keys through Teach Mode v2.1.1 -- 10/4/04 Added Half Teach Mode v2.2.0 -- 10/15/05 Added ability to save KeyTweak remappings as files and MRU list. v2.3.0 -- 1/9/09 Updated to support Windows Vista and Windows 7 UAC. Bug fix: WWW Home key mapping fixed. Bug fix: Disabled keys read from .ktw files now interpreted correctly.
Introduction
KeyTweak is a simple utility that allows users to redefine their keyboard input signals. The functionality is made possible by a registry value first documented in Windows 2000, but also present in Windows NT 4.0. and included in XP, Vista and Windows 7. This section lists some of KeyTweaks features and reasons you may want to use KeyTweak.
Features
Simple interface Ability to Teach remapping by pressing the keys to be remapped Easy-to-read lists of all current and pending re-mappings Implementation of Specialty Keys support for certain keyboards Remove all re-mappings with a single button Enable/disable annoying keys Displays what exactly is written to the Scancode Map registry value and how to interpret its binary data User warnings help ensure Ctrl-Alt-Delete sequence is maintained
Limitations
Keytweak cannot combine keystrokes. You cannot merge Ctrl+Alt+Del into a single key for example, nor can you map Alt+num key sequences into a single key. The reason for this is because each keystroke generates a scancode and multiple scancodes are typically combined into a single keycode by the keyboard
processor. The keycode combinations take place downstream of KeyTweaks functionality. Keytweak cannot affect the Fn key of most laptops. This because the Fn key itself does not generate a scancode, but rather modifies the scancode of other keys on the keyboard. The scancode modifications take place upstream of KeyTweaks functionality. The Pause/Break key cannot be remapped. This special key generates a 3-byte scancode, but the Scancode Map registry entry only allows for the remapping of 2-byte scancodes. KeyTweak edits are global. That is, you cant specify user-specific, applicationspecific, or keyboard-specific remappings. The remapping affects all users, all applications, and all keyboards and all users on the machine. Note that some games may perform their own keyboard remapping. These could supersede or be applied in addition to KeyTweak remappings. Rebooting is required. The remapping is read by the operating system upon start up. Any change to the remapping will require a reboot.
Getting Started
System Requirements
KeyTweak supports the following operating systems: Windows NT 4.0, Windows 2000, Windows XP, Windows Server 2003, Windows Vista, Windows Server 2008, and Windows 7. Because KeyTweak performs a write operation to a protected area of the registry, Vista and Windows 7 UAC will request elevated permissions.
Installation Notes
Installation is made simple with Nullsofts Software Installation System (NSIS). Just run KeyTweak_install.exe and choose a directory to install KeyTweak. Once
installed, you can copy the KeyTweak.exe file onto a floppy and run it right from there. Even though this is a VB6 app, you can use it like a stand-alone executable because the only .dlls used are those that are distributed with Windows. Really, the whole installation bit is for the sake of this manual and to make it easy to clean up your computer if you want to uninstall. To uninstall, simply run the uninstall.exe file that is located in the same directory as KeyTweak.exe or just use the shortcut from your Start Menu.
Using KeyTweak
The goal of this program is to make remapping keys easy and manageable. The main form is laid out into three main areas corresponding roughly to the upper, middle, and bottom third of the screen. These areas are the Informational Area, Key Selection Area, and Keyboard Controls Area. Additionally, there are two teach modes that provide alternative means to remapping your keyboard. The File menu supports saving and reloading remappings to/from .ktw files.
Informational area
Informational Area
When KeyTweak starts, it reads a certain value from your computers registry so that it can display what, if any, key remappings are in place. Any remappings found are displayed in the listbox with the caption Remapped Keys currently in effect. This is probably the first place you should look if you have been using KeyTweak before. The next button, Restore All Defaults, is sort of a panic button and will immediately revert your keyboard back its default configuration. I know this isnt really an informational control, but it seems appropriate to put this button near the area that
could cause you to panic. Essentially, this button deletes the Scancode Map registry value, eliminating all remappings. Below that button is another button called Show Me The Raw Map. This button will pop up a window displaying the raw data in your registry value along with a translation of the hex values. This information is only for the curious and is not needed for normal operation of KeyTweak. Finally to right side of the Informational Area is a Warning Label. The Warning Label only appears if your keyboard is in a potentially dangerous configuration. That is to say, you have remapped away you Ctrl, Alt, or Delete Key(s) and you may not be able to log into the system correctly. KeyTweak will pop up warning message boxes if you attempt to Apply a dangerous configuration, or if a dangerous configuration is detected upon starting KeyTweak. KeyTweak will eventually let you make such a configuration change, but you do so at your own risk. My recommendation is that if you ever see the Warning Label, you should click the Restore All Defaults panic button and then restart your machine. After reading what key remappings are currently in effect, you may want to add, change, or delete a remapping. There are two ways to do that through Key Selection Area or through the Teach Mode in the Keyboard Controls Area.
key to represent. The dropdown box contains all the possible selections for remapping. When you have selected one that you like, click the Remap Key button. This will add an item to the list of Pending Changes. If you would like to restore the default behavior for your selected key, just click Restore Default. Likewise if you would like to enable or disable the key, click the Disable (Enable) Key button. For these two buttons, you dont need to select anything from the dropdown box. Like the Remap Key button, these buttons will also update the list of Pending Changes. Once you have at least one pending change, the Apply and Clear All buttons will become enabled appear underneath the list of Pending Changes. If you select a single item from the list of Pending Changes, the Clear button will also become enabled. The Apply button is used to write the list of changes to the registry. The Clear button will remove a change from the list. The Clear All button will remove all changes from the list. When you press the Apply button, KeyTweak will check to see if any of your submissions could be considered Dangerous as defined above. If so, KeyTweak will force you to confirm your action. Once the registry is written, KeyTweak will ask you if you would like to restart your computer to load the changes. If you choose not to restart, youll get another suggestion to restart KeyTweak to re-read the registry and refresh the Informational Area.
Other Information
Recommended Reading
Key Support, Keyboard Scan Codes, and Windows http://www.microsoft.com/whdc/archive/scancode.mspx Scan Code Mapper for Windows http://www.microsoft.com/whdc/archive/w2kscan-map.mspx Keyboard Scan Codes: Set 1 http://www.computer-engineering.org/ps2keyboard/scancodes1.html
Licensing
KeyTweak Keyboard Remapper Copyright 2003-2009 by Travis Krumsick <[email protected]>. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Thank You
I very much appreciate the emails Ive received over the years describing your experiences with KeyTweak as well as bug fixes and feature requests. Its the first freeware application Ive ever written and was surprised that the broad reception it has received. If KeyTweak has increased your productivity or has saved you from buying a new keyboard, donations are happily accepted via PayPal via the link below. https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2351203