HezzelQuartz Posted August 2, 2023 Posted August 2, 2023 Hello everyone. How can I create a single input box but with multiple entry and a single submit button? I want this multiple entry input box only appear everytime I trigger a hotkey. Thank you
Andreik Posted August 2, 2023 Posted August 2, 2023 You need to formulate your question better, I doubt someone understand what are looking for. What is a multiple entry input box?
HezzelQuartz Posted August 2, 2023 Author Posted August 2, 2023 @Andreik Sorry, Please look at the image I attach below. I want to create like that, and It will only appear when I press F1 then I need to get all the information I put into a notepad
argumentum Posted August 2, 2023 Posted August 2, 2023 ..if you put the code of that nice looking image, I'm sure one of us ( not it ! ), will show you the F1 to Notepad part of it. Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting.
Andreik Posted August 2, 2023 Posted August 2, 2023 That's not an input box, it's a entire GUI. Use Koda to create the user interface and then we can go on from there.
Musashi Posted August 2, 2023 Posted August 2, 2023 7 hours ago, HezzelQuartz said: How can I create a single input box but with multiple entry and a single submit button? As @Andreik already wrote, it has to be an entire GUI. Here a quick example for an user interface : expandcollapse popup#AutoIt3Wrapper_Au3Check_Parameters=-q -d -w 1 -w 2 -w 3 -w 4 -w 6 -w 7 #include <GUIConstantsEx.au3> #include <ButtonConstants.au3> #include <ColorConstantS.au3> #include <FontConstants.au3> #include <EditConstants.au3> #include <MsgBoxConstants.au3> ; ------------------------------------------------------------------------------------------------------------------------------- ; GUI (Modus = messageloop) ; ------------------------------------------------------------------------------------------------------------------------------- Global $hGUI, $iGuiMsg Global $idInpFullname, $idInpEmail, $idInpTelephone, $idInpUsername, $idInpPassword, $idInpPasswordCheck Global $idBtnRegister, $idBtnCancel GUICreate(" - ", 500, 600, -1, -1) GUISetFont(11, $FW_NORMAL, 1, "Arial") GUICtrlCreateLabel("Your full name", 20, 20, 400, 30) GUICtrlCreateLabel("Your email", 20, 100, 400, 30) GUICtrlCreateLabel("Your telephone", 20, 180, 400, 30) GUICtrlCreateLabel("Choose an username", 20, 260, 400, 30) GUICtrlCreateLabel("Choose a password", 20, 340, 400, 30) GUICtrlCreateLabel("Repeat password", 20, 420, 400, 30) $idInpFullname = GUICtrlCreateInput("", 20, 50, 400, 30) GUICtrlSetData($idInpFullname, "Mr./Ms.") $idInpEmail = GUICtrlCreateInput("", 20, 130, 400, 30) GUICtrlSetData($idInpEmail, "") $idInpTelephone = GUICtrlCreateInput("", 20, 210, 400, 30) GUICtrlSetData($idInpTelephone, "+1") $idInpUsername = GUICtrlCreateInput("", 20, 290, 400, 30) GUICtrlSetData($idInpUsername, "admin") $idInpPassword = GUICtrlCreateInput("", 20, 370, 400, 30, $ES_PASSWORD) GUICtrlSetData($idInpPassword, "") $idInpPasswordCheck = GUICtrlCreateInput("", 20, 450, 400, 30, $ES_PASSWORD) GUICtrlSetData($idInpPasswordCheck, "") $idBtnRegister = GUICtrlCreateButton("&Register", 20, 540, 120, 30) $idBtnCancel = GUICtrlCreateButton("&Cancel", 160, 540, 120, 30, $BS_DEFPUSHBUTTON) GUISetState(@SW_SHOW, $hGUI) While True $iGuiMsg = GUIGetMsg() Select Case $iGuiMsg = $GUI_EVENT_CLOSE ExitLoop Case $iGuiMsg = $idBtnRegister ; messagebox, just for test MsgBox(BitOr($MB_SYSTEMMODAL, $MB_ICONINFORMATION), 'Output : ', _ GUICtrlRead($idInpFullname) & @CRLF & _ GUICtrlRead($idInpEmail) & @CRLF & _ GUICtrlRead($idInpTelephone) & @CRLF & _ GUICtrlRead($idInpUsername) & @CRLF & _ GUICtrlRead($idInpPassword) & @CRLF & _ GUICtrlRead($idInpPasswordCheck) & @CRLF) Exit Case $iGuiMsg = $idBtnCancel Exit EndSelect WEnd GUIDelete($hGUI) "In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move."
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