|
楼主 |
发表于 2023-2-8 16:55
|
显示全部楼层
[广告] Excel易用宝 - 提升Excel的操作效率 · Excel / WPS表格插件 ★ 免费下载 ★ ★ 使用帮助★
本身就是 Chrome 浏览器,能用 Chrome_WidgetWin_1 找到窗口名称,查类型是一样的
Sub webtClassName()
Dim myHwnd As Long, hwnd As Long
Dim myClassName As String * 100
Dim myCaption As String * 80
Dim myRow As Long
hwnd = FindWindow("Chrome_WidgetWin_1", vbNullString)
MsgBox GetWindowName(hwnd)
myHwnd = FindWindow(vbNullString, GetWindowName(hwnd))
GetClassName myHwnd, myClassName, Len(myClassName)
MsgBox Left(myClassName, InStr(myClassName, vbNullChar) - 1)
End Sub
|
|