0
我想实现自动登录到我的网站usinf VBscript并通过cmd上的批处理命令运行它。使用VB脚本实现自动登录
自动登录得到完成,但还我得到以下错误:
VB脚本运行错误对象所需IPF 请帮忙为什么我收到这个错误? 这里是代码
Set IE = CreateObject("InternetExplorer.Application")
IE.navigate "mysitename"
IE.Visible = True
While IE.Busy
WScript.Sleep 50
Wend
Set ipf = IE.document.getElementByID("login")
ipf.Value = "loginid"
Set ipf = IE.document.getElementByID("password")
ipf.Value = "password"
Set ipf = IE.document.getElementByID("button")
ipf.Click
现在我得到了Object Object Error和另外一件事情,如果我第一次处理这个脚本,它不会得到htis错误,但是第二次给它。 – renu
尝试在最后包含'Set ipf = Nothing'。 – Galeaettu