Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #RequireAdmin
- #include <GUIConstantsEx.au3>
- #include <EditConstants.au3>
- $hGUI = GUICreate("Test", 200, 120)
- $cInput = GUICtrlCreateInput("Password", 32, 8, 145, 21, BitOR($GUI_SS_DEFAULT_INPUT,$ES_PASSWORD, $ES_AUTOHSCROLL))
- $sShow = GUICtrlCreateCheckbox("Show pass", 32, 40, 121, 17)
- GUICtrlSetState($sShow, $GUI_FOCUS)
- GUISetState()
- Global $sDefPasswordChar = GUICtrlSendMsg($cInput, $EM_GETPASSWORDCHAR, 0, 0)
- While 1
- Switch GUIGetMsg()
- Case $GUI_EVENT_CLOSE
- Exit
- Case $sShow
- Switch GUICtrlRead($sShow)
- Case 1
- GUICtrlSendMsg($cInput, $EM_SETPASSWORDCHAR, 0, 0)
- Case 4
- GUICtrlSendMsg($cInput, $EM_SETPASSWORDCHAR, $sDefPasswordChar, 0)
- EndSwitch
- GUICtrlSetState($cInput, $GUI_FOCUS)
- GUICtrlSetState($sShow, $GUI_FOCUS)
- EndSwitch
- WEnd
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement