Jump to content
Sign in to follow this  

Multiple Field input box ??

Recommended Posts


I am new to Auto It , I want to know , if I can have multiple input fields in one input box ?


One input box asking for both Username and Password with two text fields to enter the info ??

Or do I have to use two separate input box for username and then for password ??

Please help.

Share this post

Link to post
Share on other sites

No, AFAIK inputs can have only one field, so use 2 separate inputs

That also has the advantage you can give the password input the

$ES_PASSWORD style, to hide user input (see helpfile: GUICtrlCreateInput)

hth (and welcome to the forum !)


Share this post

Link to post
Share on other sites

just create a gui:

i dont think its possible with InputBox

#include <EditConstants.au3>

#include <GUIConstantsEx.au3>

#include <StaticConstants.au3>

#include <WindowsConstants.au3>

$gui = GUICreate("Title", 234, 183)

$usernameinput = GUICtrlCreateInput("username", 8, 40, 217, 21)

$passwortinput = GUICtrlCreateInput("passwort", 8, 112, 217, 21,$ES_PASSWORD)

$username = GUICtrlCreateLabel("Username", 8, 8, 136, 17)

$passwort = GUICtrlCreateLabel("Passwort", 8, 80, 136, 17)



While 1

$nMsg = GUIGetMsg()

Switch $nMsg





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  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.