-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
50 lines (46 loc) · 1.78 KB
/
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
41
42
43
44
45
46
47
48
49
50
import time
import pyautogui
print("Welcome to the PYI installer", "\u00A9", " 2024 26gbush")
print("")
print("The PYI installer uses 'pip' to install apps, and therefore is an EXTENSION of pip")
print("pyautogui is needed to install apps")
print("")
pyautoinstalled = input("do you have pyautogui installed Y/N")
if pyautoinstalled = Y
while True:
print("")
ml = input("PYI INSTALLER: ")
pyautogui.hotkey('win' , 'r')
pyautogui.typewrite('powershell')
pyautogui.press('enter')
time.sleep(2)
pyautogui.press('enter')
pyautogui.typewrite('pip install ' +ml)
pyautogui.press('enter')
time.sleep(2)
pyautogui.typewrite('press enter to exit powershell')
pyautogui.press('enter')
pyautogui.typewrite('exit')
print("")
print("If the installation did not work, check if you misspelled it.")
else
print("to install pyautogui press the Windows Key and r to open run (apart of Windows that will run what you type in)")
print("then type in powershell: pip install pyatuogui")
doneinstall = input("type Y to run the PYI installer")
if doneinstall = Y
while True:
print("")
ml = input("PYI INSTALLER: ")
pyautogui.hotkey('win' , 'r')
pyautogui.typewrite('powershell')
pyautogui.press('enter')
time.sleep(2)
pyautogui.press('enter')
pyautogui.typewrite('pip install ' +ml)
pyautogui.press('enter')
time.sleep(2)
pyautogui.typewrite('press enter to exit powershell')
pyautogui.press('enter')
pyautogui.typewrite('exit')
print("")
print("If the installation did not work, check if you misspelled it.")