简体   繁体   English

如何使用Global Hook

[英]How to use Global Hook

I tried using global hook, and when I typed in using gma.System.Windows; 我尝试使用全局挂钩,当我using gma.System.Windows;键入时using gma.System.Windows; it did not recognize gma? 它不识别GMA? What do I need to do? 我需要做什么?

It looks like you may be using code from this CodeProject article . 看来您可能正在使用此CodeProject文章中的代码 You need to reference the assembly / source code from that article. 您需要参考该文章中的程序集/源代码。 Also, you need to type Gma. 另外,您需要键入Gma. rather than gma. 而不是gma. -- C# is case sensitive. -C#区分大小写。

If you want to stay inside the C# world, you are restricted to low-level hooks only. 如果您想留在C#世界中,则只能使用低级钩子。 There is some code here and here . 这里这里都有一些代码。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM