自动登录126邮箱的脚本

AutoIt 脚本:

login.au3 文件内容:

#include <IE.au3>

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

_IELoadWait ($oIE)

$UserName = _IEGetObjById ($oIE, "username")
If IsObj($UserName) Then $UserName.value = "username"
$PassWord = _IEGetObjById ($oIE, "password")
If IsObj($PassWord) Then $PassWord.value = "key"
$submit = _IEGetObjById ($oIE, "enter.x")
If IsObj($submit) Then $submit.click

原文地址:https://www.cnblogs.com/chinaontology/p/1402376.html