开发者

Getting mouse events

I'm working in C# and would like to get all the mouse events. What is the best why to do so. I tried:

SetWindowsHookEx(WH_MOUSE_LL, pro开发者_开发问答c,
                GetModuleHandle(curModule.ModuleName), 0);

I couldn't make it to work and it's limited to a single module, and I would like to get all the mouse events.


You want to do a Global Hook. Here's a code project article about doing that:
http://www.codeproject.com/KB/cs/globalhook.aspx

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜