想要通过Python向Chrome的地址栏发送消息。
用Spy++抓到的窗口类名是 “Chrome_WidgetWin_1” 地址栏的类名是 “Chrome_OmniboxView”
然后代码是这么写的:
`win_handler = win32gui.FindWindow("Chrome_WidgetWin_1",None)
address_handler = win32gui.FindWindowEx(win_handler, None,"Chrome_OmniboxView",None)`
win_handler能正确获取到句柄,address_handler总是0
这到底要怎么搞啊?