Minecraft Server tool

  • Huhu,

    ich habe ein kleines Problem...

    Ich habe den code von einem Post hier entnommen und an meinen Pfad angepasst.

    Jedoch bekomme ich es nicht hin das die Daten wo in der Console geladen werden in der Edit box angezeigt wird.

    Hier mal der Code.

    Spoiler anzeigen
    [autoit]

    #include <Constants.au3>
    #include <Date.au3>
    #include <ButtonConstants.au3>
    #include <EditConstants.au3>
    #include <GUIConstantsEx.au3>
    #include <WindowsConstants.au3>

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

    #region ### START Koda GUI section ### Form=d:\autoit\bukkit server manager\gui.kxf
    $GUI = GUICreate("Bukkit Server Manager", 684, 405, 192, 124)
    $OVERVIEW = GUICtrlCreateEdit("", 8, 48, 665, 305)
    $START = GUICtrlCreateButton("Start", 8, 8, 81, 25, $WS_GROUP)
    $STOP = GUICtrlCreateButton("Stop", 104, 8, 81, 25, $WS_GROUP)
    $RESTART = GUICtrlCreateButton("Restart", 200, 8, 81, 25, $WS_GROUP)
    $SAVEALL = GUICtrlCreateButton("Save-All", 296, 8, 81, 25, $WS_GROUP)
    $RELOAD = GUICtrlCreateButton("Reload", 392, 8, 81, 25, $WS_GROUP)
    $INPUT = GUICtrlCreateInput("", 8, 368, 665, 21)
    GUISetState(@SW_SHOW)
    #endregion ### END Koda GUI section ###

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

    AdlibRegister("_Lesen", 1000)
    $foo = False
    Func _Lesen()
    If $foo = True Then
    ;~ $line = StdoutRead($foo)
    ;~ StderrRead / StdoutRead
    ;~ GUICtrlSetData($OVERVIEW, StderrRead($foo))
    ;~ GUICtrlSetData($OVERVIEW, StdoutRead($foo))
    Else
    ; Nix
    EndIf
    EndFunc ;==>_Lesen

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

    Local $data
    While 1
    If @error Then ExitLoop

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

    $nMsg = GUIGetMsg()
    Switch $nMsg
    Case $GUI_EVENT_CLOSE
    Exit
    Case $STOP
    _Stop()
    Case $SAVEALL
    _SaveAll()
    Case $RESTART
    _Restart()
    Case $START
    _Start()
    Case $RELOAD
    _Reload()
    Case $OVERVIEW
    EndSwitch
    WEnd

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

    Func _Stop()
    StdinWrite($foo, "stop" & @CRLF)
    EndFunc ;==>_Stop

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

    Func _SaveAll()
    StdinWrite($foo, "save-all" & @CRLF)
    EndFunc ;==>_SaveAll

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

    Func _Restart()
    StdinWrite($foo, "restart" & @CRLF)
    EndFunc ;==>_Restart

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

    Func _Reload()
    StdinWrite($foo, "relaod" & @CRLF)
    EndFunc ;==>_Reload
    Func _Start()
    $foo = True
    $dir = @ScriptDir & "\Server"
    $cmd = "java -Xms512M -Xmx512M -jar server.jar"
    FileChangeDir($dir)
    $foo = Run(@ComSpec & " /c " & $cmd, $dir, 1, $STDIN_CHILD + $STDOUT_CHILD)
    EndFunc ;==>_Start

    [/autoit]

    Hoffe mir kann jemand helfen =)

    Die daten der Console werden im Scite editor angezeigt aber ich möchte es in der editbox...