ie_load – 用于candy等书妖脚本的当前ie新tab打开

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

给TA捐赠
共{{data.count}}人
人已捐赠
其他

AHK脚本管理器

2020-1-26 14:05:58

其他案例

所有文件划分成5类

2020-2-6 23:24:07

个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索