Infinitex0 Posted March 27, 2006 Share Posted March 27, 2006 Here is what I have so far #include <GUIconstants.au3> GUICreate("Login") $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) GUISetState(@SW_SHOW) $bloop = 1 While $bloop = 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE Exit 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") EndIf EndSelect WEnd 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] Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted March 27, 2006 Moderators Share Posted March 27, 2006 http://www.autoitscript.com/forum/index.ph...ndpost&p=166225 Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. 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