computer_awake
is a Python script that automates key presses at a specified interval for a defined duration.
Follow the guidelines below to get this script up and running.
Ensure you have Python 3 and the keyboard
library installed.
-
Download and install the latest version of Python 3.
-
Clone the repository:
git clone https://github.com/matt-wigg/computer-awake.git
-
Install the
keyboard
library:pip install keyboard
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
- Fork the project.
- Create a feature branch (
git checkout -b feature/AmazingFeature
). - Commit changes (
git commit -m 'Add AmazingFeature'
). - Push the branch (
git push origin feature/AmazingFeature
). - Open a pull request.
This project is licensed under the MIT License.