Skip to content

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.

Notifications You must be signed in to change notification settings

germabyte/keylock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Keylock.py

Introduction and Purpose

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.

Getting Started

Downloading the Program

  1. Navigate to the repository page and click the green Code button.
  2. Select Download ZIP from the dropdown menu.
  3. Save the ZIP file to your desired location on your computer.

Setting Up the Program

  1. 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.
  2. Run the Program:

    • Open the extracted folder and locate the keylock.py file.
    • Double-click on keylock.py to run the program.

Note: This program requires administrator privileges to function. When prompted, grant the required permissions to continue.

Prerequisites

  • 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.

Use Cases and Examples

Scenario 1: Securing Your Workstation

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.

Scenario 2: Disabling Keyboard Input During a Presentation

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.

Scenario 3: Quick Exit

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.

Disclaimers and Updates

  • 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!

About

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.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages