I’m making a form application in C# and what I need is to able to capture x,y coordinates outside of the form when the user doubleclicks. I have not been able to find anything that can help me. I’m new to C# so I might be looking for the wrong thing. Any help would be appreciated.
Thanks,
This old MSDN blog has sample code for using
WH_MOUSE_LL, a low-level mouse hook that you can use to capture mouse events in Windows. Mouse hooks do not distinguish double clicks however, you will need to do that yourself. You can useSystemInformation.DoubleClickTimeand a timer to determine if the click was a double click or not.