#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 259, 83, 192, 114)
$Label1 = GUICtrlCreateLabel("测试测试测试测试测试测试", 64, 24)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
$i=1
;For $i = 1 To 254
;$var = Ping("192.168.0." & $i)
;GUICtrlSetData($Label1, "192.168.0." & $i & " Re: " & $var & " ms")
;Next
$j=0
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
If Mod($j,64)=0 Then
If $i<=254 Then
$var = Ping("192.168.0." & $i,100)
GUICtrlSetData($Label1, "192.168.0." & $i & " Re: " & $var & " ms")
$i=$i+1
EndIf
EndIf
If $j<20000 Then
$j=$j+1
EndIf
WEnd
这样算不算呢?给分,哈哈.本来想一天回一贴,今天已经第二贴了 |