I think you need to break it:
- Detect when the mouse moves or soars.
- Double click
For 1, I would look at: capturing WM_MOUSEMOVE if you want your own definition of "freeze". For example, having a larger threshold for how much movement you will endure and still consider it to be βstuckβ. Or you can use the set OS threshold and look for WM_MOUSEHOVER
For 2, SendInput should get there
I assume that in fact you do not care about what is under your arm. As with the case, you are not going to do other behavior depending on what is under your arm. For example, you send a double click when you hover over the header and also hang over the file.
This project article creates a Spy ++ style application that should help.
source share