(WARNING:This works, but it seems that Punkbuster detects AutoHotKey running and assumes you are using it to create cheat macros. What a bunch of dicks)
Using a free utility called AutoHotkey I got the remapping to work. You can download it from here:
*and/or* just download the following script and .exe I created I don't think you need to download the full program if you just use the compiled version in the attachment.
In the zip file is the Autohotkey script to remap the key, and "GraveRemap.exe". Just run that before you run BF3, or add it to your Windows startup and it should take care of things. It's also possible to make it work *only* when BF is running. I'm not going to bother writing it to do that though unless someone actually needs it. You can always just close the program to "undo" the change.
(WARNING - While the following idea is good, it doesn't work in Battlefield)
I'm keeping this method here for interest even though it doesn't work in BF3
I finally got fed up with hitting the grave key and opening the Battlefield console whenever I tried to switch to my primary weapon (1) in Battlefield, so I worked out how to remap the key instead.
The attached file has two .reg files. Grave-kill.reg and Grave-restore.reg
- Grave-kill.reg will create a scancode mapping to change the Grave/Tilde key to be the same as the 1 key so if I do hit it by mistake, it will still switch to primary weapon anyway. Unfortunately you need to restart Windows after making the change for it to take effect.
- Grave-Restore.reg will delete the key and restore it back to normal function. Again a restart is required to take effect.
- Always change back using "grave-restore" and reboot
- Use the Windows "on-screen" keyboard (press your Windows key and start typing "keyboard")
- Use the ALT and number pad keys (Hold the ALT key while typing the number using your number pad)
Alt-96 = `
Alt-126 = ~
Code: Select all
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout] "Scancode Map"=hex:00,00,00,00,00,00,00,00,02,00,00,00,02,00,29,00,00,00,00,00
Code: Select all
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout] "Scancode Map"=-
Other interesting links:
List of ALT-numpad ascii codes
RandyRants Sharpkeys utility to remap keyboard keys
An Explanation of the ScanCode map reg key on howtogeek.com