vbs之使用Internet Explorer 屏蔽密码
程序员文章站
2022-04-10 08:13:03
复制代码 代码如下:set objexplorer = wscript.createobject _ &nb...
复制代码 代码如下:
set objexplorer = wscript.createobject _
("internetexplorer.application", "ie_")
objexplorer.navigate "file:///c:\scripts\password.htm"
objexplorer.visible = 1
objexplorer.toolbar = 0
objexplorer.statusbar = 0
objexplorer.width=400
objexplorer.height = 250
objexplorer.left = 0
objexplorer.top = 0
do while (objexplorer.document.body.all.okclicked.value = "")
wscript.sleep 250
loop
strpassword = objexplorer.document.body.all.passwordbox.value
objexplorer.quit
wscript.sleep 250
wscript.echo strpassword