Func _AccessAdmin()
$oIE = _IECreate("http://127.0.0.1")
$oForm = _IEFormGetCollection($oIE, 0)
$oUserField = _IEFormElementGetCollection($oForm, 0)
$oPassField = _IEFormElementGetCollection($oForm, 1)
_IEFormElementSetValue($oUserField, "Username")
_IEFormElementSetValue($oPassField, "Password")
$LoginCheck = _IEFormSubmit($oForm)
If $LoginCheck = -1 Then
_IENavigate($oIE, "https://127.0.0.1/admin.htm")
Else
_IEQuit($oIE)
EndIf
EndFunc ;==>_AccessAdmin
What i want to check is if it successfully login, for instance if the password is wrong it would not login but it seems that the IEFormSubmit still returns -1(success) when the password or username is wrong.