https://github.com/sumitsarraf/keep-awake-bot-python
A lightweight Python script to simulate user activity by moving the cursor and pressing the Shift key at intervals. Useful for preventing system sleep or appearing active.
https://github.com/sumitsarraf/keep-awake-bot-python
afk automation keep-awake keyboard mouse productivity pyautogui python script
Last synced: 6 months ago
JSON representation
A lightweight Python script to simulate user activity by moving the cursor and pressing the Shift key at intervals. Useful for preventing system sleep or appearing active.
- Host: GitHub
- URL: https://github.com/sumitsarraf/keep-awake-bot-python
- Owner: sumitsarraf
- License: mit
- Created: 2025-04-22T12:04:14.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-04-22T12:08:30.000Z (10 months ago)
- Last Synced: 2025-04-23T15:16:42.123Z (10 months ago)
- Topics: afk, automation, keep-awake, keyboard, mouse, productivity, pyautogui, python, script
- Language: Python
- Homepage:
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 🖱️ keep-awake-bot-python is Auto Mouse Mover with Shift Key Presser
A simple Python script that periodically moves the mouse to random screen locations and simulates a **Shift key** press. Useful for preventing system sleep or appearing "active" on your machine.
## 🚀 Features
- Random mouse movement within screen bounds
- Periodic `Shift` key presses to simulate activity
- Built-in **fail-safe** to stop execution by moving the mouse to a screen corner
- Minimal dependencies and easy to run
## 🧠 Use Cases
- Keep your computer from locking or going to sleep
- Avoid status changes in communication apps (e.g., Teams, Slack)
- Simulate user activity for testing
## 🧰 Prerequisites
- Python 3.6+
- `pyautogui` library
Install dependencies with:
```bash
pip install pyautogui