How to use Global Hook

2019-08-20 04:07发布

问题:

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?

回答1:

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.



回答2:

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