自己改改吧.
#include <Array.au3>
Global $WshShell, $Shell, $FileSystem, $History_Url, $UrlList[1][2], $i = 0
$WshShell = ObjCreate("WScript.Shell")
$Shell = ObjCreate("Shell.Application")
$FileSystem = ObjCreate("Scripting.FileSystemObject")
$History_Url = $Shell.Namespace($WshShell.RegRead("HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\history"))
RecSrch($History_Url)
;~ ReDim $UrlList[$i][2]
_ArrayDisplay($UrlList, 'URL')
Func RecSrch($obj)
For $objItem In $obj.Items()
If $objItem.IsFolder() Then
$objSubFolder = $objItem.GetFolder
For $objSubItem In $objSubFolder.Items()
If $objSubItem.IsFolder = False Then
If StringLeft($objSubFolder.GetDetailsOf($objSubItem, 0), 4) = 'http' Then
$UrlList[$i][0] = $objSubFolder.GetDetailsOf($objSubItem, 0)
$UrlList[$i][1] = $objSubFolder.GetDetailsOf($objSubItem, 2)
ClipPut($objSubFolder.GetDetailsOf($objSubItem, 2))
$i += 1
ReDim $UrlList[$i + 1][2]
EndIf
EndIf
Next
RecSrch($objSubFolder)
EndIf
Next
EndFunc ;==>RecSrch
|