如何检测关键preSS,而不是专注? [英] How do I detect keyPress while not focused?
本文介绍了如何检测关键preSS,而不是专注?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想检测打印屏幕
按钮preSS而形式是不是当前激活的应用程序。
I am trying to detect the Print Screen
button press while the form is not the current active application.
如何做到这一点,如果可能的话?
How to do that, if possible?
推荐答案
是的,你可以,这就是所谓的系统挂钩,看一看的全局系统钩子.NET 。
Yes you can, it's called "System hooks", take a look at Global System Hooks in .NET.
这篇关于如何检测关键preSS,而不是专注?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文