Skip to content

Instantly share code, notes, and snippets.

@fornext1119
Created June 20, 2012 05:48
Show Gist options
  • Save fornext1119/2958331 to your computer and use it in GitHub Desktop.
Save fornext1119/2958331 to your computer and use it in GitHub Desktop.
JScript で Internet Explorer を 制御
var ie = WScript.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");
while (ie.Busy || ie.readystate != 4)
WScript.Sleep(1000);
//ユーザ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