Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: Multiple key deactivation via Regedit

15 Jun 2015   #1

Win 7 Prof. 64 bit
Multiple key deactivation via Regedit

I want to deactivate my Windows Key AND my Caps Lock key.
I figured out how to do both, but not how to do both at the same time, since both needs to be done via an entry in the same registry file, namely "Scancode Map" in HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout.
Is it possible, to put both deactivation codes in the SAME Scancode Map file?
If yes, how? Im a bit lost here..
Thanks in advance.

My System SpecsSystem Spec
15 Jun 2015   #2
Layback Bear

Windows 10 Pro. 64/ version 1709 Windows 7 Pro/64

I really don't know how to do what you want to do.

Your not lost I'm lost. I trying to figure out why one would want to do such a thing.
My System SpecsSystem Spec
15 Jun 2015   #3

Windows 7 Ultimate x64 SP1

Use AutoHotKey for what you are trying?

From Remapping Keys and Buttons
This would be the remap you are looking for.
RWin::Return ---- Disables the right Windows key by having it simply return.
Same page further down
Remapping via the Registry's "Scancode Map"

  • Registry remapping is generally more pure and effective than AutoHotkey's remapping. For example, it works in a broader variety of games, it has no known alt-tab issues, and it is capable of firing AutoHotkey's hook hotkeys (whereas AutoHotkey's remapping requires a workaround).
  • If you choose to make the registry entries manually (explained below), absolutely no external software is needed to remap your keyboard. Even if you use KeyTweak to make the registry entries for you, KeyTweak does not need to stay running all the time (unlike AutoHotkey).
  • Registry remapping is relatively permanent: a reboot is required to undo the changes or put new ones into effect.
  • Its effect is global: it cannot create remappings specific to a particular user, application, or locale.
  • It cannot send keystrokes that are modified by Shift, Control, Alt, or AltGr. For example, it cannot remap a lowercase character to an uppercase one.
  • It supports only the keyboard (AutoHotkey has mouse remapping and some limited joystick remapping).
How to Apply Changes to the Registry: There are at least two methods to remap keys via the registry:
  1. Use a program like KeyTweak (freeware) to visually remap your keys. It will change the registry for you.
  2. Remap keys manually by creating a .reg file (plain text) and loading it into the registry. This is demonstrated at
My System SpecsSystem Spec

15 Jun 2015   #4

Win 7 Prof. 64 bit

@Layback: Both keys bring absolutely no benefit to me. Theyre just in the way when it comes to gaming or anything else as well.

@GOKAY: There is no other way to achieve this? No manual way? I really dont like using 3rd party programs for such things.
My System SpecsSystem Spec
15 Jun 2015   #5

win 7 64 bit

hi well you could always remove the keys off the keyboard so they are not in your way. but i would not do that to my keyboard.
My System SpecsSystem Spec
16 Jun 2015   #6

Windows 10 Pro X64

Export each key before and after making the change. Merge them into Enable and Disable .reg files. Have

Windows Registry Editor Version 5.00

once at the top of each .reg file. Double click on each to merge the registry changes into your registry.

I'd recommend creating a System Restore point first before playing with this, just in case something goes wrong.
My System SpecsSystem Spec
17 Jun 2015   #7

Win 7 Prof. 64 bit

Thanks for all the help. I shouldve mentioned that im an absolute scrub with those things, i just copy/pasted from the internets what i mentioned in the first post.
Therefore i dont even know how to export a key or how to merge them into the registry, Ztruker.
My System SpecsSystem Spec
17 Jun 2015   #8

Windows 10 Pro X64

It's real easy to trash a system when messing with the registry.

Your best bet is to use Autohotkey as suggested. As far as 3rd party, your game is 3rd party, all programs except the OS are 3rd party so I don't understand the hesitation, especially on su8ch a well known and oft used program. Better than messing with the registry.
My System SpecsSystem Spec
17 Jun 2015   #9
Layback Bear

Windows 10 Pro. 64/ version 1709 Windows 7 Pro/64

I would not use the registry to make such changes either.
No third party programs is fine.

My suggest is simple because I'm simple.

All of us that use a keyboard have to do something. We train our fingers and thumbs what to hit and what not to hit on the keyboard. If you don't want those keys to do anything just don't tick on them.

Their are several keys on a keyboard that I don't use so I just don't hit them. Just old fashion practice while gaming or typing should solve your problem.
My System SpecsSystem Spec
17 Jun 2015   #10

W7 Pro SP1 64bit

Quote   Quote: Originally Posted by Layback Bear View Post
...Just old fashion practice while gaming or typing should solve your problem.
I disabled Shift+Delete to break me of a decades long bad habit

I did that after I first started using W7. W7 was the first OS where I have trouble telling which folder is in focus/selected within Windows Explorer. (The one in Explorer's left navigation pane or Explorer's right pane.) I wanted to permanently delete one tiny folder from the right pane. I hit Shift+Delete and 30GB of files were removed from the SSD in a matter of seconds because the parent folder was in focus in the left navigation pane. :-(

Fortunately, I had several backups

Also (perhaps not in the context of this thread), I have disabled Ctrl+A for some elderly users that no longer have good control of each finger and their hands shake a bit. When they typed a capital A, they sometimes touched the Ctrl key also. The next key press wiped out all that they had typed. It took me quite a while to figure out what they were doing (and they had no clue). They were typing cooking recipes into documents. They stare at the recipe cards, not the monitor or the keyboard. (They have been typing that way for longer than I've been alive... and I'm old.) They did not see their error until they had typed many more lines of info. At that point, not even Ctrl+Z was of any use.

:::I now return you to your normally scheduled programming:::
My System SpecsSystem Spec

 Multiple key deactivation via Regedit

Thread Tools

Similar help and support threads
Thread Forum
Windows 7 Home Premium Deactivation Question
Hi guys, I bought a copy of Windows 7 Home Premium LCP for OEM Software from Amazon for use with Bootcamp on my Mac. I only used it a few times and then uninstalled it. Someone in work wants to run it on their Mac at home (different model than mine) and I said I would give him my disk. ...
Windows Updates & Activation
Unable to activate Windows Search after sudden self-deactivation
Ok I've been trying to find a solution for 3 days now. I've ggogled a lot but only found the standard ways but nothing helps. The problem at hand is this: I'd been using Windows Search (in the explorer upper right corner and start menu) often and intensely. After a session of using CCleaner and...
General Discussion
Help with regedit
Hi there, I am just experimenting and trying to create a batch file that runs on start-up; just a message that pops up with "hi" sort of thing. The problem I am having is trying to get it to run on start up. I can do it with one computer running Win7 Pro but not with my Win7 Home that...
General Discussion
deactivation windows 7 & Office 10 keys?
I will be receiving my new hard drive tomorrow and I wish to install my Windows 7 Pro on it. I will be uninstalling Win7 from my old hard drive and returning it to NewEgg. Do I need to do anything to to Win 7 & Office prior to uninstalling so I won't have any issues with reusing the same keys...
Windows Updates & Activation
Deactivation of win 7 build 7048
I got x64 of build 7048 installed. Then got all my programs installed after that. Before I installed my programs, I activated windows. Everything installed just fine, no problems. So I leave for awhile about an hour, click on system and again, did the same thing when I had x64 of 7000 installed....
General Discussion

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 14:09.
Twitter Facebook Google+