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
精彩评论