Jump to content

Prompt For Input?


Recommended Posts

I need to prompt a user to type in the Username and Password and then have autoit use that information further on in the script. is it possible to throw up a message box, input box thingy, and have the user put that information into that box and then Autoit will just need to write that info into a text file for use latter.?

Thanks,

Mike

Edited by MikeOsdx
Link to comment
Share on other sites

Sure, try something like:

$username = InputBox("Enter your username", "Enter your username")
$password = InputBox("Enter your password", "Enter your password", "", "*")

Msgbox(0, "Results", "You entered the username " & $username & " and the password " & $password)

See the help file for more on InputBox() syntax and inputbox.au3 from the AutoIt3\Examples\English folder for another example of InputBox use.

Jeff

Link to comment
Share on other sites

I need to prompt a user to type in the Username and Password and then have autoit use that information further on in the script.  is it possible to throw up a message box, input box thingy, and have the user put that information into that box and then Autoit will just need to write that info into a text file for use latter.?

Thanks,

Mike

Look at MsgBox InputBox FileWriteLine Docs and you will get the needed information :D
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...