How to turn off the following shortcuts
win + h
win + c
win + k
They are really annoying when I accidentally press the wrong one

I'm not trying to modify these shortcut keys to third-party software, like this , I just want to ban them completely, and only ban these three.

According to the instructions here, modifying the registry seems to have no effect, and my attempts in another question also tell me that the modified registry will be invalid after restarting the computer.

2 Answers 2


You may use the free AutoHotkey.

The following script will nullify the keys system-wide:


After installing AutoHotKey, put the above text in a .ahk file and double-click it to test. You may stop the script by right-click on the green H icon in the traybar and choosing Exit. To have it run on login, place it in the Startup group at
C:\Users\USER-NAME\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup.

You may further limit the script to a specific executable by adding an #IfWinActive directive to the script.

Useful AutoHotkey documentation:


the "System Preferences" option. From the list on the left side of your screen, choose "Keyboard." In the list of settings at the top of the window, select "Shortcuts." To disable a shortcut, uncheck the box next to it in the "Shortcuts" section.

  • 1
    Can you add some screenshots, I'm a Chinese user and I can't find where those buttons you said are located
    – Kargath
    Sep 28 at 10:17
  • 1
    I'm pretty sure these instructions are for MacOS not Windows 11 :/
    – Chachmu
    Sep 28 at 19:41
  • Well, my problem is in windows11 environment
    – Kargath
    Sep 29 at 7:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.