本文介紹了使用 Python 2.6 設置全局熱鍵的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!
問題描述
我想在 python 2.6 中設置一個全局熱鍵來監聽鍵盤快捷鍵 ctrl + D 或 ctrl+ alt+ D 在 windows 上,請幫幫我
I wanna setup a global hotkey in python 2.6 that listens to the keyboard shortcut ctrl + D or ctrl+ alt+ D on windows, please help me
推薦答案
Tim Golden 的 python/win32 site 是在 python 中進行 win32 相關編程的有用資源.特別是,這個例子應該會有所幫助:
Tim Golden's python/win32 site is a useful resource for win32 related programming in python. In particular, this example should help:
- 捕捉系統范圍的熱鍵
這篇關于使用 Python 2.6 設置全局熱鍵的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!
【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!