Jump to content

login


Recommended Posts

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

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
Where 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

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

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;)
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...