; 用于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