Form bestätigen - FF.au3

  • Hallo,
    ich hab ein Problem, und zwar möchte ich ein simples Script basteln zum automatischen Einloggen in schueler.cc.

    Mein Problem ist, ich weis nicht wie ich den LogIn Button drücken lassen soll, FFFormsubmit klappt nicht.
    Weiß jemand wie das gehen könnte?

    Lg

    [autoit]

    #include <ButtonConstants.au3>
    #include <EditConstants.au3>
    #include <GUIConstantsEx.au3>
    #include <StaticConstants.au3>
    #include <WindowsConstants.au3>
    #include <FF.au3>

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

    #Region ### START Koda GUI section ### Form=
    $Form1 = GUICreate("Schueler.cc Einwähler", 241, 114, 192, 124)
    $Input1 = GUICtrlCreateInput("", 112, 48, 121, 21, BitOR($ES_PASSWORD,$ES_AUTOHSCROLL))
    $Input2 = GUICtrlCreateInput("", 112, 16, 121, 21)
    $Label1 = GUICtrlCreateLabel("E-Mail Adresse", 0, 16, 96, 20)
    GUICtrlSetFont(-1, 10, 400, 0, "MS Sans Serif")
    $Passwort = GUICtrlCreateLabel("Passwort", 0, 48, 59, 20)
    GUICtrlSetFont(-1, 10, 400, 0, "MS Sans Serif")
    $Button1 = GUICtrlCreateButton("Start!", 0, 80, 235, 25, $WS_GROUP)
    GUISetState(@SW_SHOW)
    #EndRegion ### END Koda GUI section ###

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

    While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
    Case $GUI_EVENT_CLOSE
    Exit
    Case $Button1
    _FFStart("schueler.cc")
    If _FFIsConnected() Then
    _FFSetValue (GUIctrlread ($Input2),"email","name")
    _FFSetValue (GUIctrlread ($Input1),"passwort","name")
    _FFFormSubmit (0,"index","enter2")
    Else
    MsgBox (0,"Hinweis","Verbindung zu Firefox konnte nicht aufgenommen werden")
    EndIf
    Exit
    EndSwitch
    WEnd

    [/autoit]
  • in dem du durch Drücken der Tabulator - Taste auf den login bottom wechselst, und dann enter drückst. (bzw. das Script macht das für dich)
    durch den Tabulator kannst du auf jeden Bottom und jedes Eingabefeld wechseln.