【问题标题】:How make CreateObject("InternetExplorer.Application") referring to the currently activated instance of IE?如何使 CreateObject("InternetExplorer.Application") 引用当前激活的 IE 实例?
【发布时间】:2012-01-03 14:30:09
【问题描述】:

我正在使用 vbscript 开发浏览器自动测试工具。 我想将 jquery.js 代码注入到当前激活的 Internet Explorer 运行实例中。 CreateObject("InternetExplorer.Application") 的默认行为是创建一个新的 IE 实例。如何创建一个引用当前激活的 Internet Explorer 实例的 COM 对象,而不是创建一个新实例?

【问题讨论】:

  • 你试过GetObject("InternetExplorer.Application")吗?
  • 我试过 GetObject("InternetExplorer.Application")。没有运气..

标签: com vbscript automation activex


【解决方案1】:

你忘了先加逗号GetObject(,"InternetExplorer.Application")

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-03-29
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多