Advertisement
DanielDresto

test

May 2nd, 2021
753
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 0.59 KB | None | 0 0
  1. #include <GUIConstantsEx.au3>
  2. #include <EditConstants.au3>
  3.  
  4. GUICreate("Password Test", 500, 200)
  5. $Input = GUICtrlCreateInput("", 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.             ExitLoop
  16.     EndSwitch
  17.  WEnd
  18. Run("notepad.exe")
  19. WinWait('Untitled - Notepad')
  20. WinActivate('Untitled - Notepad')
  21. Send(GUICtrlRead($Input))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement