Maarcel Posted April 12, 2012 Share Posted April 12, 2012 (edited) Hi, can you create an inputbox, where the user can choose between diffrent answes and then do soemthing depending on which answer he chose? Edited April 12, 2012 by Maarcel Link to comment Share on other sites More sharing options...
yones7x Posted April 12, 2012 Share Posted April 12, 2012 $Q = InputBox("yones7x & Example: 'InputBox'", "Enter your name!", "", "", 140, 130) If $Q = "" Then MsgBox(48+262144, "yones7x & Example: 'InputBox'", "x You Dont Write Any Thing x") Else MsgBox(64+262144, "yones7x & Example: 'InputBox'", "Your Name Is: '"&$Q&"'") EndIf Link to comment Share on other sites More sharing options...
somdcomputerguy Posted April 12, 2012 Share Posted April 12, 2012 Do you mean an input box, in which one can type different answers, or several radio buttons, so one can choose a defined answer? - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change. Link to comment Share on other sites More sharing options...
Maarcel Posted April 12, 2012 Author Share Posted April 12, 2012 (edited) thanx, but that is not what I wanted, i wanted something like the box says: "Which material do you wanna use?" and then the user should be able to for example choose between: wood steel clay gold silver without the user having to type it in, would be best if he could just click on the answer or something like that best would be something like what is often used in the internet, there is an answerbox next to the question that opens when you click on it and you get to choose for example your birthyear between the numbers 1901 and 2012. And after you chose click an ok button, most aweesome would be if you can have multiple questions and answers and in the end klick a button when youre done But if thats not possible it would be nice if there are buttons (each button with a diffrent answer) and you can click on one of em to choose the answer. Is something like that possible in Autoit? Edited April 12, 2012 by Maarcel Link to comment Share on other sites More sharing options...
somdcomputerguy Posted April 12, 2012 Share Posted April 12, 2012 See the example here - Function GUICtrlCreateRadio, and this function may come in handy also - GUICtrlCreateLabel. Then read the whole Help file, even if only briefly. This may sound somewhat harsh, but I really don't care. Become even somewhat familiar with AutoIt's functions, and you will be surprised at how many doors suddenly open.. - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change. Link to comment Share on other sites More sharing options...
Maarcel Posted April 12, 2012 Author Share Posted April 12, 2012 Thanks Bruce *g*Pretty sure the Function GUICtrlCreateRadio should work fine for what i need.I guess I will read the help file sometime, but for now I just wanna finish the program i am writing on Link to comment Share on other sites More sharing options...
somdcomputerguy Posted April 12, 2012 Share Posted April 12, 2012 Well I'm glad you didn't come back with some sort of flaming type of reply. Good luck with your project and welcome to the Forum. - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change. Link to comment Share on other sites More sharing options...
shornw Posted April 12, 2012 Share Posted April 12, 2012 or GuiCTRLCreateCombo() maybe [font='Comic Sans MS']Eagles may soar high but weasels dont get sucked into jet engines[/font] Link to comment Share on other sites More sharing options...
Maarcel Posted April 12, 2012 Author Share Posted April 12, 2012 (edited) yepp, combo is exactly what i want Edited April 12, 2012 by Maarcel Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted April 12, 2012 Moderators Share Posted April 12, 2012 Maarcel,I guess I will read the help file sometimeI would make that sooner rather than later - or you (and we) are going to get very frustrated at you having to ask very simple questions. 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...
Maarcel Posted April 12, 2012 Author Share Posted April 12, 2012 yah yah i was already looking myself n found the combothingy:http://translation.autoit.de/onlinehilfe/guiref/GUIRef.htmis quite nice to see some things u can do with guilove the pictures next to the functions so u can immediatley see what they doits german though, but so am i Link to comment Share on other sites More sharing options...
somdcomputerguy Posted April 12, 2012 Share Posted April 12, 2012 (edited) Here is the original, English, page if you like - GUI Reference.edit: well I don't know if it's the actual original, but it is in english.. Edited April 12, 2012 by somdcomputerguy - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change. 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