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 help!

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



Joined: 20 Jun 2004
Posts: 39

PostPosted: Wed Sep 15, 2004 4:10 am    Post subject: gui help! Reply with quote

How do I associate each button to an action? For example, I created a gui on the bottom which has three buttons: pinghost, ping, and ipconfig. I want the program to display ipconfig configuration if I click on the ipconfig button. Please help.


; Generated by SmartGUI Creater

Gui, Add, Button, x57 y48 w100 h40, ping host
Gui, Add, Button, x177 y48 w100 h40, ping
Gui, Add, Button, x297 y48 w100 h40, ipconfig
Gui, Show, x496 y289 h266 w452, Generated using SmartGUI 2.3
Return

GuiClose:
ExitApp
Return
Back to top
View user's profile Send private message
Rajat



Joined: 28 Mar 2004
Posts: 1718

PostPosted: Wed Sep 15, 2004 4:55 am    Post subject: Reply with quote

a help file and basic tutorial for SmartGUI is coming very soon. in the meantime u can look up 'GUI' in ahk's help index.
_________________
Back to top
View user's profile Send private message
Rajat



Joined: 28 Mar 2004
Posts: 1718

PostPosted: Wed Sep 15, 2004 5:32 am    Post subject: Reply with quote

instant help:

add sections for each button ... the name of the button's default section (unless assigned otherwise) is the word 'Button' followed by its label.

like this :

Buttonping:
run, ping 192.168.0.1
Return
_________________
Back to top
View user's profile Send private message
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