-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAutomatedInstall.py
More file actions
55 lines (46 loc) · 1.43 KB
/
Copy pathAutomatedInstall.py
File metadata and controls
55 lines (46 loc) · 1.43 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
#!/usr/bin/python3
import pyautogui
from time import sleep
pyautogui.press('win')
sleep(1)
pyautogui.write('vs')
vsicon = None
while(vsicon==None):
try:
vsicon = pyautogui.locateOnScreen('vs.png')
sleep(1)
pyautogui.click(vsicon.left,vsicon.top)
except pyautogui.ImageNotFoundException:
print("can't find image try again")
exticon = None
while(exticon==None):
try:
exticon = pyautogui.locateOnScreen('exten.png')
sleep(1)
pyautogui.click(exticon.left,exticon.top)
sleep(1)
except pyautogui.ImageNotFoundException:
print("can't find image try again")
pyautogui.write('cmake')
sleep(1)
Cmakext = None
inst1 = None
while(Cmakext==None and inst1==None):
try:
Cmaketxt = pyautogui.locateOnScreen('cmake.png')
sleep(1)
inst1 = pyautogui.locateOnScreen('ins.png')
pyautogui.click(inst1.left+10,inst1.top+5)
sleep(1)
Ctoolext = None
inst2 = None
while(Ctoolext==None and inst2==None):
try:
Ctoolext = pyautogui.locateOnScreen('ctool.png')
sleep(1)
inst2 = pyautogui.locateOnScreen('ins2.png')
pyautogui.click(inst2.left+10,inst2.top+5)
except pyautogui.ImageNotFoundException:
print("can't find image try again")
except pyautogui.ImageNotFoundException:
print("can't find image try again")