不记得是在哪里看到得一个源码!!
#include <IE.au3>
$username = 'aaaaaaaa'
$password = 'bbbbbbbb'
$oIE = _IECreate("http://mail.163.com")
$oform = _IEGetObjByName($oIE, "login163")
$oQuery1 = _IEFormElementGetObjByName($oform, "username");
_IEFormElementSetValue($oQuery1, $username);
$oQuery2 = _IEFormElementGetObjByName($oform, "password")
_IEFormElementSetValue($oQuery2, $password);
$Elements = _IEFormElementGetCollection($oform)
For $Element In $Elements
;MsgBox(0, "Form Element Type", "Form: " & $Element.form.name & " Type: " & $Element.type)
If $Element.type = "Submit" Then $Element.click
Next
|