163邮箱登陆另类代码

代码一:

#include <IE.au3>

$oIE = _IECreate("http://mail.163.com/",0,1,1,1 )
       _IELoadWait ($oIE)
$oInputs = _IETagNameGetCollection ($oIE, "INPUT")

For $oInput In $oInputs
 if $oInput.name = "username" then
    $oInput.value="您的用户名"
 EndIf
Next

For $oInput In $oInputs
 if $oInput.name = "password" then
   $oInput.value="您的密码"
 EndIf
Next

For $oInput In $oInputs
 if $oInput.name = "登录邮箱" then
    _IEAction ($oInput, "click")
 EndIf
Next
Exit

代码二:

#include <IE.au3>

$oIE = _IECreate("http://mail.163.com/",0,1,1,1 )
      _IELoadWait ($oIE)

$UserName = _IEGetObjById ($oIE, "username")
If IsObj($UserName) Then $UserName.value = "您的用户名"
$PassWord = _IEGetObjById ($oIE, "password")
If IsObj($PassWord) Then $PassWord.value = "您的密码"
$submit =  _IEGetObjByName ($oIE, "登录邮箱")
If IsObj($submit) Then $submit.click
申明:本站资源大部分来自网络,如果无意侵犯了你的权利,请及时通知我们 AutoIt@FoxMail.Com,我们将尽快处理
Copyright © 2008-2009 随便复制 共享精神 人人有责 All Right Reserved
粤ICP备08009024号