Re: PacNet MRTG monitoring

larrydalooza <[email protected]> Mon, 17 Sep 2007 17:58:24 -0000
Newsgroups gmane.comp.windows.autoit.user
Message-ID <[email protected]>
#include <IE.au3>
$oIE = _IECreate ("https://ops.pacific.net.sg/owl/main.php")
$oForms = _IEFormGetCollection ($oIE)
For $o_form In $oForms
$o_login = _IEFormElementGetObjByName($o_form, "userid")
$o_password = _IEFormElementGetObjByName($o_form, "password")
$o_submit = _IEFormElementGetObjByName($o_form, "submit")
; Set field values and submit the form
_IEFormElementSetValue($o_login, "My userID")
_IEFormElementSetValue($o_password, "your password here")
_IEAction($o_submit,"click")
ExitLoop
Next