【问题标题】:Why am I getting this error when I run a script?为什么我在运行脚本时会收到此错误?
【发布时间】: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


【解决方案1】:

我不知道是不是你在这里粘贴代码的方式,但看起来你应该只需要将它放在括号中,如下所示:While (x,y,z)

【讨论】:

    猜你喜欢
    • 2010-09-15
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-01-15
    • 2016-04-04
    • 2017-10-20
    • 2012-05-31
    • 2012-06-08
    相关资源
    最近更新 更多