用脚本打开www.126.com
并登陆后,
dim Ie,obj
set Ie =wscript.createobject("internetexplorer.application")
ie.navigate "http://www.126.com/"
wscript.sleep 1000
set obj=ie.document
obj.[0].Username.value="ABC"
obj.[0].Password.value="123456789"
wscript.sleep 1000
for i=0 to obj.all.length-1
if obj.all(i).tagname="INPUT" Then
if obj.all(i).value="登录" then obj.all(i).click
end if
next
现在的问题是
如何调用登陆后页面的logout()实现自动注销?
--
FROM 211.94.162.*