标签: python keyboard
我正在尝试使用PyUserinput库的pykeyboard模块来轻按例如f7,而无需按fn按钮。但是,当我运行代码beneth时,它会模拟点击fn + f7。我怎样才能选出f7?
PyUserinput
pykeyboard
from pykeyboard import PyKeyboard k = PyKeyboard() k.tap_key(k.function_keys[7]) if True: sleep(1) k.release_key(k.function_keys[7])