Skip to content

A python script for lazy key pressing.

License

Notifications You must be signed in to change notification settings

matt-wigg/computer-awake

Repository files navigation

Computer Awake ⏰

computer_awake is a Python script that automates key presses at a specified interval for a defined duration.

📚 Table of Contents

  1. Built With
  2. Getting Started
  3. Contributing
  4. License

🏗 Built With

✅ Getting Started

Follow the guidelines below to get this script up and running.

🧾 Prerequisites

Ensure you have Python 3 and the keyboard library installed.

💻 Installation

  1. Download and install the latest version of Python 3.

  2. Clone the repository:

    git clone https://github.com/matt-wigg/computer-awake.git
  3. Install the keyboard library:

    pip install keyboard

🏁 Usage

Run the script using the following command in the project's root directory:

python computer_awake.py

or

python3 computer_awake.py

To specify command line arguments:

python computer_awake.py start --interval <interval> --run-time <run_time> [--key <key>]
  • <interval>: Time (in seconds) between key presses.
  • <run_time>: Duration (in seconds) for the script to run.
  • <key>: The key to press; defaults to "shift".

To stop the script:

CTRL + C

👏 Contributing

  1. Fork the project.
  2. Create a feature branch (git checkout -b feature/AmazingFeature).
  3. Commit changes (git commit -m 'Add AmazingFeature').
  4. Push the branch (git push origin feature/AmazingFeature).
  5. Open a pull request.

🪪 License

This project is licensed under the MIT License.