Jump to content

info box help


Recommended Posts

Ok so what this is supposed to do is if the password is entered correctly, it displays a blank message box. If the password is entered incorectly, it displays a message box with the word not in it. Problem is, it allways displays the message box with the word not in it even if the password is correct.

$password = InputBox( "Cheackpoint 1", "Please input the first passsword", "", "*", 100, 150)

If GUICtrlRead($password) = "121289" Then
    MsgBox( 64, "", "")
    EndIf
if Not GUICtrlRead($password) = "121289" Then
    MsgBox( 64, "","not")
EndIf

could anyone help?

thx

Spoiler

 

"If a vegetarian eats vegetables,What the heck does a humanitarian eat?"

"I hear voices in my head, but I ignore them and continue on killing."

"You have forced me to raise the indifference warning to beige, it's a beige alert people. As with all beige alerts please prepare to think about the possibility of caring."

An optimist says that giving someone power DOESN'T immediately turn them into a sadist. A pessimist says that giving someone power doesn't IMMEDIATELY turn them into a sadist.

 

 
Link to comment
Share on other sites

The InputBox function does not return a control id. It returns the string entered into it. Therefore there is no reason to use the GUICtrlRead() function.

$password = InputBox( "Cheackpoint 1", "Please input the first passsword", "", "*", 100, 150)

If $password = "121289" Then
    MsgBox( 64, "Correct!", "Your password was correct.")
Else
    MsgBox( 64, "Incorrect!","Your password was incorrect.")
EndIf

- The Kandie Man ;-)

"So man has sown the wind and reaped the world. Perhaps in the next few hours there will no remembrance of the past and no hope for the future that might have been." & _"All the works of man will be consumed in the great fire after which he was created." & _"And if there is a future for man, insensitive as he is, proud and defiant in his pursuit of power, let him resolve to live it lovingly, for he knows well how to do so." & _"Then he may say once more, 'Truly the light is sweet, and what a pleasant thing it is for the eyes to see the sun.'" - The Day the Earth Caught Fire

Link to comment
Share on other sites

o, ok lol

thx man

Spoiler

 

"If a vegetarian eats vegetables,What the heck does a humanitarian eat?"

"I hear voices in my head, but I ignore them and continue on killing."

"You have forced me to raise the indifference warning to beige, it's a beige alert people. As with all beige alerts please prepare to think about the possibility of caring."

An optimist says that giving someone power DOESN'T immediately turn them into a sadist. A pessimist says that giving someone power doesn't IMMEDIATELY turn them into a sadist.

 

 
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...