VBS 自動登錄論壇的實現(xiàn)代碼
更新時間:2013年07月28日 20:15:20 作者:
這篇文章主要介紹了如果通過vbs實現(xiàn)論壇自動登錄的實現(xiàn)方法,其實主要利用了vbs操作網(wǎng)頁表單的自動填寫實現(xiàn),喜歡的朋友可以試試
復制代碼 代碼如下:
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
相關(guān)文章
math.vbs 自然數(shù)n的n次方的的和或積的級數(shù)
通項為自然數(shù)n的n次方的的和或積的級數(shù),求和或積的表達式。2009-09-09
vbs腳本和windows定時任務實現(xiàn)qq消息表情包定時發(fā)送功能
這篇文章主要介紹了vbs腳本和windows定時任務實現(xiàn)qq消息表情包定時發(fā)送,整個過程不用過多的程序運行,我們借助vbs腳本和windows定時任務去實現(xiàn)這一功能,需要的朋友可以參考下2022-01-01

