Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Gui, Add, Edit, x70 y49 w100 vUser
- Gui, Add, Edit, x70 y99 w100 vPassword Password
- Gui, Add, Text, x22 y49, Usuário:
- Gui, Add, Text, x22 y99, Senha:
- Gui, Add, Button, x72 y159 w100 h30 Default gLogin, Entrar
- Gui, Show, w258 h222, LOGIN
- return
- Login:
- Gui, Submit, NoHide
- if (user && password)
- {
- pass1 := A_Hour + A_DD
- pass2 := A_Min + A_MM
- senha = %pass1%%pass2%
- if (user = "admin" && password = senha)
- {
- MsgBox, 64, Sucesso, Seja bem-vindo!
- ExitApp
- }
- else
- {
- MsgBox, 16, Aviso, Senha ou usuário incorreto!
- GuiControl,, User
- GuiControl,, Password
- GuiControl, Focus, User
- }
- }
- else
- {
- MsgBox, 48, Aviso, Preencha todos os campos!
- }
- return
- GuiClose:
- ExitApp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement