Hallo,
ich habe ein problem ich will dynamisch teste daten aus ein ordner lessen und die dann splitten. So das ich mit checkboxen die 1 spalte ausgebe und wenn es gecheckt wir soll er mit die 2 splate aus geben.
so habe ich angefangen
[autoit]
#include <GUIConstantsEx.au3>
#include <file.au3>
#include <array.au3>
Global $aArray
Global $text
Global $htab
Global $htabtext [10]
Global $hchks1[10][30]
Global $hchks2[10][30]
GUISetBkColor(0x00E0FFFF)
GUISetFont(9, 300)
GUICreate("Test", 450, 415)
Global $hbtnWakeUp = GUICtrlCreateButton("Aufwecken",350, 390, 100)
$htab = GUICtrlCreateTab(10, 10, 435, 380)
GUISetState(@SW_SHOW)
$ordner = _FileListToArray(@ScriptDir & "\ordner\" , "*.txt", 1)
[/autoit][autoit][/autoit][autoit]For $text = 1 To $ordner[0]
$FileToRead = @ScriptDir & $ordner & "\" & $ordner[$text]
$htabtext[$text] = GUICtrlCreateTabItem($ordner[$text])
MsgBox(0,"",$FileToRead)
Next
If _FileReadToArray($FileToRead,$aArray) Then
MsgBox(0,"",$FileToRead)
For $zeile1 = 1 To $aArray[0]
$ausgabe = StringSplit($aArray[$zeile1], ";")
$i = Int(($pc + 9) / 10) * 80
$j = Mod(($pc + 9), 10) * 25 + 80
$hchks1[$text][$zeile1] = GUICtrlCreateCheckbox("" & $ausgabe[1], $i,$j )
MsgBox(64,"",$ausgabe[1])
$hchks2[$text][$zeile1] = $ausgabe[2])
MsgBox(0,"", $hchkzeile1[$text][$zeile1])
Next
EndIf
GUICtrlCreateTabItem("")
GUISetState()
[/autoit][autoit][/autoit][autoit]While 1
$msg = GUIGetMsg()
Select
Case $msg = $GUI_EVENT_CLOSE
Exit
case $msg = $hbtnWakeUp
for $raum = 1 to $ordner[0]
For $pc = 1 to 29
if BITAND(GUICtrlRead($hchks1[$text][$zeile1]),$GUI_CHECKED) = $GUI_CHECKED Then
msgbox( 64,"",$hchks2)
EndIf
Next
Next
EndSelect
WEnd
nur das problem ist es das er nicht in die nächste schleife will
im anhang sind noch 2 beispiel texte