#include <ButtonConstants.au3>
#include <ComboConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 222, 275, 315, 334)
$Label1 = GUICtrlCreateLabel("1", 28, 24, 10, 17)
$Label2 = GUICtrlCreateLabel("2", 30, 50, 10, 17)
$Label3 = GUICtrlCreateLabel("3", 28, 78, 10, 17)
$Combo1 = GUICtrlCreateCombo("192.168.1.1", 46, 20, 145, 25, BitOR($CBS_DROPDOWN,$CBS_AUTOHSCROLL))
GUICtrlSetData(-1, "192.168.1.2|192.168.1.3")
$Combo2 = GUICtrlCreateCombo("192.168.1.1", 46, 50, 145, 25, BitOR($CBS_DROPDOWN,$CBS_AUTOHSCROLL))
GUICtrlSetData(-1, "192.168.1.2|192.168.1.3")
$Combo3 = GUICtrlCreateCombo("192.168.1.1", 48, 76, 145, 25, BitOR($CBS_DROPDOWN,$CBS_AUTOHSCROLL))
GUICtrlSetData(-1, "192.168.1.2|192.168.1.3")
$Button1 = GUICtrlCreateButton("Button1", 66, 190, 75, 25)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
$s1=GUICtrlRead($Combo1)
$s2=GUICtrlRead($Combo2)
$s3=GUICtrlRead($Combo3)
FileWriteLine("mac_.txt","asdasd"&$s1&"sadxcv")
FileWriteLine("mac_.txt","asdasd"&IniRead("mac.ini","mac",$s1,"00:00:00:00:00")&"sadxcv")
FileWriteLine("mac_.txt","asdasd"&$s2&"sadxcv")
FileWriteLine("mac_.txt","asdasd"&IniRead("mac.ini","mac",$s2,"00:00:00:00:00")&"sadxcv")
FileWriteLine("mac_.txt","asdasd"&$s3&"sadxcv")
FileWriteLine("mac_.txt","asdasd"&IniRead("mac.ini","mac",$s3,"00:00:00:00:00")&"sadxcv")
MsgBox(0,"","生成完毕")
EndSwitch
WEnd