Button Betätigen (Website)

  • Hallo,

    ich bin noch neu im Forum :)
    und habe vor kurzen angefangefangen mit autoit
    deswegen fange ich mal an ^^
    Ich will auf Google.de auf den Button "Google-Suche" betätigen ohne darauf zu drücken.

    [autoit]

    Hotkeyset("{F1}","_Button")
    While 1
    Sleep(1)
    WEnd
    Func _Button()
    ?(?(?(?(?(?(
    EndFunc

    [/autoit]
  • Versuch das mal:

    [autoit]


    #include <IE.au3>
    $oIE = _IECreate ("http://www.google.de")
    $oForm = _IEFormGetObjByName ($oIE, "f")
    $oQuery = _IEFormElementGetObjByName ($oForm, "q")
    _IEFormElementSetValue ($oQuery, "AutoIt IE.au3")
    _IEFormSubmit ($oForm)

    [/autoit]

    Q ist das Suchfeld

    ;) Ilse