Created
October 1, 2012 13:51
-
-
Save grayatrox/3811905 to your computer and use it in GitHub Desktop.
PasswordBox
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
EN_UPDATE := 0x0400 | |
OnMessage(EN_UPDATE, "EN_UPDATE") | |
Gui, Main:+OwnDialogs | |
Gui, Main: Add, Button,gChangePassword,Change Password | |
Gui, Main: Show | |
Return | |
MainGuiClose: | |
ExitApp | |
ChangePassword: | |
Gui, Main: +Disabled | |
Gui, ChgPWD:+OwnerMain -Resize -MaximizeBox | |
Gui, ChgPWD: Add, Text, x10 y10 w50 h20, Password: | |
Gui, ChgPWD: Add, Edit, x60 y10 w100 h20 password vpwd | |
Gui, ChgPWD: Add, Text, x170 y10 w90 h20, Confirm Password: | |
Gui, ChgPWD: Add, Edit, x260 y10 w100 h20 password vpwdCOnf | |
Gui, ChgPWD: Add, Button, x320 w40 y40 disabled gChgPWDGuiClose, OK | |
Gui, ChgPWD: Add, button, x270 y40 w40p gChgPWDGuiClose, Cancel | |
Gui, ChgPWD: Show,, Change Password | |
Return | |
ChgPWDGuiClose: | |
Gui, ChgPWD: Destroy | |
Gui, Main: -Disabled | |
Gui, Main: Show | |
Return | |
EN_UPDATE(){ | |
Tooltip Change | |
Gui, ChgPWD: Submit, nohide | |
if (pwd == pwdConf && StrLen(pwd) >= 8) | |
Msgbox Password Match | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment