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.
If you find these projects useful please consider becoming a sponsor with Patreon, GitHub or Liberapay.

How-to call existing code in context menu ?

Post Reply
User avatar
salvadordf
Posts: 4564
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

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

Post 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.
Post Reply