Hallo,
ich habe ja versprochen ganz klein anzufangen also habe ich es getan ![]()
vermutlich ist das nur ein ganz kleiner fehler, mit der hilfe konnte ich mir leider auch nicht helfen ![]()
Eine fehlermeldung erscheint nicht, bloss der inhalt meine txt erscheint nicht in meiner $listview1
eine idee?
zurinfo meine txt sieht so aus:
pc1
pc2
pc3
Spoiler anzeigen
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <ListViewConstants.au3>
#include <WindowsConstants.au3>
#include <GUIConstantsEx.au3>
#Include <GuiListView.au3>
#include <ListViewConstants.au3>
#include <file.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 700, 510, 257, 323)
$ListView1 = GUICtrlCreateListView("", 24, 48, 170, 342)
$ListView2 = GUICtrlCreateListView("", 224, 48, 170, 342)
$ListView3 = GUICtrlCreateListView("", 424, 48, 186, 342)
$Button1 = GUICtrlCreateButton("PC`s Laden", 24, 400, 75, 25, 0)
$Button2 = GUICtrlCreateButton("Check", 24, 432, 75, 25, 0)
$Button3 = GUICtrlCreateButton("export1", 136, 400, 59, 25, 0)
$Button4 = GUICtrlCreateButton("export2", 336, 400, 59, 25, 0)
$Button5 = GUICtrlCreateButton("export3", 552, 400, 59, 25, 0)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
case $Button1
_insert()
EndSwitch
WEnd
Func _insert()
$string = FileOpenDialog("Pc Liste Wählen", @ScriptDir & "\", "Pc Liste (*.txt;*.csv)", 1 + 4 )
$array = $string
For $i = 0 To UBound($array) - 1
GUICtrlCreateListViewItem($array[$i], $ListView1)
Next
EndFunc