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 trigger TChromium.OnProcessMessageReceived

Post Reply
User avatar
agofpos1
Posts: 2
Joined: Sun Feb 13, 2022 7:02 am

How to trigger TChromium.OnProcessMessageReceived

Post by agofpos1 »

I am trying to debug the code inside TChromium.OnProcessMessageReceived event but I'm not sure how to trigger it. I tried executing JS codes like alert("test") but no avail.
User avatar
salvadordf
Posts: 4580
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: How to trigger TChromium.OnProcessMessageReceived

Post by salvadordf »

Hi,

That event is triggered after a TFrame.SendProcessMessage call from a different process.

Read these code comments for more information :
https://github.com/salvadordf/CEF4Delphi/blob/ef8d9e02c138ef10b6a77a407d32d26469e285b4/demos/Delphi_VCL/JavaScript/JSExtension/uJSExtension.pas#L122
Post Reply