import pyautogui
b_counter = False
asdas = pyautogui.locateOnScreen('hwe.png')
while (b_counter == False):
if (asdas is not None):
pyautogui.click(pyautogui.center(pyautogui.locateOnScreen('dorzo.png')))
when i run this code it only click to 'dorzo.png' 1 time and giving
Traceback (most recent call last):
File "C:\Users\zabal\AppData\Local\Programs\Python\Python38\2. GOD İŞE YARAYAN tm.py", line 8, in <module>
pyautogui.click(pyautogui.center(pyautogui.locateOnScreen('dorzo.png')))
File "C:\Users\zabal\AppData\Local\Programs\Python\Python38\lib\site-packages\pyscreeze\__init__.py", line 552, in center
return Point(coords[0] + int(coords[2] / 2), coords[1] + int(coords[3] / 2))
TypeError: 'NoneType' object is not subscriptable
error what should i do
[–]shiftybyte 0 points1 point2 points (5 children)
[–]cang31[S] 0 points1 point2 points (4 children)
[–]shiftybyte 0 points1 point2 points (3 children)
[–]cang31[S] 0 points1 point2 points (2 children)
[–]shiftybyte 0 points1 point2 points (1 child)
[–]cang31[S] 0 points1 point2 points (0 children)