Windows Hooks for global mouse detection
Hey all, I'm looking to set up a program that can detect all mouse events. I think the solution is in the windows hooks functions, however I can't find any examples on how to use these. Is there anyone who knows where I can find an example of using windows hooks to track mouse events or keyboard events?
Basically I need my program to be able to keep track of mouse coordinates once it's clicked during a certain time period. I need my program to be able to know about them and record them, even if I'm clicking in a completely different application. Hope thiks helps :)
Thanks in advance.