#include"CoProcEx.au3" #include #include #include Func Thread_sss($iLw1) _GUICtrlListView_SetItem($iLw1, "test", 0, 1) EndFunc Global Const $LVM_CHECKED = 8192, $LVM_UNCHECKED = 4096 Global $iLastItemChecked = -1, $blItemAdded = False #region GUI Local $hGUI = GUICreate("MyGUI", 500, 500) Global $iLw1 = GUICtrlCreateListView("Column1|Column2", 10, 10, 480, 250, Default) For $i = 0 To 9 $blItemAdded = True GUICtrlCreateListViewItem("Item " & $i & "|" & "aaa" & $i, $iLw1) Next _GUICtrlListView_SetItemChecked($iLw1, 1) $iLastItemChecked = 1 _GUICtrlListView_SetItem($iLw1, "thread", 0, 1) ;Thread_ss($iLw1) GUISetState(@SW_SHOW, $hGUI) #endregion GUI Local $aText = 0 _CoProc_Create('Thread_ss',$iLw1) Func a($a) MsgBox(0,0,$a) EndFunc ;_CoProc_Create('Thread_', $iLw1, '1') While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE ExitLoop EndSwitch Sleep(10) WEnd GUIDelete($hGUI) Func Thread_ss($iLw1) _GUICtrlListView_SetItem($iLw1, "test", 0, 1) EndFunc