AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Asking a user a multiple choice question

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
scoob8000



Joined: 18 Dec 2007
Posts: 9

PostPosted: Fri Aug 22, 2008 1:14 pm    Post subject: Asking a user a multiple choice question Reply with quote

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? Smile
Back to top
View user's profile Send private message
garry



Joined: 19 Apr 2005
Posts: 1186
Location: switzerland

PostPosted: Fri Aug 22, 2008 1:34 pm    Post subject: Reply with quote

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


Last edited by garry on Fri Aug 22, 2008 1:38 pm; edited 2 times in total
Back to top
View user's profile Send private message
BoBo²
Guest





PostPosted: Fri Aug 22, 2008 1:36 pm    Post subject: Reply with quote

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

PostPosted: Fri Aug 22, 2008 2:48 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group