【发布时间】:2016-06-30 20:05:57
【问题描述】:
运行脚本时有时会出现此错误:
这个说“访问被拒绝”,但有时会说一些不同的东西,尽管问题总是与
While IE.readyState != 4 || IE.document.readyState != "complete" || IE.busy
Sleep, 5
此代码的目的是等待 Internet Explorer 中的网页完成加载。这是在 Internet Explorer 11.01 上运行的
这也是IE 的定义方式
IE := IEGetbyURL("stackoverflow.com/")
IEGetbyURL(URL) {
For pwb in ComObjCreate("Shell.Application").Windows
If (pwb.LocationURL = URL and InStr(pwb.FullName, "iexplore.exe") > 0)
Return pwb
}
【问题讨论】:
-
什么样的脚本?
-
@NguyenDoanTung 自动热键
标签: internet-explorer autohotkey