Sign in to follow this  
Followers 0
Maarcel

Inputbox where you can choose between answers

12 posts in this topic

#1 ·  Posted (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 by Maarcel

Share this post


Link to post
Share on other sites



$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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

#4 ·  Posted (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? :D

Edited by Maarcel

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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 ;)

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

or GuiCTRLCreateCombo() maybe


[font='Comic Sans MS']Eagles may soar high but weasels dont get sucked into jet engines[/font]

Share this post


Link to post
Share on other sites

#9 ·  Posted (edited)

yepp, combo is exactly what i want ;)

Edited by Maarcel

Share this post


Link to post
Share on other sites

Maarcel,

I guess I will read the help file sometime

I 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._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites

#12 ·  Posted (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 by somdcomputerguy

- Bruce /*somdcomputerguy */  If you change the way you look at things, the things you look at change.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0