0
VBScript를 사용하여 내 사이트에 자동 로그인을 구현하고 cmd의 배치 명령을 통해 실행하려고합니다.VB 스크립트를 사용하여 자동 로그인 구현하기
자동 로그인이 이루어지고 또한 나는 오류가 아래에 무엇입니까 :
나는이 오류가있는 이유 IPF 이 도와주세요 필요VB 스크립트 런타임 오류 개체? 다음은 설정하기 전에 코드
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
이제이 스크립트를 처음 실행하면 htis 오류가 발생하지만 두 번째로는 스크립트를 실행하고있는 경우 Object Required Error와 하나만 더 있습니다. – renu
마지막에'Set ipf = Nothing'을 포함 시키십시오. – Galeaettu