#AutoIt3Wrapper_UseX64=n
#RequireAdmin
#include <GuiListView.au3>
#include <WinAPISysWin.au3>
Local $sTitle = "Snapshot - Select the Volumes you want to save"
Local $hWnd = _WinAPI_EnumChildWindows(WinGetHandle($sTitle))
For $i = 0 To UBound($hWnd)
If $hWnd[$i][1] = 'SysListView32' Then
$hWnd = $hWnd[$i][0]
ExitLoop
EndIf
Next
Local $sArray, $sColumnTitle, $sColumn = _GUICtrlListView_GetColumnCount($hWnd)
For $i = 0 To $sColumn
$sArray = _GUICtrlListView_GetColumn($hWnd, $i)
$sColumnTitle &= $sArray[5] & '|'
Next
Local $sCount = _GUICtrlListView_GetItemCount($hWnd)
Local $aListView[0][$sColumn]
For $i = 0 To $sCount
_ArrayAdd($aListView, _GUICtrlListView_GetItemTextString($hWnd, $i))
Next
For $i = 0 To $sColumn
_GUICtrlListView_SetColumn($hWnd, $i, $i)
Next
_ArrayDisplay($aListView, _WinAPI_GetWindowText($hWnd) & ' ' & $hWnd, '', 64, '', StringTrimRight($sColumnTitle, 1))
|