写随笔写3个出来吧,都大同小异的,想学习方法可以看看这篇文章
http://www.autoit.org.cn/html/zh ... 11/quickieform.html#include <IE.au3>
#cs QQ邮箱登陆代码
$oIE = _IECreate ("http://mail.qq.com")
_IELoadWait ($oIE)
$UserName = _IEGetObjById ($oIE, "uin")
;QQ的用户名不能为数字号码,只能是别名,否则要验证码
If IsObj($UserName) Then $UserName.value = "用户名"
$PassWord = _IEGetObjById ($oIE, "pp")
If IsObj($PassWord) Then $PassWord.value = "密码"
$Submit = _IEGetObjById ($oIE, "btlogin")
$Submit.click
#ce
#cs LIVE邮箱登陆代码 (我这禁止HTTPS链接,无法测试是否登陆成功)
$oIE = _IECreate ("http://login.live.com/login.srf")
_IELoadWait ($oIE)
$UserName = _IEGetObjByName ($oIE, "login")
If IsObj($UserName) Then $UserName.value = "用户名"
$PassWord = _IEGetObjByName ($oIE, "passwd")
If IsObj($PassWord) Then $PassWord.value = "密码"
$Submit = _IEGetObjByName ($oIE, "SI")
$Submit.click
#ce
#cs 新浪邮箱登陆代码
$oIE = _IECreate ("http://mail.sina.com.cn/")
_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, "btnloginfree")
$Submit.click
#ce
|