Keylock.py is a lightweight utility designed to lock and secure your keyboard, providing a quick way to prevent unwanted input. Whether you need to step away from your computer or want to prevent accidental keypresses during presentations or media playback, this tool offers a convenient solution. It also features a quick escape mechanism: pressing the spacebar five times rapidly will unlock the keyboard and terminate the program.
This utility is especially useful for:
- Preventing unauthorized or accidental use of your computer.
- Pausing input while displaying content on screen.
- Temporarily disabling the keyboard in shared environments.
- Navigate to the repository page and click the green Code button.
- Select Download ZIP from the dropdown menu.
- Save the ZIP file to your desired location on your computer.
-
Extract the ZIP file:
- Right-click the downloaded ZIP file and select Extract All (Windows).
- Choose a folder where you want to extract the files and click Extract.
-
Run the Program:
- Open the extracted folder and locate the
keylock.py
file. - Double-click on
keylock.py
to run the program.
- Open the extracted folder and locate the
Note: This program requires administrator privileges to function. When prompted, grant the required permissions to continue.
- This program is designed to run on Windows.
- Ensure Python 3.x is installed on your computer.
- If Python is not installed, download it from the Python website and follow the installation instructions.
When stepping away from your computer, running Keylock.py locks the keyboard, ensuring no accidental or unauthorized input occurs.
- Example: You’re working in an open-plan office and need to step out for a coffee break. Running this script secures your computer by locking the keyboard.
Prevent interruptions during a presentation by locking the keyboard. The program allows you to maintain focus without worrying about accidental keypresses.
- Example: You’re displaying a video or slides and want to ensure no one accidentally disrupts the presentation by typing.
To terminate the program, press the spacebar five times rapidly. This will immediately unlock the keyboard, close any windows opened by the script, and end the process.
- Example: You’ve locked the keyboard but now need to regain control. Use the quick escape mechanism to terminate the script and unlock the keyboard.
- Program Updates: This repository may be updated at any time. Updates could introduce new features, fix bugs, or modify existing functionality. Users should regularly check for new versions.
- README Accuracy: Changes to the codebase may render this README outdated. Users should refer to the latest version of the code for accurate information.
- Responsibility Disclaimer: This program is provided "as is," and its functionality depends on the user's system configuration. It is recommended to use this program responsibly and in appropriate contexts.
Enjoy using Keylock.py as a handy utility for locking and securing your keyboard!