-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgui.py
More file actions
21 lines (19 loc) · 726 Bytes
/
gui.py
File metadata and controls
21 lines (19 loc) · 726 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# https://pyautogui.readthedocs.io/en/latest/quickstart.html
# open email in a tab on main screen, run this program on a monitor.
# if you have the same resolution as me, it will work
import pyautogui as gui
gui.PAUSE = 0.1
while(True):
gui.moveTo(140, 90+110, duration=0.5)
gui.click()
gui.moveTo(1330, 380+110, duration=0.5)
gui.click()
gui.typewrite("YOUREMAIL@gmail.com", interval=0.01)
gui.moveRel(0, 30, duration=0.5)
gui.doubleClick()
gui.typewrite("This is an automated message", interval=0.01)
gui.moveRel(0, 34, duration=0.5)
gui.click()
gui.typewrite("Your car's extended warranty has expired", interval=0.01)
gui.moveTo(1293, 893+110, duration=0.5)
gui.click()