How to use Global Hook

2019-08-20 04:03发布

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?

2条回答
不美不萌又怎样
2楼-- · 2019-08-20 04:17

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.

查看更多
冷血范
3楼-- · 2019-08-20 04:23

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

查看更多
登录 后发表回答