Formular bekommen
-
- [ offen ]
-
Wesloth -
23. November 2007 um 21:34 -
Geschlossen -
Erledigt
-
-
hi
$objekt = _ieformgetcollection($oIE,0)
oder?
auf jeden fall stehts in der hilfe wie es geht^^
mfg
derda
-
Ich hab die Hilfedatei übersetzt an der Stelle
Das Element was ich verändern will ist eine ganz einfache Inputbox.
Code<td class="L"><input type="text" name="wait" value="20" maxlength="4" class="C5" /> Minuten</td>
Daher schreibe ich, wenn ich das mit $objekt = _ieformgetcollection($oIE,0) schreibe.
[autoit]Local $oForm = _IEFormElementGetCollection($oIE,0)
[/autoit]
Local $oWait = _IEFormElementGetObjByName($oForm,"wait")
_IEFormElementSetValue($oWait,0)
_IEFormSubmit($oForm)
[autoit]
Dann spuckt er mir folgende Fehler aus.
[/autoit]
--> IE.au3 V2.3-1 Error from function _IEFormElementGetCollection, $_IEStatus_InvalidObjectType
--> IE.au3 V2.3-1 Error from function _IEFormElementGetObjByName, $_IEStatus_InvalidDataType
--> IE.au3 V2.3-1 Error from function _IEFormElementSetValue, $_IEStatus_InvalidDataType
--> IE.au3 V2.3-1 Error from function _IEFormSubmit, $_IEStatus_InvalidDataType
--> IE.au3 V2.3-1 Error from function _IEAction, $_IEStatus_InvalidObjectType
edit: ... Boar bin ich dämlich.... es heißt natürlich _IEFormGetCollection und nicht _IEFormElementGetCollection. Damit funktioniert auch alles.
Danke.