本帖最后由 zhouhaijin 于 2015-3-13 10:58 编辑
鼠标在ListView的项目或滚动条……上按下,会暂停执行,怎么让它不暂停?
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
Opt("GUIOnEventMode", 1)
Local $i
GUICreate("listview items", 220, 250, 100, 200, -1)
GUISetOnEvent($GUI_EVENT_CLOSE, "_exit")
$listview = GUICtrlCreateListView("col_1 |col_2 |col_3 ", 10, 10, 200, 150)
$Label1 = GUICtrlCreateLabel("", 90, 190, 80, 30)
GUICtrlSetFont(-1, 15, 400, 0, "MS Sans Serif")
GUISetState()
While 1
$i += 1
GUICtrlCreateListViewItem("item1_" & $i & "|item2_" & $i & "|item3_" & $i & "", $listview)
GUICtrlSetData($Label1, $i)
Sleep(1000)
WEnd
Func _exit()
Exit
EndFunc ;==>_exit
|