import pyautogui as py
x,y=py.locateCenterOnScreen(r"C:\Users\vivek-kumar-singh\Desktop\python\Sonata\Start001.PNG")
py.click(x,y)
当我运行此代码时,有时它会正常工作,但有时它会出错:
return Point(coords[0] + int(coords[2] / 2), coords[1] + int(coords[3] / 2))
TypeError: 'NoneType' object is not subscriptable
目前没有回答
相关问题 更多 >
编程相关推荐