class function TTestExtension.hello: string;
begin
Result := 'Hello from Delphi';
end;
class procedure TTestExtension.Test22 (s:string);
var
msg: ICefProcessMessage;
rc: boolean ;
begin
msg := TCefProcessMessageRef.New('MsgName');
msg.ArgumentList.SetString(0, 'Parameter-0');
ShowMessage('here ok') ;
rc := MainForm.crm.browser.SendProcessMessage(PID_BROWSER, msg) ;
ShowMessage ('rc:' + BooltoStr(rc));
end;So my question is :
What is the best way to send a message to the main process ?
Thanks in advance
Regards