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

posted on 2009-03-03 16:31  精思入神  阅读(600)  评论(0编辑  收藏  举报