| File | Date | Author | Commit |
|---|---|---|---|
| .gitignore | 2026-03-13 |
|
[496d42] Initial commit |
| LICENSE | 2026-03-13 |
|
[d5514b] Update LICENSE |
| README.md | 2026-03-13 |
|
[89667c] Update README.md |
| build.bat | 2026-03-13 |
|
[590207] Add files via upload |
| icon.png | 2026-03-13 |
|
[590207] Add files via upload |
| icon16.ico | 2026-03-13 |
|
[590207] Add files via upload |
| icon32.ico | 2026-03-13 |
|
[590207] Add files via upload |
| keyblock.c | 2026-03-13 |
|
[590207] Add files via upload |
| keyblock.h | 2026-03-13 |
|
[590207] Add files via upload |
| resource.h | 2026-03-13 |
|
[590207] Add files via upload |
| resource.rc | 2026-03-13 |
|
[590207] Add files via upload |
Copyright © 2025 Pavel Bashkardin
Keyboard Blocker is a small Windows utility that completely blocks keyboard input. It runs in the background with an icon in the system tray (near the clock).
The program uses a low‑level keyboard hook (WH_KEYBOARD_LL) to intercept and discard all keyboard messages. It is intended for situations where you want to prevent a child (or anyone) from accidentally pressing keys while watching a video.
windres (resource compiler) and objdump (usually included).The provided build script assumes the compiler is installed at:
C:\Program Files (x86)\Embarcadero\Dev-Cpp\TDM-GCC-64\bin
If your compiler is located elsewhere, edit the set PATH= line in build.bat.
Simply double‑click build.bat or run it from the command prompt.
The script will:
resource.rc) into resource.o.keyblock.c) into keyblock.o.keyblock.exe with optimizations for small size.After a successful build you will find keyblock.exe in the same folder.
keyblock.exe once – the keyboard becomes blocked.The program is designed to be as unobtrusive as possible: no windows, only a tray icon and occasional balloons.
This project is licensed under the MIT License – see the license in the source files for details. In short, you may use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the software, provided that the copyright notice and permission notice appear in all copies.
Pavel Bashkardin
For questions or suggestions, feel free to contact the author via GitHub or e-mail