Re: PacNet MRTG monitoring

larrydalooza <[email protected]> Mon, 17 Sep 2007 15:27:21 -0000
Newsgroups gmane.comp.windows.autoit.user
Message-ID <[email protected]>
--- In [email protected], "telltay" <julian88@...> wrote:
>
> Hi,
> 
> I am new to AutoIT. I am trying to login to my provider website to 
> print my MRTG graph. The website is "https://ops.pacific.net.sg/owl/"
> 

not really up on IE.au3 but... load the main.php page

#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")

	; Set field values and submit the form
	_IEFormElementSetValue($o_login, "My userID")
	_IEFormElementSetValue($o_password, "your password here")
	ExitLoop
Next