-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMain.py
More file actions
53 lines (38 loc) · 1.03 KB
/
Main.py
File metadata and controls
53 lines (38 loc) · 1.03 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
import threading
import msvcrt
import sys
import os
import signal
from Database.Connection import check_client_version
from GUI.Imports.GUI_Update_Client import show_update_client_gui
from GUI.Main_GUI import *
from sys import exit
from GUI.Auth_GUI import *
from API.Imaging.Image import *
from API.Setup import get_bluestacks_xy, set_bluestacks_window_size
from pynput import keyboard
# not_exit = True
import keyboard
import os
import signal
import threading
def __main__() -> int:
try:
get_bluestacks_xy()
set_bluestacks_window_size()
capture_bluestacks()
if not check_client_version():
print(f'Exiting Script_Launch...')
show_update_client_gui()
return False
# show_main_gui()
if show_auth_gui():
while should_be_running():
show_main_gui()
pass
else:
print(f'Failed to authenticate.')
except Exception as e:
print(f'Exception thrown in Main: {e}')
return 0
__main__()