#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))
GUICtrlCreateInput("", 120, 168, 185, 21)
$Label1 = GUICtrlCreateLabel("用户名:", 48, 168, 72, 24)
GUICtrlSetFont(-1, 12, 800, 0, "MS Sans Serif")
$Label2 = GUICtrlCreateLabel("密码:", 48, 200, 55, 24)
GUICtrlSetFont(-1, 12, 800, 0, "MS Sans Serif")
GUICtrlCreateInput("", 124, 198, 177, 21)
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 $Label1.text = abc And $Label2.text = 123 Then MsgBox(0 ,"ok" ,"")
EndSwitch
WEnd