Multiple key deactivation via Regedit

Page 1 of 2 12 LastLast

  1. Posts : 4
    Win 7 Prof. 64 bit
       #1

    Multiple key deactivation via Regedit


    Hello.
    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 Computer


  2. Posts : 25,847
    Windows 10 Pro. 64/ version 1709 Windows 7 Pro/64
       #2

    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 Computer


  3. Posts : 5,656
    Windows 7 Ultimate x64 SP1
       #3

    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"

    Advantages:
    • 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).
    Disadvantages:
    • 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 www.autohotkey.com/forum/post-56216.html#56216
      My Computer


  4. Posts : 4
    Win 7 Prof. 64 bit
    Thread Starter
       #4

    @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 Computer


  5. Posts : 1,670
    win 10
       #5

    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 Computer


  6. Posts : 6,285
    Windows 10 Pro X64
       #6

    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 Computer


  7. Posts : 4
    Win 7 Prof. 64 bit
    Thread Starter
       #7

    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 Computer


  8. Posts : 6,285
    Windows 10 Pro X64
       #8

    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 Computer


  9. Posts : 25,847
    Windows 10 Pro. 64/ version 1709 Windows 7 Pro/64
       #9

    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 Computer


  10. Posts : 10,485
    W7 Pro SP1 64bit
       #10

    Layback Bear said:
    ...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 Computer


 
Page 1 of 2 12 LastLast

  Related Discussions
Our Sites
Site Links
About 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 08:12.
Find Us