Open pawns opened 7 months ago
https://automatetheboringstuff.com/2e/chapter20/ 中 As of version 0.9.46, PyAutoGUI’s window features work only on Windows, not on macOS or Linux. These features come from PyAutoGUI’s inclusion of the PyGetWindow module. 看起来确实不支持
mac点击 所有的按钮都报错
AttributeError: module 'pyautogui' has no attribute 'getAllWindows'
windowsList = pyautogui.getWindowsWithTitle('梦幻西游:时空') AttributeError: module 'pyautogui' has no attribute 'getWindowsWithTitle' 小白,不懂python 不知道用什么替换