回复 1# acbs #include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("控件测试", 237, 85, 450, 341)
$Input1 = GUICtrlCreateInput("aaa", 14, 14, 121, 21)
$Input2 = GUICtrlCreateInput("bbb", 14, 44, 121, 21)
$Button1 = GUICtrlCreateButton("Button1", 150, 14, 75, 25)
$Button2 = GUICtrlCreateButton("Button2", 150, 44, 75, 25)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
MsgBox(0,"对话框","输入框1的内容是:"&GUICtrlRead($Input1))
Case $Button2
Exit
EndSwitch
WEnd
|