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 

[Help] GuiClose / GuiEscape specific GUI's

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



Joined: 23 Feb 2008
Posts: 59

PostPosted: Sat Apr 26, 2008 9:19 am    Post subject: [Help] GuiClose / GuiEscape specific GUI's Reply with quote

I'm aware of GuiClose: and 2GuiClose:, but how can I specifically GuiClose something?
Back to top
View user's profile Send private message
biatche



Joined: 23 Feb 2008
Posts: 59

PostPosted: Sat Apr 26, 2008 9:32 am    Post subject: Reply with quote

after a bit of searching, it seems related to

Gui +Label???????

can anyone give me an example? I can't get it right

Say I have a tray menu, that has 3 items, these 3 items open different gui's. These 3 gui's, I wish to have different tasks for GuiClose and GuiEscape
Back to top
View user's profile Send private message
SKAN



Joined: 26 Dec 2005
Posts: 5816

PostPosted: Sat Apr 26, 2008 9:39 am    Post subject: Reply with quote

biatche wrote:
These 3 gui's, I wish to have different tasks for GuiClose and GuiEscape


like follows:

Code:
GuiEscape:
GuiClose:
; do something
Return

2GuiEscape:
2GuiClose:
; do something
Return


3GuiEscape:
3GuiClose:
; do something
Return



Smile
Back to top
View user's profile Send private message
biatche



Joined: 23 Feb 2008
Posts: 59

PostPosted: Sat Apr 26, 2008 9:41 am    Post subject: Reply with quote

then i will have no control over the guis as i destroy them on close.. i need to specifically get the right ones
Back to top
View user's profile Send private message
SKAN



Joined: 26 Dec 2005
Posts: 5816

PostPosted: Sat Apr 26, 2008 9:48 am    Post subject: Reply with quote

biatche wrote:
then i will have no control over the guis as i destroy them on close..


Then, do not destroy them! Rolling Eyes
Precisely, clicking the close button hides the GUI, and does not destroy them unless you specifically use Gui, n:Destroy in the GuiClose: routine.

Smile
Back to top
View user's profile Send private message
biatche



Joined: 23 Feb 2008
Posts: 59

PostPosted: Sat Apr 26, 2008 10:11 am    Post subject: Reply with quote

why not destroy them?
Back to top
View user's profile Send private message
SKAN



Joined: 26 Dec 2005
Posts: 5816

PostPosted: Sat Apr 26, 2008 10:13 am    Post subject: Reply with quote

biatche wrote:
why not destroy them?


er.. I am confused biatche.. Can you explain more on what you are upto ?
Back to top
View user's profile Send private message
engunneer



Joined: 30 Aug 2005
Posts: 6772
Location: Pacific Northwest, US

PostPosted: Sat Apr 26, 2008 6:02 pm    Post subject: Reply with quote

I think he is asking how to programatically close guis, instead of him clicking on them.
_________________
Unless otherwise noted, all code is untested.
Common Answers: 1.(Loops, Viruses, etc.) 2. Search 3.RTFM
Back to top
View user's profile Send private message Visit poster's website
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