在尝试安装pyobjc-core之前,脚本运行良好。由于即时通讯在Windows上,因此未成功安装。 locateCenterOnScreen可以工作,除了它将引发TypeError之后看起来像
File "C:\Users\lucie\AppData\Local\Programs\Python\Python37-32\lib\site-packages\pyscreeze\__init__.py", line 333, in locateCenterOnScreen
return center(coords)
File "C:\Users\lucie\AppData\Local\Programs\Python\Python37-32\lib\site-packages\pyscreeze\__init__.py", line 445, in center
return Point(coords[0] + int(coords[2] / 2), coords[1] + int(coords[3] / 2))
TypeError: 'NoneType' object is not subscriptable