vbs 自動登錄論壇的實現(xiàn)代碼
來源:易賢網(wǎng) 閱讀:1631 次 日期:2016-06-24 10:14:29
溫馨提示:易賢網(wǎng)小編為您整理了“vbs 自動登錄論壇的實現(xiàn)代碼”,方便廣大網(wǎng)友查閱!

代碼如下:

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()

更多信息請查看腳本欄目
下一篇:js去除空格
易賢網(wǎng)手機網(wǎng)站地址:vbs 自動登錄論壇的實現(xiàn)代碼
關于我們 | 聯(lián)系我們 | 人才招聘 | 網(wǎng)站聲明 | 網(wǎng)站幫助 | 非正式的簡要咨詢 | 簡要咨詢須知 | 新媒體/短視頻平臺 | 手機站點

版權所有:易賢網(wǎng)