本帖最后由 happytc 于 2012-5-3 00:29 编辑
回复 1# yufei8051
#include <Array.au3>
#include <GuiListView.au3>
GetListText()
Func GetListText()
Local $iFlag, $hWin, $hCtrl, $iCount = 0
$iFlag = ShellExecuteWait("Explorer", @WindowsDir)
Sleep(200)
If Not $iFlag Then Return
$hWin = WinGetHandle("[CLASS:ExploreWClass]")
$hCtrl =ControlGetHandle($hWin, "", "SysListView321")
$iCount = _GUICtrlListView_GetItemCount($hCtrl)
If $iCount == 0 Then Return
Local $aItems[$iCount]
For $i = 0 To $iCount-1
$aItems[$i] = _GUICtrlListView_GetItemText($hCtrl, $i)
Next
_ArrayDisplay($aItems)
EndFunc
|