Advertisement
DanielDresto

noveeee

May 3rd, 2021
928
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 0.58 KB | None | 0 0
  1. #include <GUIConstantsEx.au3>
  2. #include <EditConstants.au3>
  3.  
  4. GUICreate("Password Test", 500, 200)
  5. $Input = GUICtrlCreateInput("Password", 10, 20, 40, 20, BitOR($ES_PASSWORD, $ES_AUTOHSCROLL))
  6. $OK = GUICtrlCreateButton("OK", 60, 20, 40, 20)
  7. GUISetState(@SW_SHOW, "Password Test")
  8. While 1
  9.     $nMsg = GUIGetMsg()
  10.     Switch $nMsg
  11.         Case $GUI_EVENT_CLOSE
  12.             GUISetState(@SW_HIDE, "Password Test")
  13.             ExitLoop
  14.         Case $OK
  15.             MsgBox(0, "Password", "Password has " & StringLen(GUICtrlRead($Input)) & " characters!")
  16.             ExitLoop
  17.     EndSwitch
  18. WEnd
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement