【发布时间】:2019-06-08 07:29:25
【问题描述】:
我能够使用以下代码在活动选项卡中激活 IE8 对象:
IEGet(Name="") {
IfEqual, Name,, WinGetTitle, Name, ahk_class IEFrame ;// Get active window if no parameter
Name := (Name="New Tab - Windows Internet Explorer")? "about:Tabs":RegExReplace(Name, " - (Windows|Microsoft)? ?Internet Explorer$")
for wb in ComObjCreate("Shell.Application").Windows()
if wb.LocationName=Name and InStr(wb.FullName, "iexplore.exe")
return wb
}
但我无法在 Internet Explorer 9 上做同样的事情...你知道如何解决这个问题吗?
【问题讨论】:
标签: windows internet-explorer-9 autohotkey