Page 1 of 1

Re: How-to call existing code in context menu ?

Posted: Sun Feb 04, 2018 10:07 pm
by salvadordf
Hi,

To get the HTML source in your code you can call TChromium.RetrieveHTML. You'll receive the source in the TChromium.OnTextResultAvailable event.

If you call TChromium.RetrieveHTML without parameters you will get the source from the main frame. In you need the source from other frames you can call TChromium.RetrieveHTML with any of these parameters :
  • A frame name
  • A frame identifier
  • A frame interface
To get the list of frame names or identifiers in a document, use TChromium.GetFrameNames or TChromium.GetFrameIdentifiers.