Witam,
Mam problem w pythonie.
position = pt.locateOnScreen("image.png", confidence=.8)
self.x = position[0] - 100
self.y = position[1] + 10
pt.moveTo(self.x, self.y, duration=speed)
print("Navigating to heart!")
time.sleep(3)
Mam taki kod, ale ciągle wyrzuca mi błąd:
self.x = position[0] - 100
TypeError: 'NoneType' object is not subscriptable
Jak to naprawić? Jakby co pt to skrót którego używam do pyautogui.