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 

Gui submit with multiple guis

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



Joined: 20 Jul 2009
Posts: 40

PostPosted: Fri Nov 20, 2009 6:43 am    Post subject: Gui submit with multiple guis Reply with quote

im creating a 2nd gui as a settings dialog. im trying to figure out how to hide the 2ng gui without hiding the first.


gui 2:,submit doesnt work
gui 1:,show doesnt work

Code:

settings:
   Gui 2:+Owner
   gui 2: add, text, y30, Do you want this to auto lauch?
   gui 2: add, checkbox, y50 x10 vauto, Enable Auto Lauch
   gui 2:add,button, gSave, Save
   gui 2: Show
   
save:
   Gui, submit ;just closes both guis
   Gui, show ;opens both guis up
return
Back to top
View user's profile Send private message AIM Address
Eedis



Joined: 12 Jun 2009
Posts: 1158
Location: Indianapolis IN, USA

PostPosted: Fri Nov 20, 2009 7:00 am    Post subject: Reply with quote

Tested.
Code:
Gui 2:+Owner
   gui 2: add, text, y30, Do you want this to auto lauch?
   gui 2: add, checkbox, y50 x10 vauto, Enable Auto Lauch
 gui 2:add,button, gSave, Save
   gui 2: Show
   Return
   
save:
   Gui, 2:submit
return

_________________
www.AutoHotkey.net/~Eedis
I love my wife and daughter so much.


Last edited by Eedis on Fri Nov 20, 2009 7:01 am; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Guest






PostPosted: Fri Nov 20, 2009 7:00 am    Post subject: Reply with quote

some variation of this
Code:
settings:
   Gui 2:+Owner
   gui 2: add, text, y30, Do you want this to auto lauch?
   gui 2: add, checkbox, y50 x10 vauto, Enable Auto Lauch
   gui 2:add,button, gSave, Save
   gui 2: Show
return

save:
   Gui, 2:submit
return
Back to top
Eedis



Joined: 12 Jun 2009
Posts: 1158
Location: Indianapolis IN, USA

PostPosted: Fri Nov 20, 2009 7:02 am    Post subject: Reply with quote

Wow, we posted the same answer at the same time. O.O
_________________
www.AutoHotkey.net/~Eedis
I love my wife and daughter so much.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
dwjp90



Joined: 20 Jul 2009
Posts: 40

PostPosted: Fri Nov 20, 2009 7:08 am    Post subject: Reply with quote

thanks, i didnt see an example for that so i guessed the syntax.
Back to top
View user's profile Send private message AIM Address
jaco0646



Joined: 07 Oct 2006
Posts: 3113
Location: MN, USA

PostPosted: Fri Nov 20, 2009 2:53 pm    Post subject: Reply with quote

Creating Multiple GUI Windows
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
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