c# - Getting selected item in active window -
I am using C # to develop an application that works with the clipboard, was thinking Whether it is possible to obtain its contents, the user has selected in the current window, no matter what the window (like Firefox, Notepad, etc.)
I'm not sure if you are going to get a general solution for this problem. Take a look at this link;
The authors of this post report that their solution works in Notepad, but not in WordPad or Word. I do not know much about this area, but I think it means that it means that there are many such mediums Through which the text selection function Is done - even in Windows.
I think it extends to Control-C. Just text selection I believe that copy order based on context different There are ways.
For example, if you press Control-C on the dialog box in Windows, then it will copy without text, you must select it manually.
Hopefully the links above are of some use to you
Edit Remind:
Speak Soon - Just got this link;
It seems That's what it really is after you - hope that works.
Comments
Post a Comment