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 

Toying with GUIs

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





PostPosted: Fri Aug 22, 2008 9:15 pm    Post subject: Toying with GUIs Reply with quote

I am just playing around with GUIs to get familiar with them what I am doing is about as basic as you can get. All I want is a box to open with an "ok" button that when clicked closes the window. The script I am using is the following:

Code:
Gui, Add, Button, , OK
Gui, Show, AutoSize Center

ButtonOK:
ExitApp


The problem is that it does not wait for me to click the button for it to exit it simply opens and closes. What am I doing wrong?
Back to top
BoBo²
Guest





PostPosted: Fri Aug 22, 2008 10:07 pm    Post subject: Reply with quote

Code:
Gui, Add, Button, gButton, OK
Gui, Show, AutoSize Center
Return

Button:
ExitApp
Back to top
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