本文介紹了使用 Python 2.6 設(shè)置全局熱鍵的處理方法,對(duì)大家解決問題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!
問題描述
我想在 python 2.6 中設(shè)置一個(gè)全局熱鍵來監(jiān)聽鍵盤快捷鍵 ctrl + D 或 ctrl+ alt+ D 在 windows 上,請(qǐng)幫幫我
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 中進(jìn)行 win32 相關(guān)編程的有用資源.特別是,這個(gè)例子應(yīng)該會(huì)有所幫助:
Tim Golden's python/win32 site is a useful resource for win32 related programming in python. In particular, this example should help:
- 捕捉系統(tǒng)范圍的熱鍵
這篇關(guān)于使用 Python 2.6 設(shè)置全局熱鍵的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!
【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請(qǐng)聯(lián)系我們刪除處理,感謝您的支持!