本帖最后由 annybaby 于 2011-5-18 00:24 编辑
回复 3# figons
经验证,A大的第一种方法也完全可以~~#include <GUIConstantsEx.au3>
#include <ListViewConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
Global $hostnum = "na98263215",$mac = "45b6d722",$status = "正在测试" ,$servernum = "bjl1s101"
$Form1 = GUICreate("Form1", 500,200, 192, 124)
$listView = GuiCtrlCreateListView("主机名 |MAC地址 |测试状态 |服务器 ",16, 72, 457, 97)
GuiCtrlCreateListViewItem($hostnum&'|'&$mac&'|'&$status&'|'&$servernum, $listView)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
|