你自己总得有个源码吧?$ini = @ScriptDir&"\我的电脑.ini"
$var = IniReadSection($ini, "计算机=IP")
If @error Then
IniWrite($ini, "计算机=IP", "A001", "192.168.1.1")
IniWrite($ini, "计算机=IP", "A002", "192.168.1.2")
IniWrite($ini, "计算机=IP", "A003", "192.168.1.3")
IniWrite($ini, "计算机=IP", "A004", "192.168.1.4")
ShellExecute($ini)
exit
EndIf
#include <ComboConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
$Form1 = GUICreate("Form1", 633, 454)
$Combo1 = GUICtrlCreateCombo("", 184, 168, 257, 25,$CBS_DROPDOWNLIST)
For $i = 1 To $var[0][0]
if ping($var[$i][1],500) <> 0 then GUICtrlSetData($Combo1,$var[$i][0],$var[$i][0])
Next
GUISetState(@SW_SHOW)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
|