The change the scancode map, so the Windows-key is disabled add/update this binary value:
For those who wants to know the meaning of the above values here goes:REGEDIT4
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]
"Scancode Map"=hex:00,00,00,00,00,00,00,00,03,00,00,00,00,00,5b,e0,00,00,5c,e0,\
00,00,00,00
00,00,00,00 | Header: Version. Set to all zeroes. |
00,00,00,00 | Header: Flags. Set to all zeroes. |
03,00,00,00 | 3 entries in the map (including null entry). |
00,00,5b,e0 | Left Windows Key (0xe05b) -> Disable (0x00). |
00,00,5c,e0 | Right Windows Key (0xe05c) -> Disable (0x00). |
00,00,00,00 | Null entry. |
To also disable the Shutdown key, one would extend the Scancode Map, so it has 4 entries where the fourth entry becomes ACPI Power Key (0xe0f6) -> Disable (0x00):
Note it is also possible to map the the Shutdown keyboard key to become Sleep shortcut by going to Control Panel -> Power Options -> Advanced Tab.REGEDIT4
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]
"Scancode Map"=hex:00,00,00,00,00,00,00,00,04,00,00,00,00,00,5b,e0,00,00,5c,e0,\
00,00,f6,e0,00,00,00,00
More Info KeyTweak by Travis Krumsick
More Info SharpKeys by RandyRants.com
More Info Microsoft Keyboard Layout Creator (MSKLC)
More Info Scan Code Mapper for Windows
More Info MS KB181348
More Info MS KB216893
Related Using keyboard shortcuts/hotkeys to quickly access programs
Credits Jason Tsang
Love it ... do you know how to assign multi keys to one key? EG push f10 to emulate ctl+alt+S??
Steve
Best Explanantion of scancode map and how to read the HEX values of this registry string I have found on the www.
Thanks very much.
Thanks for the info..! this can also be used for disabling print screen..!
I opened regedit and saw I don't have HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout in my Windows XP Pro. What do I do? I don't want to disable the Windows key, just replace "/" to "?".
And what about "$" ? shift+4.....I need this for a software I use in my office. I´d like to change shift+4 to other key without must to use shift. Thanks
Didn't help. We use the pop-up keyboard and when we disable the Windows key, if you press the Close button right after pressing the Windows Key, the Start Menu pops up, or if you hit the Windows key twice, it behaves as if it wasn't disabled.
Hello could you please let me know how to correct a registry for the letter "u" which on my keyboard, when typed brings an "a" letter. I suspect someone or a virus remapped my "u" letter to an "a".
Thanks a lot for your help
The registry-key "Scancode Map" does not exist by default, so just check if it exists for HKLM or HKCU. If it does, then just delete the key and restart.
Hi snakefoot , thanks for your answer. "Scancode Map" existed as I tried to correct the issue via a keymap SW, (remapping "u" to "u") I deleted it anyway as it didnt help bring back my "u", still typing "a". Also uninstalled / reinstalled keyboard drivers. That didnt help too... any ideas what could have caused this remap? Thanks!
Thanks for the info. Very tough to find this stuff online. Question for you, if you are still paying attention to these comments... how do you get the scancode Map to implement without rebooting the system? I have a kiosk that I am trying to disable the ctrl-alt-del after 5 minutes... to give someone a chance to get in if needed. I can disable all these buttons, but the reboot is not desirable.
Thanks for posting this though... really helpful.
Great, but what of I need to usw a key with a longer code, like AltGr+0, which is E0 1F 0B ???
How van I deal with that?