Halle Zusammen:
will einen Explorer Programmieren, um meine Script-Skills zu verbessern....
Folgendes Problem: suche einen Befehl der erkennt, wenn ich das erste mal auf das "+" klicke, damit ich ihm sagen kann, dass er weitere Ordner im Unterordner hinzufügen kann...! denn ich kann ja nich die komplette liste der Ordner am Anfang erstellen.
Wisst ihr was ich meine??
Folgendese Quelltext:
[autoit]#include <GUIConstantsEx.au3>
#include <GUIListBox.au3>
#include <WindowsConstants.au3>
#include <GuiConstantsEx.au3>
#include <GuiTreeView.au3>
Local $hItem[20], $hChildItem[30], $iYItem = 0, $iRand, $hTreeView
Local $iStyle = BitOR($TVS_EDITLABELS, $TVS_HASBUTTONS, $TVS_HASLINES, $TVS_LINESATROOT, $TVS_DISABLEDRAGDROP, $TVS_SHOWSELALWAYS)
$Form1 = GUICreate("Form1", 633, 454, 192, 114)
$hTreeView = GUICtrlCreateTreeView(2, 2, 600, 268, $iStyle, $WS_EX_CLIENTEDGE)
GUISetState(@SW_SHOW)
$hStateImage = _GUIImageList_Create(16, 16, 5, 3)
_GUIImageList_AddIcon($hStateImage, "shell32.dll", 3)
_GUIImageList_AddIcon($hStateImage, "shell32.dll", 4)
_GUICtrlTreeView_SetStateImageList($hTreeView, $hStateImage) ;Zum Verbinden der Icons mit den NetzwerkBäumen
$drives = DriveGetDrive ("ALL")
_GUICtrlTreeView_BeginUpdate($hTreeView)
For $x = 1 To $drives[0]
$hItem[$x] = _GUICtrlTreeView_Add($hTreeView, 0, $drives[$x], 4, 5)
_GUICtrlTreeView_SetStateImageIndex($hTreeView, $hItem[$x], 1)
For $y = 1 To 3
$hChildItem[$iYItem] = _GUICtrlTreeView_AddChild($hTreeView, $hItem[$x], "New Child", 0, 3)
_GUICtrlTreeView_SetStateImageIndex($hTreeView, $hChildItem[$iYItem], 1)
$iYItem += 1
Next
$iYItem = 0
Next
_GUICtrlTreeView_EndUpdate($hTreeView)
[/autoit][autoit][/autoit][autoit]While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
Befehl schon gesucht und leider nicht gefunden: freu mich über eure hilfe!