Sign in to follow this  
Followers 0
BigDaddyO

Prompt For Input?

3 posts in this topic

#1 ·  Posted (edited)

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

Share this post


Link to post
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

Share this post


Link to post
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

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