-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
40 lines (33 loc) · 1007 Bytes
/
main.py
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
33
34
35
36
37
38
39
40
from time import sleep
import pyautogui
import threading
import keyboard
import pyautogui as p
import threading
names = ["",""] # put names here
itr = iter(names)
itr
sleep(5)
def start():
while True:
try:
sleep(1)
cords = pyautogui.locateCenterOnScreen('search.png', confidence=0.9)
pyautogui.moveTo(cords)
pyautogui.click(cords)
sleep(1)
pyautogui.typewrite(next(itr))
sleep(1)
pyautogui.click(250,155)
sleep(1)
pyautogui.typewrite("what you investing to also?")
sleep(1)
p.press('enter')
except:
print("Try again")
# Stops the script with long press of 'S' button on your keyboard.
if keyboard.is_pressed('s'):
print("\nYou finished!")
break
threading.Thread(target=start, daemon=True).start()
input('Press Enter to exit.')