现在的位置: 首页 > 综合 > 正文

使用Autoit3 自动登录163邮箱

2013年10月06日 ⁄ 综合 ⁄ 共 786字 ⁄ 字号 评论关闭

最近在研究自动化脚本语言Autoit,根据在网上找的资料测试可以使用的登录163邮箱代码,跟大家分享,我还在研究如何能够自动发送邮件;

有会自动发邮件的大神麻烦告诉我一声,可以把代码发我邮箱yushadow@126.com ,在这里提前说声谢谢了!!!

#include <Date.au3>  

#include <IE.au3>   
  

$oIE = _IECreate ("http://mail.163.com")   
_IEPropertySet ($oIE, "toolbar", 0)
_IEPropertySet ($oIE, "width", 1280)
_IEPropertySet ($oIE, "height", 768)
_IEPropertySet ($oIE, "resizable", 0)

sleep(500)   
$oForm = _IEFormGetObjByName ($oIE, "login163")   
$oQuery = _IEFormElementGetObjByName ($oForm, "username")   
_IEFormElementSetValue ($oQuery, "xxxxxxxx")   
$oQuery = _IEFormElementGetObjByName ($oForm, "password")   
_IEFormElementSetValue ($oQuery, "xxxxxxx")   
$oQuery = _IEFormElementGetObjByName ($oForm, "selType")   
$oQuery = _IEFormElementGetObjByName ($oForm, "登录邮箱")   
_IEAction($oQuery ,"click")   
sleep(500)   
_IEAction ($oIE, "visible")   
sleep(500)
Send("{Enter}");

抱歉!评论已关闭.