Jump to content
Sign in to follow this  

Input Box Help

Recommended Posts


I need to get one input box to display 2 area the user must fill in and then OK button.

At the moment I can easily get this with 2 Input boxes but would like just one.

I need to know if I need to write a GUI to do this or need extra help on the way to write the line of code.

Help does not expand passed one input box.

At present Here is what I have:

$compname = InputBox("Computer Name", "Computer Name:", "", "")

$locser = InputBox("Location Name", "Location Name:", "", "")

This specifie the two variables I need for the rest of the script...Can I combine them?

Cheers in Advance


Share this post

Link to post
Share on other sites

Well screwing around you could do something like this (Keep in mind, this is not smart, can't check the first input for information or @error this way):

;Not Suggested
$MainVar = InputBox('Something', 'Put Something') & InputBox('Else', 'Put Something Else')
MsgBox(0, 0, $MainVar)

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...