#include #include #include #include $file = "list.txt" $iCountLines = 1 $g =2 Do kill() Sleep (500) Until $g =1 Func kill() $iCountLines = _FileCountLines("list.txt") Do Example() $iCountLines -=1 Until $iCountLines = 1 EndFunc Func Example() ; Open the file for reading and store the handle to a variable. $hFileOpen = FileOpen($file, $FO_READ) If $hFileOpen = -1 Then MsgBox($MB_SYSTEMMODAL, "", "An error occurred when reading the file.") Return False EndIf ; Read the fist line of the file using the handle returned by FileOpen. $sFileRead = FileReadLine($hFileOpen, $iCountLines) ; Display procees ure kiling. ToolTip ($iCountLines&" task kill:" & @CRLF & $sFileRead,0,0) ;~ shold kill the preces but just make me wate time ProcessClose ($sFileRead) ; Close the handle returned by FileOpen. FileClose($hFileOpen) Sleep (500) EndFunc ;==>Example