jut thx
hab mir da ma was gebastelt aber es hapert nochn bisschen
Spoiler anzeigen
#include <ListViewConstants.au3>
#include <StructureConstants.au3>
#include<GUIConstantsEx.au3>
#include<WindowsConstants.au3>
#include <GUIListView.au3>
#include <File.au3>
GUICreate("", 750, 450)
$lview = GUICtrlCreateListView("Full HD |Pfad", 0, 0, 500, 300, -1, BitOR($LVS_EX_FULLROWSELECT, $LVS_EX_TRACKSELECT))
$1080p = _FileListToArray(@ScriptDir & "\Movies\1080p\", "*", "2")
$hListView = GUICtrlGetHandle($lview)
_GUICtrlListView_SetColumnWidth($hListView, 0, 180)
_GUICtrlListView_SetColumnWidth($hListView, 1, $LVSCW_AUTOSIZE_USEHEADER)
For $i = 1 To $1080p[0]
GUICtrlCreateListViewItem($1080p[$i] & "|" & _PathFull($1080p[$i]), $lview)
$crt = _PathFull($1080p[$i])
Next
;_Arraydisplay($1080p)
[/autoit] [autoit][/autoit] [autoit]GUISetState()
[/autoit] [autoit][/autoit] [autoit]GUIRegisterMsg($WM_NOTIFY, "WM_NOTIFY")
Do
$msg = GUIGetMsg()
Until $msg = $GUI_EVENT_CLOSE
Func WM_NOTIFY($hWnd, $iMsg, $iwParam, $ilParam)
Local $hWndFrom, $iIDFrom, $iCode, $tNMHDR, $hWndListView
$hWndListView = $hListView
If Not IsHWnd($hListView) Then $hWndListView = GUICtrlGetHandle($hListView)
$tNMHDR = DllStructCreate($tagNMHDR, $ilParam)
$hWndFrom = HWnd(DllStructGetData($tNMHDR, "hWndFrom"))
$iIDFrom = DllStructGetData($tNMHDR, "IDFrom")
$iCode = DllStructGetData($tNMHDR, "Code")
Switch $hWndFrom ; Control
Case $hWndListView ; If Control = ListView
Switch $iCode ; Event
Case $NM_DBLCLK ; Sent by a list-view control when the user double-clicks an item with the left mouse button
msgbox(0,"",$crt) ;----- WAT PASSIERN SOLL
EndSwitch
EndSwitch
Return $GUI_RUNDEFMSG
EndFunc ;==>WM_NOTIFY
der soll mir bei
[autoit]msgbox(0,"",$crt) ;----- WAT PASSIERN SOLL
[/autoit]in $crt
den richtigen pfad ausgeben von dem selektierten listviewitem..
gibt mir aber nur logischerweise das letzte aus
wegen der for schleife weil der zähler dann am ende ist..
aber iwie ich raffs einfach nich mehr ![]()