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 

In a GUI guiclose is not needed

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Wish List
View previous topic :: View next topic  
Author Message
Fry



Joined: 01 Nov 2007
Posts: 628

PostPosted: Fri Dec 14, 2007 11:50 pm    Post subject: In a GUI guiclose is not needed Reply with quote

i hate having to go into every one of my guis and having to type in

GuiClose:
Exitapp


do you think you could make it default
_________________
check out my site
www.eliteknifesquad.com
Back to top
View user's profile Send private message
Trikster



Joined: 15 Jul 2007
Posts: 1187
Location: Enterprise, Alabama

PostPosted: Fri Dec 14, 2007 11:58 pm    Post subject: Reply with quote

But what if you come to a GUI, that when a window is closed you don't want it to stop executing?
_________________
ScriptPad/~dieom/dieom/izwian2k7/Ian/God

Back to top
View user's profile Send private message
Andreone



Joined: 20 Jul 2007
Posts: 257
Location: Paris, France

PostPosted: Sat Dec 15, 2007 12:25 am    Post subject: Reply with quote

How many GUIs do you have to become so lazy?
Back to top
View user's profile Send private message
SKAN



Joined: 26 Dec 2005
Posts: 6070

PostPosted: Mon Dec 17, 2007 7:27 pm    Post subject: Reply with quote

I agree with Fry.
Gui Close button should ExitApp when GuiClose: does not exist.
But this could break existing scripts.. so maybe in V2.
Smile
Back to top
View user's profile Send private message
engunneer



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

PostPosted: Mon Dec 17, 2007 7:31 pm    Post subject: Reply with quote

I disagree. how is AHK to know if this is what you want? what if the gui is pulled up via hotkey?

You could maybe say that a Gui, Show inside an Autoexecute section has this behavior, but one called by hotkey does not, but that makes a debugging nightmare. Also, how would a Gui called by SetTimer act?

I vote against. Would anyone mind if I edit the OP to add a poll?
_________________
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
SKAN



Joined: 26 Dec 2005
Posts: 6070

PostPosted: Mon Dec 17, 2007 7:36 pm    Post subject: Reply with quote

engunneer wrote:
I disagree. how is AHK to know if this is what you want? what if the gui is pulled up via hotkey?


From the view point of an end-user, it is intuitive for them that the "Close button" should ExitApp.
This is the reason I had to type that label in hundreds of short examples I had posted.

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



Joined: 11 Aug 2004
Posts: 5107
Location: eth0 ::1

PostPosted: Mon Dec 17, 2007 7:38 pm    Post subject: Reply with quote

I support the motion. Chris also likes this kind of intuitive behavior.
_________________

RegExReplace("irc.freenode.net/ahk", "^(?=(.(?=[\0-r\[]*((?<=\.).))))(?:[c-\x73]{2,8}(\S))+((2)|\b[^\2-]){2}\D++$", "$u3$1$3$4$2")
Back to top
View user's profile Send private message Visit poster's website
DerRaphael



Joined: 23 Nov 2007
Posts: 508
Location: Heidelberg, Germany

PostPosted: Mon Dec 17, 2007 11:09 pm    Post subject: Reply with quote

maybe this can be triggered with some directive command?
something like #GuiExit

but just to be backward compatibel, this parameter should be off by default, so older scripts dont possibly break

my 2 cents
derRaphael
_________________
Back to top
View user's profile Send private message
engunneer



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

PostPosted: Tue Dec 18, 2007 12:30 am    Post subject: Reply with quote

it's tough to make this not break existing scripts, but also default to having it work as requested. If the point is to have it on by default (to reduce typing), then having a directive negates the effort.

I will admit that I am being swayed to want this, but I don't see a way to make it default without breaking existing scripts.
_________________
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 -> Wish List 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