Abend,
bei mir wird aus irgendeinem Grund das Ausgelesene nicht in der Edit Box hineingeschrieben. Weiß jemand warum?
[autoit][/autoit]Spoiler anzeigen
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <GUIConstantsEx.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Info Tool - Test", 615, 216, 396, 250)
$Befehle = GUICtrlCreateButton("Befehle", 0, 8, 121, 33)
$Waffen = GUICtrlCreateButton("Waffen", 0, 56, 121, 33)
$Ruestungen = GUICtrlCreateButton("Ruestungen", 0, 104, 121, 33)
$Items = GUICtrlCreateButton("Items", 0, 160, 121, 33)
$Edit1 = GUICtrlCreateEdit("", 136, 16, 457, 177, BitOR($ES_AUTOVSCROLL,$ES_AUTOHSCROLL,$ES_READONLY,$ES_WANTRETURN,$WS_VSCROLL))
GUICtrlSetData(-1, "Edit1")
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
case $Befehle
$file = FileOpen(@ScriptDir &"Befehle.txt", 0)
$befehle1 = FileRead ("Befehle.txt")
GUICtrlSetData ($Edit1, $befehle1)
EndSwitch
WEnd