首页 > 编程 > VBScript > 正文

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

2019-10-26 18:06:26
字体:
来源:转载
供稿:网友
复制代码 代码如下:

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

您可能感兴趣的文章:

用VBScript制作QQ自动登录的脚本代码VBS取QQ或TM自动登录代码并防止关闭的脚本vbs qq自动登录脚本改进版
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表

图片精选