theholycow Posted August 18, 2008 Share Posted August 18, 2008 As the title says, I JUST started toying with autoit (or anything else for that matter) and am totally clueless. The code will probably make it clear what I am trying to do, but essentially I just want a message box to appear if a password entered is correct, and a different one if it isn't. With the current code, I get the error message: Error: Incorrect number of parameters in function call. What am I doing wrong? CODE$pw = InputBox ("Security Check, Please enter your password, "", "*"") If ("$pw=password") Then MsgBox ("Security Check, Password Accepted!") Else MsgBox ("Security Check, Sorry, try again.") EndIf I know there is a better way of doing it, again I am just doing it for the sake of knowing how. Thanks Christianity: In the beginning, there was God, who always was there and created everything.Atheism: In the beginning, there was nothing, which exploded. Both sides look bad... Link to comment Share on other sites More sharing options...
iceberg Posted August 18, 2008 Share Posted August 18, 2008 alot of syntax errors dude.... $pw = InputBox("Security Check", "Enter your password.", "", "*") If $pw = "password" Then MsgBox(0, "Security Check", "Password Accepted!") Else MsgBox(0, "Security Check", "Sorry, try again.") EndIf mouse not found....scroll any mouse to continue. Link to comment Share on other sites More sharing options...
theholycow Posted August 18, 2008 Author Share Posted August 18, 2008 thats why the title says noob. thanks haha Christianity: In the beginning, there was God, who always was there and created everything.Atheism: In the beginning, there was nothing, which exploded. Both sides look bad... 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