Page 1 of 1
How to trigger TChromium.OnProcessMessageReceived
Posted: Sun Feb 13, 2022 7:32 am
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.
Re: How to trigger TChromium.OnProcessMessageReceived
Posted: Sun Feb 13, 2022 8:50 am
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