要改变某一格里面的数据,是很容易的,至于条件成不成立,楼主自己写代码判断了
下面只是举例子什么改内容#include <GUIConstantsEx.au3>
#include <ListViewConstants.au3>
#include <WindowsConstants.au3>
#Include <GuiListView.au3>
Opt("GUIOnEventMode", 1)
$Form1 = GUICreate("Form1", 623, 445, 192, 124)
GUISetOnEvent($GUI_EVENT_CLOSE, "_GUI")
$ListView1 = GUICtrlCreateListView("", 128, 72, 385, 226,$LVS_SHOWSELALWAYS,$LVS_EX_GRIDLINES)
_GUICtrlListView_AddColumn($ListView1, "计算机名", 100, 2) ;在ListView内创建一列,100 表示列的宽度,2 表示居中(0=左对齐,1=右对齐),下同
_GUICtrlListView_AddColumn($ListView1, "IP地址", 150, 2)
_GUICtrlListView_AddColumn($ListView1, "状态", 130, 2)
GUICtrlCreateListViewItem("AAA|192.168.0.1|SSSSSS", $ListView1)
GUISetState(@SW_SHOW)
While 1
Sleep(1000)
_GUICtrlListView_SetItemText($ListView1, 0, @HOUR & ":" &@MIN & ":" & @SEC, 2)
WEnd
Func _GUI()
Switch @GUI_CtrlId
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
EndFunc
|