使用Autoit3 自动登录163邮箱

来源:互联网 发布:mac安装虚拟机 编辑:程序博客网 时间:2024/04/29 01:49

最近在研究自动化脚本语言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}");
原创粉丝点击