Fokus auf Webseitenformular setzten

  • Hallo Zusammen,

    ich bin ein absoluter Neuling in AUTOIT und komme an einer Stelle nicht weiter. Ich möchte das auf der Webseite http://www.aponet.de/service/notdienstapotheke-finden.html automatisiert eine PLZ im Formular "zipcity" eingetragen wird. Ich bekomme den Fokus nicht auf das Feld gesetzt. Könnt Ihr mir helfen, was ich falsch mache, Danke Gruß

    Thomas


    [autoit][/autoit]

    #include <IE.au3>

    $IE = _IECreate("http://www.aponet.de/service/notdienstapotheke-finden.html",1,1)

    $Form=_IEFormGetObjByName($IE, 2)

    $Input=_IEFormElementGetObjByName($Form, "zipcity")

    _IEFormElementSetValue($Input)

    _IEAction($Obj,"focus")

    _IEFormElemetSetValue($Obj)

    send("31303")

    3 Mal editiert, zuletzt von Thomas_Burgdorf (17. Juni 2012 um 08:17)

  • hi thomas,

    so gehts

    [autoit]

    #include <IE.au3>

    [/autoit][autoit][/autoit][autoit]

    $oIE = _IECreate("http://www.aponet.de/service/notdienstapotheke-finden.html")
    $oInput = _IEGetObjByName($oIE,"zipcity")
    _IEFormElementSetValue($oInput,"31303")

    [/autoit]