How to use Global Hook

江枫思渺然 提交于 2019-12-12 01:35:13

问题


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.



来源:https://stackoverflow.com/questions/2079111/how-to-use-global-hook

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!