Hello,
I have a text in a TMemo. I want to copy this text to "ChromiumWindow1". i.e., “copy” from “Memo1” and “paste” into “ChromiumWindow1”.
How to do it please?
thank you
Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.
Make a copy/paste
- salvadordf
- Posts: 4620
- Joined: Thu Feb 02, 2017 12:24 pm
- Location: Spain
- Contact:
Re: Make a copy/paste
Hi,
Use the SimpleBrowser2 demo as a template for your application and use JavaScript with the TChromiumCore.ExecuteJavaScript procedure :
https://stackoverflow.com/questions/7609130/set-the-default-value-of-an-input-field
Search ExecuteJavaScript in all the demos to see many examples using that procedure.
Use the SimpleBrowser2 demo as a template for your application and use JavaScript with the TChromiumCore.ExecuteJavaScript procedure :
https://stackoverflow.com/questions/7609130/set-the-default-value-of-an-input-field
Search ExecuteJavaScript in all the demos to see many examples using that procedure.
Re: Make a copy/paste
Data := Clipboard;
Data.AsText := B; //keyword
Form1.Chromium1.ClipboardPaste;
Data.AsText := B; //keyword
Form1.Chromium1.ClipboardPaste;