应该有能判断热键是否在被监听的函数吧,判断失效了再重新注册一个就行了
chatgpt答:
touchpad_flag = "ctrl+alt+t" hotkey = keyboard.add_hotkey(touchpad_flag, reverse_touchpad) # 检查热键是否还在监听中 if hotkey.is_alive(): print("Hotkey is currently listening.")else: print("Hotkey is not listening.")
时段 | 个数 |
---|---|
{{f.startingTime}}点 - {{f.endTime}}点 | {{f.fileCount}} |