Skip to content

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.

License

Notifications You must be signed in to change notification settings

igino-dedomenico/auto-click

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Prevent Standby Script

Introduction

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.

Requirements

  • Python 3.x
  • pyautogui library

Installation

  1. 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/
  2. Install the pyautogui library by running the following command in your terminal or command prompt: pip install pyautogui

Usage

  1. Clone or download this repository to your local machine.
  2. Open a terminal or command prompt and navigate to the directory where the script is located.
  3. 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

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

Notes

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

Contributing

If you find any issues or have suggestions for improvements, feel free to open an issue or submit a pull request.

License

This script is licensed under the MIT License. See the LICENSE file for more details License

Security

Security Policy

Support Me

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!

About

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.

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Languages