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.