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.
How to trigger TChromium.OnProcessMessageReceived
How to trigger TChromium.OnProcessMessageReceived
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.
- salvadordf
- Posts: 4580
- Joined: Thu Feb 02, 2017 12:24 pm
- Location: Spain
- Contact:
Re: How to trigger TChromium.OnProcessMessageReceived
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
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