简体   繁体   中英

Using doubleclick to catch x,y coordinates outside of a form C#

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 use SystemInformation.DoubleClickTime and a timer to determine if the click was a double click or not.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM