本帖最后由 wsfda 于 2011-5-22 11:57 编辑 #include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 360, 169, 306, 287)
$Input1 = GUICtrlCreateInput("", 80, 56, 193, 21)
$Button1 = GUICtrlCreateButton("OK", 136, 104, 65, 33)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
$z = GUICtrlRead ( $Input1)
If $z = "" Then
MsgBox("警告","警告","请输入内容")
Else
MsgBox("提示","您输入了",$z)
EndIf
EndSwitch
WEnd
|