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