shash Posted December 9, 2009 Posted December 9, 2009 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.
whim Posted December 9, 2009 Posted December 9, 2009 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
alexxh Posted December 9, 2009 Posted December 9, 2009 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now