Pour les listviews elles ont chacune:
Func WM_DROPFILES_FUNC($hWnd, $msgID, $wParam, $lParam)
Local $nSize, $pFileName
Local $nAmt = DllCall("shell32.dll", "int", "DragQueryFile", "hwnd", $wParam, "int", 0xFFFFFFFF, "ptr", 0, "int", 255)
For $i = 0 To $nAmt[0] - 1
$nSize = DllCall("shell32.dll", "int", "DragQueryFile", "hwnd", $wParam, "int", $i, "ptr", 0, "int", 0)
$nSize = $nSize[0] + 1
$pFileName = DllStructCreate("char[" & $nSize & "]")
DllCall("shell32.dll", "int", "DragQueryFile", "hwnd", $wParam, "int", $i, "ptr", DllStructGetPtr($pFileName), "int", $nSize)
ReDim $gaDropFiles[$i + 1]
$gaDropFiles[$i] = DllStructGetData($pFileName, 1)
$pFileName = 0
Next
EndFunc
Local $nSize, $pFileName
Local $nAmt = DllCall("shell32.dll", "int", "DragQueryFile", "hwnd", $wParam, "int", 0xFFFFFFFF, "ptr", 0, "int", 255)
For $i = 0 To $nAmt[0] - 1
$nSize = DllCall("shell32.dll", "int", "DragQueryFile", "hwnd", $wParam, "int", $i, "ptr", 0, "int", 0)
$nSize = $nSize[0] + 1
$pFileName = DllStructCreate("char[" & $nSize & "]")
DllCall("shell32.dll", "int", "DragQueryFile", "hwnd", $wParam, "int", $i, "ptr", DllStructGetPtr($pFileName), "int", $nSize)
ReDim $gaDropFiles[$i + 1]
$gaDropFiles[$i] = DllStructGetData($pFileName, 1)
$pFileName = 0
Next
EndFunc
Func filelist()
For $i = 0 To UBound($gaDropFiles) - 1
Local $sDrive = "", $sDir = "", $sFilename = "", $sExtension = ""
Local $aPathSplit = _PathSplit($gaDropFiles[$i], $sDrive, $sDir, $sFilename, $sExtension)
Local $fichier=$sFilename&$sExtension
if $sExtension='.mp4' or $sExtension='.mkv' or $sExtension='.flv' or $sExtension='.mov' or $sExtension='.avi' or $sExtension='.webm' or $sExtension='.mp3' or $sExtension='.aac' or $sExtension='.ac3' or $sExtension='.PCM' Then
Local $test=_GUICtrlListView_FindText(@GUI_DropId,$fichier)
Else
ContinueLoop
EndIf
If $test>-1 Then
ContinueLoop
Else
GUICtrlCreateListViewItem($fichier,@GUI_DropId)
EndIf
Next
EndFunc
For $i = 0 To UBound($gaDropFiles) - 1
Local $sDrive = "", $sDir = "", $sFilename = "", $sExtension = ""
Local $aPathSplit = _PathSplit($gaDropFiles[$i], $sDrive, $sDir, $sFilename, $sExtension)
Local $fichier=$sFilename&$sExtension
if $sExtension='.mp4' or $sExtension='.mkv' or $sExtension='.flv' or $sExtension='.mov' or $sExtension='.avi' or $sExtension='.webm' or $sExtension='.mp3' or $sExtension='.aac' or $sExtension='.ac3' or $sExtension='.PCM' Then
Local $test=_GUICtrlListView_FindText(@GUI_DropId,$fichier)
Else
ContinueLoop
EndIf
If $test>-1 Then
ContinueLoop
Else
GUICtrlCreateListViewItem($fichier,@GUI_DropId)
EndIf
Next
EndFunc
ex:
Voila Bonne continuation
et un grand merci à la communauté d'autoitscript
Biz à tous