python - 使用 Python 2.6 设置全局热键

标签 python keyboard wxpython hotkeys keyboard-shortcuts

我想在 python 2.6 中设置一个全局热键来监听键盘快捷键 ctrl + Dctrl+ alt+ D 在 Windows 上,请帮助我

最佳答案

蒂姆·戈登的 python/win32 site 是在 python 中进行 win32 相关编程的有用资源。特别是,此示例应该有所帮助:

关于python - 使用 Python 2.6 设置全局热键,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3337973/

相关文章:

python - 如何将字符串转换为字节

python - Python 中的大块字符串而不打断单词

iOS UIToolBar 隐藏在键盘上

macos - 是否可以以编程方式为单个键打开 Macbook Pro 的键盘背光?

python - wxPython 中的 "no matching architecture in universal wrapper"问题?

python - 如何修复来自 wxPython/wxFormBuilder 的 "memory leak of type ' wxPyXmlSubclassFactory *', no destructor found"错误?

python - 在哪里可以将保存确认页面连接到 Django 管理员? (类似删除确认)

python - python 类中的条件

keyboard - 有人让 USB 在 Raspberry Pi 2 上的 Windows IoT 中工作吗?

python - 如何在不透明区域内绘制透明部分