| View previous topic :: View next topic |
| Author |
Message |
scoob8000
Joined: 18 Dec 2007 Posts: 9
|
Posted: Fri Aug 22, 2008 1:14 pm Post subject: Asking a user a multiple choice question |
|
|
I'm trying to combine two simple scripts into one.
I need to ask the user "on" or "off" to decide which one to run.
I can make it work with the yes/no message box, but following the docs I can't get the renaming of the buttons to work.
Another possible solution I think would be to use a radio button for the on/off option.
Help please?  |
|
| Back to top |
|
 |
garry
Joined: 19 Apr 2005 Posts: 1186 Location: switzerland
|
Posted: Fri Aug 22, 2008 1:34 pm Post subject: |
|
|
want you a small gui with 2 buttons
or
gui with radiobuttons
or
if you have a gui runs a second gui with 2 buttons , want you start 1 or 2 (instead of msgbox)
or
just in the script 2 buttons and use goto
(was to late , BoBo has easiest solution already )
Last edited by garry on Fri Aug 22, 2008 1:38 pm; edited 2 times in total |
|
| Back to top |
|
 |
BoBo² Guest
|
Posted: Fri Aug 22, 2008 1:36 pm Post subject: |
|
|
| Code: | Gui, Add, Button, gB, ON
Gui, Add, Button, gB, OFF
Gui, Show,, BOnBOff
Return
B:
Gui, Submit, NoHide
MsgBox, You pressed %A_GuiControl%
Return |
|
|
| Back to top |
|
 |
scoob8000
Joined: 18 Dec 2007 Posts: 9
|
Posted: Fri Aug 22, 2008 2:48 pm Post subject: |
|
|
Wow, that was easy!
I had a feeling Gui was going to be easier then trying to rename the Yes/No buttons, but the command is so extensive I didn't know where to begin.
Thanks guys! |
|
| Back to top |
|
 |
|