#include <GUIConstantsEx.au3>$UNAME='123'$PWD='123'Local $GID=GUICreate("登陆提示",180,180)GUICtrlCreateLabel("输入你的用户名:",20,40,140)$username=GUICtrlCreateInput("",20,61,140,20)GUICtrlCreateLabel("请输入密码:",20,82,140)$password=GUICtrlCreateInput("",20,103,140,20)Local $logins=GUICtrlCreateButton("登陆",20,142,50,20)Local $about=GUICtrlCreateButton("取消",80,142,50,20)GUISetState()Do $SHOW=GUIGetMsg() Select Case $SHOW=$logins GUICtrlCreateLabel("",20,162) If $username==$UNAME And $password==$PWD Then GUICtrlCreateLabel(" ",20,162) GUICtrlCreateLabel("成功",20,162) Else GUICtrlCreateLabel(" ",20,162) GUICtrlCreateLabel("失败",20,162) EndIf Case $SHOW=$about ExitLoop EndSelect
Until $SHOW=$GUI_EVENT_CLOSE
登录时老是提示失败。失败。失败。悲剧啊。
Until $SHOW=$GUI_EVENT_CLOSE
登录时老是提示失败。失败。失败。悲剧啊。



