Jump to content

Password Question.


Mack
 Share

Recommended Posts

Hello,

Iam getting more interrested in AutoIt but i got a question ( again )..

Ive got an inputbox like

$passwd = InputBox("Security Check", "Enter your password.", "", "*")
if $passwd = Piet Then Run ("Explorer.exe")

Now i wanna do if its something else it gives an error

Link to comment
Share on other sites

Hello,

Iam getting more interrested in AutoIt but i got a question ( again )..

Ive got an inputbox like

$passwd = InputBox("Security Check", "Enter your password.", "", "*")
if $passwd = Piet Then Run ("Explorer.exe")

Now i wanna do if its something else it gives an error

<{POST_SNAPBACK}>

so if it is what you want, then you want it to load explorer, else it should display a message box?

there are definitely examples for this in the help file....

Link to comment
Share on other sites

Hello,

Iam getting more interrested in AutoIt but i got a question ( again )..

Ive got an inputbox like

$passwd = InputBox("Security Check", "Enter your password.", "", "*")
if $passwd = Piet Then Run ("Explorer.exe")

Now i wanna do if its something else it gives an error

<{POST_SNAPBACK}>

$pass = "Piet"
$passwd = InputBox("Security Check", "Enter your password.", "", "*")
if $passwd = $pass Then Run ("Explorer.exe")

That should do it... im at work now so I can't test it. You may also need to put the full directory of explorer.exe (program files etc.)

[font="Impact"] I always thought dogs laid eggs, and I learned something today. [/font]
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...