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("", 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
- ExitLoop
- EndSwitch
- WEnd
- Run("notepad.exe")
- WinWait('Untitled - Notepad')
- WinActivate('Untitled - Notepad')
- Send(GUICtrlRead($Input))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement