
有任何方法可以做到吗?
不用 PyQt5 也可以
1 Felldeadbird 2020 年 6 月 12 日 via iPhone 将 win 注册为全局热键,做一个空白打印? |
2 Leon6868 OP @Felldeadbird 好像不行,user32.RegisterHotKey 不能单独注册 win 键 |
3 Felldeadbird 2020 年 6 月 12 日 @Leon6868 我之前注册全局热键,是用 pyqtkeybind |
4 Leon6868 OP @Felldeadbird 还是不行,我使用“keybinder.register_hotkey(window.winId(), "Win",win)”,无法调用 |
5 ysc3839 2020 年 6 月 13 日 via Android 大概只能用 low level keyboard hook https://docs.microsoft.com/en-us/windows/win32/dxtecharts/disabling-shortcut-keys-in-games |
6 whi147 2020 年 6 月 13 日 via iPhone 写一个 cpp 的文件 c++注册键盘 hook,然后 python 调 cpp 内函数 |