The form is right here:
<form method="post" action="/SignOnPost">
You can get it by _IEFormGetCollection using an index.
You can also get the button by _IEFormElementGetCollection and an index.
_IEFormSubmit should work fine.
Hi,
thanks for suggestion, but....
If i add this lines after $oIE= ...
$oForm = _IEFormGetCollection ($oIE, 0) -> One form detect, but error in console
MsgBox(0, "Forms Info", "There are " & @extended & " forms on this page")
-> Message: There are 1 forms on this page.
Then:
$obutton = _IEFormElementGetCollection ($oForm, 9)-> different values from 0 - 9 always error in console.
--> IE.au3 V2.4-0 Warning from function _IEFormGetCollection, $_IEStatus_NoMatch
--> IE.au3 V2.4-0 Error from function _IEFormElementGetCollection, $_IEStatus_InvalidDataType
--> IE.au3 V2.4-0 Error from function _IEAction, $_IEStatus_InvalidDataType
#include <ie.au3>
_tsm
()
Func _tsm
()
$oIE = _IECreate ("<a href='http://servername:1580' class='bbc_url' title='External link' rel='nofollow external'>http://servername:1580"</a
>)
$oForm = _IEFormGetCollection ($oIE, 0)
$obutton = _IEFormElementGetCollection ($oForm, 9)
;MsgBox(0, "Forms Info", "There are " & @extended & " forms on this page")
$oFrame = _IEFrameGetCollection ($oIE, 1)
$oUserID = _IEGetObjByName ($oFrame, "USERID")
$oPassword = _IEGetObjByName ($oFrame, "PASSWORD")
_IEFormElementSetValue ($oUserID, "admin")
_IEFormElementSetValue ($oPassword, "xxxxxxxxx")
;_IEFormSubmit ($oForm)
_IEAction ($obutton, "Click")
EndFunc
;-((
Stefan
Edited by 99ojo, 17 November 2009 - 12:36 PM.