Re: how to get selected text?
Posted: Sat Nov 18, 2017 3:22 pm
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.
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.