realkiller Posted November 13, 2006 Share Posted November 13, 2006 how can i make a login screen iam a little bit stuck atm $12 = while 1 $passwd = InputBox("Security Check", "Enter your password.",$12, "") WEnd Remote 3.1 BetaRemote Media Player ControlUSB Security 1.2 Link to comment Share on other sites More sharing options...
Xenobiologist Posted November 13, 2006 Share Posted November 13, 2006 Hi, may have a login at my LoginWrapper or just do it this way: $password = "test" Do Sleep(100) Until Login() Func Login() $login_Password_I = InputBox("Login", "Password please: ", "", "*") If $login_Password_I == $password Then Return 1 Return 0 EndFunc ;==>Login So long, Mega Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times Link to comment Share on other sites More sharing options...
PaulIA Posted November 13, 2006 Share Posted November 13, 2006 how can i make a login screen iam a little bit stuck atm $12 = while 1 $passwd = InputBox("Security Check", "Enter your password.",$12, "") WEndWhere are you stuck at? You've got the basics other than some minor tweaking. For example: Func CheckPassword() Local $sPassword while 1 $sPassword = InputBox("Security Check", "Enter your password:", "", "*") ; ; Validate password and call ExitLoop if valid ; wend EndFunc Auto3Lib: A library of over 1200 functions for AutoIt Link to comment Share on other sites More sharing options...
Paulie Posted November 13, 2006 Share Posted November 13, 2006 Local $Password = "Password" Do $sPass = InputBox("Security Check", "Enter your password:", "", "*") If $sPass = $Password Then MsgBox(0, "Access Granted", "Thank you, you have logged in successfully.") Else MsgBox(0, "Access Denied", "Sorry, you did not enter the correct password."&@CRLF&"Try Again.") Endif Until $sPass = $Password If you want, you can not use it as a function, and just do it like this. Link to comment Share on other sites More sharing options...
realkiller Posted November 14, 2006 Author Share Posted November 14, 2006 Local $Password = "Password" Do $sPass = InputBox("Security Check", "Enter your password:", "", "*") If $sPass = $Password Then MsgBox(0, "Access Granted", "Thank you, you have logged in successfully.") Else MsgBox(0, "Access Denied", "Sorry, you did not enter the correct password."&@CRLF&"Try Again.") Endif Until $sPass = $Password If you want, you can not use it as a function, and just do it like this.thx for the support got it now;) Remote 3.1 BetaRemote Media Player ControlUSB Security 1.2 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now