Skip to content

Instantly share code, notes, and snippets.

@grayatrox
Created October 1, 2012 13:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save grayatrox/3811905 to your computer and use it in GitHub Desktop.
Save grayatrox/3811905 to your computer and use it in GitHub Desktop.
PasswordBox
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