亲宝软件园·资讯

展开

VBS 自动登录论坛 VBS 自动登录论坛的实现代码

人气:0
想了解VBS 自动登录论坛的实现代码的相关内容吗,在本文为您仔细讲解VBS 自动登录论坛的相关知识和一些Code实例,欢迎阅读和指正,我们先划重点:VBS,自动登录论坛,下面大家一起来学习吧。
复制代码 代码如下:

on error resume next
url = " http://www.bathome.net/logging.php?action=login"
username = "***"
password = "***"
set ie = CreateObject("InternetExplorer.Application")
ie.visible = true
ie.Navigate url,4 ' " http://www.baidu.com"
do until 4=ie.readyState
    WScript.sleep 200
    waittime  = waittime + 200
    if waittime > 15000 then exit do
loop
'WScript.echo waittime
if 4<>ie.readyState then
    ie.quit
    WScript.quit
end if
set dom = ie.document
set form = dom.getElementById("loginform")
form.all("username").value = username
form.all("password").value = password
form.all("cookietime").checked = true
form.all("loginsubmit").click()


原文: http://www.enun.net/?p=1093

加载全部内容

相关教程
猜你喜欢
用户评论