Page 1 of 1

Re: how to get selected text?

Posted: Sat Nov 18, 2017 3:22 pm
by salvadordf
Hi,

Try the TChromium.ClipboardCopy function and read the clipboard text.

If you prefer to use a DOM visitor then open the DOMVisitor demo and modify the DOMVisitor_OnDocAvailable function inside the DPR file to send document.SelectionAsText instead of document.Title.

Re: how to get selected text?

Posted: Wed Jan 31, 2018 3:27 pm
by salvadordf
Hi,

I just modified he DOMVisitor demo and now it adds the selected text to the debug.log file when you click the "Visit DOM" button.

Please, download CEF4Delphi and try the DOMVisitor demo.