当我 运行 一个 vbs 机器人时,它不起作用,因为它无法创建对象,那么如何解决呢?

When I run a vbs bot it doesn't work becauuse it can't create an object so how to solve it?

我正在尝试制作一个互联网机器人来做一些小工作,但我不太了解 vbs,每次我尝试 运行 我有 (800A01AD) 错误代码的代码。

代码如下:

Set Webbrowser = CreateObject("IntrnetExplorer.Application")
Webbrowser.Statusebar = False
Webbtowser.Menubar = False
Webbrowser.Toolbar = False
Webbrowser.Visible = True

我试过在编辑器而不是记事本中编写代码,但没有成功。

您的代码中有错别字:

Set Webbrowser = CreateObject("IntrnetExplorer.Application")

代码应该是:

Set Webbrowser = CreateObject("InternetExplorer.Application")

This is the naming convention used in Microsoft website.