usera Posted February 10, 2014 Share Posted February 10, 2014 Greeting, looking for the way to get multi input in one windows. for example: line1: your name please line2: Title: line3: Email But I need to allow line2 and line3 maybe is empty, how to do that. Thanks usera Link to comment Share on other sites More sharing options...
GordonFreeman Posted February 11, 2014 Share Posted February 11, 2014 (edited) Try $ES_MULTILINE style with include #include <EditConstants.au3> Edit: Sorry, it is only to edit control Please explain better your doubt Edited February 11, 2014 by GordonFreeman Frabjous Installation Link to comment Share on other sites More sharing options...
kylomas Posted February 11, 2014 Share Posted February 11, 2014 usera, One window or one control within your window? kylomas Forum Rules Procedure for posting code "I like pigs. Dogs look up to us. Cats look down on us. Pigs treat us as equals." - Sir Winston Churchill Link to comment Share on other sites More sharing options...
usera Posted February 11, 2014 Author Share Posted February 11, 2014 usera, One window or one control within your window? kylomas like this : +---------------------------------------------------------------------------------- | line1: your name please | line2: Title: | line3: Emailline1: your name please | +--------------------------------------------------------------------------------------- a small window thanks for ask usera Link to comment Share on other sites More sharing options...
kylomas Posted February 11, 2014 Share Posted February 11, 2014 This? ; *** Start added by AutoIt3Wrapper *** #include <GUIConstantsEx.au3> ; *** End added by AutoIt3Wrapper *** #AutoIt3Wrapper_Add_Constants=n local $gui010 = guicreate('Simple Example',400,100) GUICtrlCreateLabel('Name',20,20,100,20) local $name = guictrlcreateinput('',110,20,200,20) GUICtrlCreateLabel('Title',20,40,100,20) local $title = guictrlcreateinput('',110,40,200,20) GUICtrlCreateLabel('Email',20,60,100,20) local $email = guictrlcreateinput('',110,60,200,20) guisetstate() while 1 switch guigetmsg() case $GUI_EVENT_CLOSE Exit case $name ; ; your name routine here ; case $title ; ; your title routine here ; case $email ; ; your email routine here ; EndSwitch wend usera 1 Forum Rules Procedure for posting code "I like pigs. Dogs look up to us. Cats look down on us. Pigs treat us as equals." - Sir Winston Churchill Link to comment Share on other sites More sharing options...
usera Posted February 11, 2014 Author Share Posted February 11, 2014 This? ; *** Start added by AutoIt3Wrapper *** #include <GUIConstantsEx.au3> ; *** End added by AutoIt3Wrapper *** #AutoIt3Wrapper_Add_Constants=n local $gui010 = guicreate('Simple Example',400,100) GUICtrlCreateLabel('Name',20,20,100,20) local $name = guictrlcreateinput('',110,20,200,20) GUICtrlCreateLabel('Title',20,40,100,20) local $title = guictrlcreateinput('',110,40,200,20) GUICtrlCreateLabel('Email',20,60,100,20) local $email = guictrlcreateinput('',110,60,200,20) guisetstate() while 1 switch guigetmsg() case $GUI_EVENT_CLOSE Exit case $name ; ; your name routine here ; case $title ; ; your title routine here ; case $email ; ; your email routine here ; EndSwitch wend Perfect, thanks how to add a "OK" or "summit" button ? Link to comment Share on other sites More sharing options...
kylomas Posted February 11, 2014 Share Posted February 11, 2014 usera, See the help file for guictrlcreatebutton... Forum Rules Procedure for posting code "I like pigs. Dogs look up to us. Cats look down on us. Pigs treat us as equals." - Sir Winston Churchill Link to comment Share on other sites More sharing options...
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