=0 { url=%1% IfWinExist ahk_class IEFrame { IfWinNotActive ahk_class IEFrame { WinActivate ahk_class IEFrame } For Pwb i
; 用于wala candy等脚本,在有ie的情况下,新开脚本不能在newtab打开的情况
; 如果进程中有多个ie,则情况未明
; 望有同好者能帮助解决一下,主要是如何明确的--获取(连接)到最当前的(或者当前激活)的ie--
; candy,2006开始,对浏览器支持”运行转移“,设置在[WebBrowser_With_CommandLIne] 里面
; 请把这个代码编译后,设置到ini里面
#NoTrayIcon
#SingleInstance force
SetWorkingDir,%A_ScriptDir%
SetTitleMatchMode,2
DetectHiddenWindows On
If 0!=0
{
url=%1%
IfWinExist ahk_class IEFrame
{
IfWinNotActive ahk_class IEFrame
{
WinActivate ahk_class IEFrame
}
For Pwb in ComObjCreate( "Shell.Application" ).Windows
if(InStr( Pwb.FullName, "iexplore.exe" ) )
break
pwb.Navigate(url, 2048)
}
else
{
run iexplore.exe %1%
}
}
Else
{
IfWinExist ahk_class IEFrame
WinActivate
else
run iexplore.exe
}
ExitApp
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。

