Следуйте коду: р>
Код: Выделить всё
import pyautogui
from PIL import Image
def locate_on_screen(image):
global x,y
try:
if pyautogui.locateOnScreen(image, confidence=0.8):
ec2 = pyautogui.locateOnScreen(image, confidence=0.8)
x, y = pyautogui.center(ec2)
return x, y
except:
pass
x, y = locate_on_screen('life.png')
print(x,y)
answer2 = pyautogui.screenshot('answer2.png', region=(x+80, y-10, 80, 19))
Я уже установил все модули и зависимости перед сборкой .exe, приложение открывается правильно, также проверено, есть ли APP (
Код: Выделить всё
.exeМожет кто-нибудь помочь мне разобраться, что происходит?
Подробнее здесь: https://stackoverflow.com/questions/790 ... ted-to-exe