Skip to content

Commit d21dafe

Browse files
authored
Merge pull request #25 from SimonVerhoeven/master
Added a script to move the cursor every 15 seconds
2 parents 030a51a + 2c83414 commit d21dafe

File tree

3 files changed

+25
-0
lines changed

3 files changed

+25
-0
lines changed

MouseMover/MouseMover.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import win32api, win32con, time, random
2+
def click(x,y):
3+
win32api.SetCursorPos((x,y))
4+
win32api.mouse_event(win32con.MOUSEEVENTF_LEFTDOWN,x,y,0,0)
5+
win32api.mouse_event(win32con.MOUSEEVENTF_LEFTUP,x,y,0,0)
6+
7+
while True:
8+
click(random.randint(0, 100), random.randint(0,100))
9+
time.sleep(15)

MouseMover/README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
This repository consists of a list of python scripts to automate few tasks.
2+
3+
You can contribute by adding more python scripts which can be used to automate things. Some of already done are listed below.
4+
Incase you have anything to be followed while executing the python script mention it as well
5+
6+
7+
# Python Script
8+
9+
10+
## Script - Chessboard
11+
12+
Moves your mouse every 15 seconds
13+
MouseMover.py

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,6 @@ Create a star pattern pyramid
6060

6161
## Script 13 - compound interest calculator
6262
calculate compound interest
63+
64+
## Script 14 - Mouse mover
65+
Moves your mouse every 15 seconds

0 commit comments

Comments
 (0)