I have found some code to bring the browser to the front, even if it was minimized.
I don't however know how to get the hwnd for the browser.
I have had a look at the FindWindow API function, but you need the classname and windowname.
I have found that the classname I require is "Chrome_WidgetWin_1"
The windowname though would be constantly changing depending on what was open in the browser.
I think one of the 'children' of this window has a classname of "WrapperNativeWindowClass"
I'm not sure if I can use this to find the original parent.
Can anyone advise on how to find the window handle of a chrome browser (using VBA)?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…