如何获得值并赋值,这段我没看懂,我按自己的感觉搞#include <GUIConstants.au3>
Opt("GUIOnEventMode", 1)
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 633, 454, 193, 115)
$Edit1 = GUICtrlCreateEdit("", 16, 16, 585, 401)
GUICtrlSetData(-1, "Edit1")
$_test = GUICtrlCreateButton("test", 20, 420, 70, 20, 0)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
GUICtrlSetOnEvent($_test, "_test")
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
Func _test()
$var = GUICtrlRead($Edit1)
$array = StringSplit(StringReplace($var, "\n", @LF), @LF)
for $i = 1 to $array[0]
MsgBox(4096,"xx",$array[$i])
next
EndFunc
|