#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
$Form1 = GUICreate("同学毕业照片集", 483, 316, 296, 221)
$Pic1 = GUICtrlCreatePic("C:\Users\CEAO\Desktop\Hasnne.jpg", 0, 0, 481, 129, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
$Label1 = GUICtrlCreateInput("", 120, 168, 185, 21)
GUICtrlCreateLabel("用户名:", 48, 168, 72, 24)
GUICtrlSetFont(-1, 12, 800, 0, "MS Sans Serif")
GUICtrlCreateLabel("密码:", 48, 200, 55, 24)
GUICtrlSetFont(-1, 12, 800, 0, "MS Sans Serif")
$Label2 = GUICtrlCreateInput("", 124, 198, 177, 21,$ES_PASSWORD)
GUICtrlSetBkColor(-1, 0x3399FF)
$Button1 = GUICtrlCreateButton("登录", 152, 248, 121, 41)
GUICtrlSetFont(-1, 16, 400, 0, "宋体")
GUISetState(@SW_SHOW)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
If GUICtrlRead($Label1) == 'abc' And GUICtrlRead($Label2) == '123' Then MsgBox(0 ,"ok" ,"")
EndSwitch
WEnd