看在楼主头像的份上,给个源码。#include <IE.au3>
#include <Array.au3>
#include <ListViewConstants.au3>
#include <WindowsConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
$Form1 = GUICreate("Form1", 620, 360)
local $a = _GetData()
$ListView1 = GUICtrlCreateListView($a[0], 10, 10, 600, 340)
For $i = 1 To 8
GUICtrlCreateListViewItem($a[$i],$ListView1)
Next
GUISetState(@SW_SHOW)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
Func _GetData()
Local $oIE = _IECreate("http://www.kitco.cn/",0,0)
Local $oTable = _IETableGetCollection ($oIE, 49)
Local $aTableData = _IETableWriteToArray ($oTable, True)
_IEQuit($oIE)
Local $str,$listviewitem[9]
For $i = 0 To 8
$str = ""
For $j = 0 To 8
$str &= $aTableData[$i][$j]&"|"
Next
$listviewitem[$i] = StringTrimRight($str,1)
Next
Return $listviewitem
endfunc
|