Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #RequireAdmin
- #include <EditConstants.au3>
- #include <GUIConstantsEx.au3>
- #include <WindowsConstants.au3>
- Global $button1
- Global $name
- Global $name2
- Global $Input1
- while 1
- $Form1=GUICreate("TestGUI", 199, 110, 5, 5, "", "")
- $Input1=GUICtrlCreateInput("",6,6,70,60,"")
- $button1 = GUICtrlCreateButton("ENTER", 80, 30, 60, 40, "", "")
- GUISetState(@SW_SHOW)
- While 1
- $nMsg = GUIGetMsg()
- Switch $nMsg
- Case -3
- Exitloop 2
- Case $button1
- $name = Iniread(@DesktopDir&"\TestGUI.ini", "User", @UserName, "default")
- Do
- Until GUICtrlRead($Input1) = $name
- MsgBox(64, "Eingabe", "Passwort wurde richtig eingegeben!")
- Exit
- ExitLoop
- GUIDelete($Form1)
- endswitch
- WEnd
- WEnd
Add Comment
Please, Sign In to add comment