AnfängerProblem ?

  • Hallo Comunity

    Also entweder ich werde voll gagga oder iwas spinnt ich kriegs nicht hin des editfeld mit ner textdatei zu füttern was is denn da falsch ?

    Spoiler anzeigen
    [autoit]

    #include <GUIConstants.au3>

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

    $test = FileRead("C:\Users\KR\DesktopUSP.45ACP Tactical.txt")

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

    #Region ### START Koda GUI section ### Form=c:\users\kr\desktop\beschreibungusp.kxf
    $csusp = GUICreate("USP-Beschreibung", 503, 404, 193, 125)
    $Pic1 = GUICtrlCreatePic("C:\Users\KR\Desktop\BackgroundB.gif", 0, 0, 500, 400, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
    $Editbeschreibung = GUICtrlCreateEdit("C:\Users\KR\Desktop\USP.45ACP Tactical.txt", 8, 192, 471, 177)
    GUICtrlSetData(-1, $test)
    $Inputname = GUICtrlCreateInput("USP.45ACP", 80, 0, 90, 21)
    $Inputgewicht = GUICtrlCreateInput("1000 Gr.", 80, 24, 90, 21)
    $InputMagazin = GUICtrlCreateInput("12 Kugeln", 80, 48, 90, 21)
    $InputHerkunft = GUICtrlCreateInput("Deutschland", 80, 72, 90, 21)
    $InputKaliber = GUICtrlCreateInput(".45 ACP", 80, 96, 90, 21)
    $InputJoule = GUICtrlCreateInput("553 Joules", 80, 120, 90, 21)
    $Name = GUICtrlCreateLabel("Name :", 8, 8, 38, 17)
    GUICtrlSetColor(-1, 0x008000)
    GUICtrlSetBkColor(-1, 0x000000)
    $Gewicht = GUICtrlCreateLabel("Gewicht :", 8, 32, 49, 17)
    GUICtrlSetColor(-1, 0x008000)
    GUICtrlSetBkColor(-1, 0x000000)
    $Magazin = GUICtrlCreateLabel("Magazin :", 8, 56, 50, 17)
    GUICtrlSetColor(-1, 0x008000)
    GUICtrlSetBkColor(-1, 0x000000)
    $Herkunft = GUICtrlCreateLabel("Herkunft :", 8, 80, 51, 17)
    GUICtrlSetColor(-1, 0x008000)
    GUICtrlSetBkColor(-1, 0x000000)
    $Kaliber = GUICtrlCreateLabel("Kaliber :", 8, 101, 42, 17)
    GUICtrlSetColor(-1, 0x008000)
    GUICtrlSetBkColor(-1, 0x000000)
    $Durchschlag = GUICtrlCreateLabel("Durchschlag :", 8, 123, 70, 17)
    GUICtrlSetColor(-1, 0x008000)
    GUICtrlSetBkColor(-1, 0x000000)
    $Preis = GUICtrlCreateLabel("Preis :", 8, 146, 33, 17)
    GUICtrlSetColor(-1, 0x008000)
    GUICtrlSetBkColor(-1, 0x000000)
    $Prei = GUICtrlCreateInput("500 $", 80, 144, 90, 21)
    $Spezial = GUICtrlCreateLabel("Spezial :", 8, 170, 44, 17)
    GUICtrlSetColor(-1, 0x008000)
    GUICtrlSetBkColor(-1, 0x000000)
    $Spezia = GUICtrlCreateInput("Schalldämpfer", 80, 168, 90, 21)
    $wafname = GUICtrlCreateLabel("USP .45ACP", 248, 88, 105, 24)
    GUICtrlSetFont(-1, 12, 800, 0, "MS Sans Serif")
    GUICtrlSetColor(-1, 0x008000)
    GUICtrlSetBkColor(-1, 0x000000)
    GUISetState(@SW_SHOW)
    #EndRegion ### END Koda GUI section ###

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

    While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
    Case $GUI_EVENT_CLOSE
    Exit

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

    EndSwitch
    WEnd

    [/autoit]