❔ how to get the current selected text from any window just like how clipboard does it?
I want to simulate Ctrl + C without pressing Ctrl + C, basically able to read any selected text from any window be it a browser, notepad or word, most solutions I found online requires me to call SendKeys to do Ctrl + C every mouse release but some programs (such as VLC media player) performs a different action if Ctrl + C is pressed, and hell, I have no idea if text is even being selected in the first place, so currently my question is, how do I simulate clipboard copy without pressing Ctrl + C?
5 Replies
Getting text from other window without the user knowing it pretty fishy. If you want your own app to have al alternate way of copying, you can set the text in the clipboard manually
im making an auto translator app for selected text, i just basically have to know what the current highlighted/selected text is
afaik copying is handled by the app in question, by it just processing the key presses, so I would guess you can't
yeah Anton is right and its the application that copies it to the clipboard, not the clipboard that takes it from the application
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.