Is it possible to get the handle of the Window the user clicked (or in my case double-clicked) on?
Adding more detail:
I have an application that when launched by the user, watches for a specific hot key (CTL+SHIFT+T). When pressed, my application sends a keyboard command back to the original application (CTL-C), then takes the text from the Clipboard and logs the text.
I am attempting to extend/replace the keyboard sequence with a double-click. Is this possible?
well according to what you explained in the comment you need to get the handle of foreground window when user press "CTL+T" to do what you want and in this link it will show you how to get the handle of foreground window.