2024-04-18 21:26:27 发布
网友
我正在考虑编写一个脚本,它将在我的计算机后台运行,它将检测启动特定任务的组合键。你知道吗
例如,用户按Ctrl+Alt+F1,然后浏览器启动。但是,当脚本在后台运行时,我似乎找不到检测这些组合的方法。你知道吗
我曾想过为我的脚本使用.pyw扩展名,但这使得脚本无法交互。你知道吗
如果有人需要知道,我的操作系统是windows10。你知道吗
我认为^{}库就是您想要的:
The pyHook package provides callbacks for global mouse and keyboard events in Windows. Python applications register event handlers for user input events such as left mouse down, left mouse up, key down, etc. and set the keyboard and/or mouse hook.
我认为^{} 库就是您想要的:
相关问题 更多 >
编程相关推荐