-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmouse_roller.py
More file actions
32 lines (29 loc) · 893 Bytes
/
mouse_roller.py
File metadata and controls
32 lines (29 loc) · 893 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import pyautogui as screen
import random, time
screen.FAILSAFE = False
x, y = screen.size()
while True:
for i in range(45): # collection of numbers from 0 to 9
x1 = random.randint(0, x)
y1 = random.randint(0, y)
screen.moveTo(x1, y1) ; time.sleep(40)
screen.click(int(x/2), y-30); time.sleep(40)
'''
>>> screenWidth, screenHeight = screen.size()
>>> screenWidth, screenHeight
(1920, 1080)
screen.click(int(x/2), y-30)
screen.click(x-180, 25) # Acc. manager
screen.click(x-180, 205) #
screen.click(x-180, 235) # Available button
------------------
x, y = screen.size()
#while True:
for i in range(min): # collection of numbers from 0 to 9
min_left=min-i
print(min_left ," Minutes Left")
x1 = random.randint(0, x)
y1 = random.randint(0, y)
screen.moveTo(x1, y1); time.sleep(30)
screen.click(int(x/2), y-30); time.sleep(30)
'''