Disable/Enable mouse and keyboard with a hotkey on Windows
- You love cats.
- Cats love your keyboard.
- You want cats on your keyboard but you don't want them to accidentally press every key combination possible.
- Capture global hotkey with keyboard module.
- Disable/Enable mouse and keyboard with ctypes (windll).
- Run with administrator privilege (Important).
- Press the hotkey that you want to use (just press, don't type).
- Loop:
- Press hotkey to disable.
- Press hotkey to enable.
- Close manually.
This is for Windows only. There are scripts for Unix / macOS online.