Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <GUIConstantsEx.au3>
- #include <EditConstants.au3>
- GUICreate("Password Test", 500, 200)
- $Input = GUICtrlCreateInput("Password", 10, 20, 40, 20, BitOR($ES_PASSWORD, $ES_AUTOHSCROLL))
- $OK = GUICtrlCreateButton("OK", 60, 20, 40, 20)
- GUISetState(@SW_SHOW, "Password Test")
- While 1
- $nMsg = GUIGetMsg()
- Switch $nMsg
- Case $GUI_EVENT_CLOSE
- GUISetState(@SW_HIDE, "Password Test")
- ExitLoop
- Case $OK
- MsgBox(0, "Password", "Password has " & StringLen(GUICtrlRead($Input)) & " characters!")
- ExitLoop
- EndSwitch
- WEnd
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement