0

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?

Jerome
  • 3
  • 3
  • 1
    Can you supply some context. Presumably you are trying to spy on some other program, or something like that. – David Heffernan Dec 14 '15 at 16:43
  • I have an application that watches the keyboard - when the user selects some text and pressed the defined keyboard sequence (in my case "CTL+T") my application sends a keyboard sequence back to the original app. I've been asked to try to make this same process work with a double-click. – Jerome Dec 14 '15 at 16:53
  • Please add the details to the question, rather than in comments. FWIW, your program will render most computers unusable. CTRL+T is a widely used shortcut. – David Heffernan Dec 14 '15 at 16:56

1 Answers1

-2

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.

AmRzA
  • 190
  • 11
  • This is a very low quality answer. It contains no information and a link to who knows what. Please edit the answer to include at the very least a summary of what we will find should we follow your link. – David Heffernan Dec 14 '15 at 16:58