pip install pyautogui
python
import pyautogui
python
x, y = pyautogui.position()
python
python
python
python
python
python
image_location = pyautogui.locateOnScreen('image.png')
if image_location is not None:
x, y, width, height = image_location
else: