 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
gargoyle888
Joined: 10 Jan 2009 Posts: 16
|
Posted: Fri Mar 20, 2009 3:01 pm Post subject: Buttons on second GUI don't work |
|
|
I have GUI #1 launching GUI #2, but none of the buttons on GUI #2 seem to work.
I've stripped my code down to what follows but the "Done" button does nothing. I think I'm missing something simple here.
Any help will be greatly appreciated.
| Code: |
;Build GUI #1 and have it launch GUI #2
Gui, 1:Add, Button, default, OK
Gui, 1:Show
return
ButtonOK:
Gui, 1:Submit, NoHide
;Build GUI #2 with a functional button
Gui, 2:Add, Button,, Done
Gui, 2:Show
return
ButtonDone:
Gui, 2:submit,
MsgBox, This message box never displays
ExitApp |
|
|
| Back to top |
|
 |
jaco0646
Joined: 07 Oct 2006 Posts: 3113 Location: MN, USA
|
Posted: Fri Mar 20, 2009 3:14 pm Post subject: Re: Buttons on second GUI don't work |
|
|
| Code: | ;Build GUI #1 and have it launch GUI #2
Gui, 1:Add, Button, default, OK
Gui, 1:Show
return
ButtonOK:
Gui, 1:Submit, NoHide
;Build GUI #2 with a functional button
Gui, 2:Add, Button,, Done
Gui, 2:Show
return
2ButtonDone:
Gui, 2:submit,
MsgBox, This message box never displays
ExitApp |
|
|
| Back to top |
|
 |
gargoyle888
Joined: 10 Jan 2009 Posts: 16
|
Posted: Fri Mar 20, 2009 5:00 pm Post subject: |
|
|
Thank you.
So simple, yet so effective. |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|