Sign in to follow this  
Followers 0
theholycow

Noob. Sorry. help?

3 posts in this topic

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

Share this post


Link to post
Share on other sites



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.

Share this post


Link to post
Share on other sites

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

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  
Followers 0