Skip to content

Instantly share code, notes, and snippets.

@fornext1119
Created June 20, 2012 02:01
Show Gist options
  • Save fornext1119/2957705 to your computer and use it in GitHub Desktop.
Save fornext1119/2957705 to your computer and use it in GitHub Desktop.
VBScript で Internet Explorer を 制御
Option Explicit
'IE起動
Dim ie: Set ie = CreateObject("InternetExplorer.Application")
ie.Visible = True
ie.Toolbar = True
ie.MenuBar = True
ie.AddressBar = True
ie.StatusBar = True
'ログオン画面
ie.Navigate "http://192.168.1.1/zzzz.asp"
Do While ie.Busy Or ie.readystate <> 4
WScript.Sleep 1000
Loop
'ユーザID
ie.Document.getElementById("txtUserID").Value = "xxxxx"
'パスワード
ie.Document.getElementById("txtPassWD").Value = "yyyyy"
'ログオン
ie.Document.forms(0).submit()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment