MCT Posted January 25, 2005 Author Posted January 25, 2005 thats it! im gonna learn lol, where can i download a visual c++ trial program lol, i wanna try this out
ev0_05 Posted January 25, 2005 Posted January 25, 2005 WinSetOnTop("Input password to continue")$bLoop = 1While $bLoop = 1 $passwd = InputBox("Input password to continue", "Please type in the password and click OK", "", "*",) If @error = 1 Then winactive("My Computer") winclose("My Computer") msgbox(1, "Wrong password". "Password incorrect") Else ; They clicked OK, but did they type the right thing? If $passwd <> "autoit" Then winactive("My Computer") winclose("My computer") Else $bLoop = 0 ; Exit the loop - ExitLoop would have been an alternative too :) EndIf EndIfWEndThis work? slightly modified of input examplenot totaly flawless off course
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