Jump to content
Sign in to follow this  

Login Code

Recommended Posts


Here is what I have so far

#include <GUIconstants.au3>

$Dimitri = "Dimitri"
$DimitrisPassword = "password"
$Kaleb = "Kaleb"
$KalebsPassword = "darkthrone"
$LoginLabel = GUICtrlCreateLabel("User Name", 50, 38)
$Login = GUICtrlCreateInput("", 50, 50)
$PasswordLabel = GUICtrlCreateLabel("Password", 50, 88)
$Password = GUICtrlCreateInput("", 50, 100, 70, -1, $ES_PASSWORD)
$LoginButton = GUICtrlCreateButton("Login", 75, 150)

$bloop = 1
While $bloop = 1
 $msg = GUIGetMsg()
         Case $msg = $GUI_EVENT_CLOSE
         Case $msg = $LoginButton
          If GUICtrlRead($Login) <> $Dimitri Or $Kaleb and GUICtrlRead($Password) <> "password" Then
             MsgBox(4096, "Invalid Login", "That is an invalid login")
         ElseIf GUICtrlRead($Login) = $Dimitri Or $Kaleb and GUICtrlRead($Password) = "password" Then
             MsgBox(4096, "Valid Login", "That is a valid login")

How can I get this to to recognize* a set

eg: Kaleb darkthrone. VALID.

Kaleb password. INVALID.

The below statement is False.The above statement is True.a lesson I learned from Greenmachine; give a man a code and he'll solve one problem. Teach a man to code and he'll solve all his problems.P.S please don't use autoIt as a virus creator/spyware maker(keyLogger especially)Cick this and help me[center]My Scripts:[/center][center]Port Scanner[/center]

Share this post

Link to post
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

Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.