Skip to content

Utility to disable the Windows key when fullscreen is detected

License

Notifications You must be signed in to change notification settings

d0gkiller87/WinKeyDisabler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A utility to disable the Windows key when fullscreen is detected, while supporting combination keys (e.g., Win+Space).


✨Tray Icon Context Menu

🔧Installation

Note

Download the latest builds from GitHub Releases

How It Works

  1. The program uses SetWindowsHookEx to hook low-level keyboard inputs globally, without injecting DLLs into every process.
  2. It calls SHQueryUserNotificationState every second (interval is currently hardcoded) to check if the user is in fullscreen.
  3. When a Windows key down event is detected, the program blocks the input and enters the winKeyPressed state.
  4. If any key is pressed while in the winKeyPressed state, the program replays the Windows key down event using SendInput to prevent key combinations from breaking. (Win+D (i.e. minimize all Windows) is disabled for now for obvious reasons)
  5. When the Windows key up event is received, the winKeyPressed state is reset.

Will This Get Me Banned?

If a legitimate key-remapping AHK (AutoHotkey) script doesn't get you banned, this likely won't either.
BUT! Nothing is guaranteed! Use at your own risk!

Credits

License

This project is licensed under the MIT License. Review LICENSE for furthur details.

About

Utility to disable the Windows key when fullscreen is detected

Resources

License

Stars

Watchers

Forks

Packages

No packages published