PPowerHouseK Posted January 11, 2011 Share Posted January 11, 2011 Hello all, I am pretty new with AutoIT so please bear with me. I basically need to make and inputbox on the main gui itself. I have a working version of what I need to do, but currently it uses a pop-up inputbox. I was wondering if there is a way to enter the information directly into the main gui without having another window pop up to take the user's input. Any help would be much appreciated on this. Thanks in advance. Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted January 11, 2011 Moderators Share Posted January 11, 2011 PPowerHouseK,I assume you have been using InputBox - just create an input control on the GUI with GUICtrlCreateInput and use that instead. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
PPowerHouseK Posted January 11, 2011 Author Share Posted January 11, 2011 Thanks so much for the quick reply! So I placed the following snippet in my gui code, but for some reason the value returned no matter what is entered, is 43. ;Name field $who = GUICtrlCreateInput("Name",10,270,100) Perhaps I am making a mistake with my syntax, I am not sure. Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted January 11, 2011 Moderators Share Posted January 11, 2011 PPowerHouseK,The 43 is the ControlID of the input control. You need to code like this: ; Create the input control and get the ControlID $hInput_Name = GUICtrlCreateInput("Name",10,270,100) ; Read the content of the control when you need it $sName = GUICtrlRead($hInput_Name)All clear now? M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
PPowerHouseK Posted January 11, 2011 Author Share Posted January 11, 2011 I see what you did there. Thanks, yet again! Also I just downloaded all those apps in your signature that I've been looking for, thanks for that. 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