7

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

11

You may use the free AutoHotkey.

The following script will nullify the keys system-wide:

#h::
#c::
#k::

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:

1
  • In AutoHotkey 2.0, you need to add a function body: #h::{ return } Commented Aug 19, 2023 at 21:08
-1

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.

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .