This Python script is designed to prevent your computer from going into standby mode by simulating key presses at regular intervals. This can be useful in situations where you need your computer to remain awake for a prolonged period of time, such as when running long-running tasks or processes.
- Python 3.x
- pyautogui library
- Ensure you have Python 3.x installed on your system. If not, you can download and install it from the official Python website: https://www.python.org/downloads/
- Install the pyautogui library by running the following command in your terminal or command prompt:
pip install pyautogui
- Clone or download this repository to your local machine.
- Open a terminal or command prompt and navigate to the directory where the script is located.
- Run the script using the following command: python auto-clicker.py <idle_time_seconds>
Replace <idle_time_seconds>
with the desired idle time in seconds before a key press is simulated. For example, to prevent standby for 5 minutes (300 seconds), you would run:
python auto-clicker.py 300
- The script will start running and simulate key presses at regular intervals to prevent your computer from going into standby mode. You can stop the script manually when you no longer need to prevent standby.
- Ensure that your system allows Python scripts to simulate key presses, as some operating systems or security settings may restrict this functionality.
- Use this script responsibly and only for its intended purpose.
If you find any issues or have suggestions for improvements, feel free to open an issue or submit a pull request.
This script is licensed under the MIT License. See the LICENSE file for more details License
If you find my work helpful and want to support me, you can buy me a coffee! Click the button below to make a donation via PayPal.
Every donation is greatly appreciated and helps me to keep developing this project!