Skip to content
This repository was archived by the owner on Apr 24, 2025. It is now read-only.

Commit 2991018

Browse files
committed
moves mouse every ten seonds to keep apps active
1 parent a392744 commit 2991018

2 files changed

Lines changed: 23 additions & 0 deletions

File tree

projects/looking-busy/look_busy.py

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import time
2+
import pyautogui
3+
4+
5+
def make_busy():
6+
"""Moves mouse every 10 seconds to keep apps active
7+
Args:
8+
None
9+
Returns:
10+
None
11+
"""
12+
print('Press CTRL-C to quit.')
13+
try:
14+
while True:
15+
pyautogui.moveRel(5, 0, 0.5)
16+
pyautogui.moveRel(-5, 0, 0.5)
17+
time.sleep(10)
18+
except KeyboardInterrupt:
19+
print('Process has quit...')
20+
21+
22+
if __name__ == "__main__":
23+
make_busy()

projects/looking-busy/requirements.txt

Whitespace-only changes.

0 commit comments

Comments
 (0)