如何使用 PyAutoGUI 检测按键事件?在我的研究中,我无法在这个模型中举例:
import pyautogui
num = 0
if pyautogui.press('b'): # I know the right thing is not to use the press, but, what do I put in place?
num = 1
PyAutoGUI 中无法检测击键。您可能想尝试使用 Pynput 模块:https://pypi.org/project/pynput/ https://pypi.org/project/pynput/
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)