#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
HotKeySet("{Enter}", "captureEsc")
#Region ### START Koda GUI section ### Form=
$Form1_1 = GUICreate("Form1", 368, 237, 268, 268)
$Label1 = GUICtrlCreateLabel("姓名", 113, 40, 52, 17)
GUICtrlSetTip(-1, "1")
$Input1 = GUICtrlCreateInput("", 185, 40, 76, 21)
$Input2 = GUICtrlCreateInput("", 185, 80, 76, 21)
$Input3 = GUICtrlCreateInput("", 185, 120, 76, 21)
$OK_Btn = GUICtrlCreateButton("确定", 81, 208, 76, 28, 0)
$Button1 = GUICtrlCreateButton("退出", 217, 208, 76, 28, 0)
$Label2 = GUICtrlCreateLabel("性别", 113, 88, 52, 17)
$Label3 = GUICtrlCreateLabel("性别", 113, 128, 52, 17)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
Func captureEsc()
; 这里可定义要做的各种任务
Send("{Tab}")
EndFunc
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Form1_1
EndSwitch
WEnd
|