Formular bekommen

  • Ich habe folgendes Problem.
    Ich will das Formular in die Varialbe $oForm haben, normalerweise klar

    [autoit]

    $oForm = _IEFormGetObjByName($oIE,"Name")

    [/autoit]


    Aber das blöde Formular hat keinen Namem :/

    Code
    <form action="evergore.html" method="post">


    Wie komme ich nun an das Formular ran?

  • 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 X(

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

    [/autoit]


    ?(

    edit: ... Boar bin ich dämlich.... es heißt natürlich _IEFormGetCollection und nicht _IEFormElementGetCollection. Damit funktioniert auch alles.
    Danke.

    Einmal editiert, zuletzt von Wesloth (23. November 2007 um 21:52)