How to grab selected text in a window
Posted on 2004-04-21
Is it possible to get selected text from a window without sending it to the clipboard using the keystrokes Ctrl + C?
What I do at the moment, is that I react on the mouse event WM_LBUTTONUP in windows/controls with classnames that I list in my Delphi program. At the moment of the Mouse Up Event, I also know the handle of that window/control. I send Ctrl + C to that window, but my question is: Is there another way, can the selected text be acquired with for instance the Windows messaging methods, or by other means, not including the clipboard?