Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
pyautogui 和 pystray 有问题。使用 python 版本 3.6.4。 只需将两个模块导入同一个脚本并调用任何 pyautogui 函数都会产生错误。有没有解决这个问题或解决方法?我只是想使用 pyautogui 的功能并构建一个驻留在系统托盘中的程序。
import pyautogui import pystray pyautogui.moveTo(10,10)
预期 LP_POINT 实例而不是指向 POINT 的指针
我是 PyAutoGUI 的创造者。感谢您提出此问题,我已在 0.9.53 版中进行了修复以解决此问题。这可能还解决了与其他模块的兼容性问题,所以我很高兴你提出了这个问题。
详细信息是:PyAutoGUI 重新创建了自己的 POINT 结构,该结构与 ctypes.wintypes 中的相同,但由于某种原因,当另一个模块使用 ctypes.wintypes.POINT 时,这会导致问题,所以我将 PyAutoGUI 更改为使用 wintypes 之一。