Jump to content

Multiple Field input box ??


shash
 Share

Recommended Posts

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

Ex:

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.

Link to comment
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 !)

whim

Link to comment
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)

$ok=GUICtrlCreateButton("OK",8,141,217,30)

GUISetState()

While 1

$nMsg = GUIGetMsg()

Switch $nMsg

Case $GUI_EVENT_CLOSE

Exit

EndSwitch

WEnd

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...