Answer the question
In order to leave comments, you need to log in
How to extract data from response?
There is a code
from pyautogui import *
while True:
print (locateOnScreen('111.png', region = (205, 358, 50, 35)))
print (locateOnScreen('111.png', region = (205, 358, 50, 35)))
Answer the question
In order to leave comments, you need to log in
It gives me the answer
Box(left=205, top=358, width=3, height=2)
And here is the question itself, for example, Left=205 Write to a variable, for example X
rect = locateOnScreen('111.png', region = (205, 358, 50, 35))
x = rect.left
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question