简体   繁体   中英

How to use Global Hook

I tried using global hook, and when I typed in using gma.System.Windows; it did not recognize gma? What do I need to do?

It looks like you may be using code from this CodeProject article . You need to reference the assembly / source code from that article. Also, you need to type Gma. rather than gma. -- C# is case sensitive.

If you want to stay inside the C# world, you are restricted to low-level hooks only. There is some code here and here .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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