How do I get the Chrome_RenderWidgetHostHWND handle in Google Chrome?

0

I need to get the handle Chrome_RenderWidgetHostHWND which is a component that runs within Google Chrome. I can get the handle from the main class, but when I try to get the Delphi it returns empty.

I'm doing this:

function Chrome: THandle; 
var
  hChromeWindow, hw: HWND;
begin
  hChromeWindow := FindWindow('Chrome_WidgetWin_1', nil);
  hw := FindWindowEx(hChromeWindow, 0, 'Chrome_RenderWidgetHostHWND', nil);
Result := hw;
end; 

I no longer know what to do, I will be extremely grateful for any help.

    
asked by anonymous 20.04.2018 / 23:26

0 answers