AutoHotkey Community

It is currently May 26th, 2012, 1:26 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: SmartGui ?
PostPosted: November 24th, 2008, 11:56 pm 
Offline

Joined: November 22nd, 2008, 11:28 am
Posts: 3
Hello all :D ,

I am a complete newbie to coding in "autohotkey" or anything else for that matter. I have played around with "SmartGui" somewhat & created a gui interface that I would like to add some autohotkey code.

However, can someone advise me as to how you would open or link several smartGui windows/gui's to perform a flowing program. Would you for instance write separate gui windows then link them in some way with autohotkey code.

Can someone offer some simple guidance as to how you would structure this Please?

Regards & Respect,

ispy :D


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 25th, 2008, 6:57 pm 
Anyone help please?

Regards,

ispy :D


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 25th, 2008, 7:47 pm 
GUI, something something
GUI, show
return
after pressing a certain button or key, altsubmit the inputs
then GUIdestroy the above GUI
and then GUI, something something
GUI, show
return


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 25th, 2008, 8:15 pm 
Offline

Joined: April 27th, 2008, 5:28 pm
Posts: 489
Some code to get you started.
Code:
gui 1: add, button, w160,Go To Gui 2
gui 1: show, y200 w180,First Gui
gui 1: color, FF80C0
return

buttonGoToGui2:   ;name of button minus spaces Gui 1 can not have the number 1 before buttonGoToGui2 label
gui 1: destroy    ;leave this out if you want to leave the first Gui open
gui 2: add, button, w260,Go To Gui 3
gui 2: show, y400 w280,Second Gui
gui 2: color, AEEFAD
return

2buttonGoToGui3: ;name of button minus spaces Gui 2 and higher needs the number before the button label
gui 2: destroy
gui 3: add, button, w360,Quit Application
gui 3: show, y600 w380,Third Gui
gui 3: color, 0000FF
return

3buttonQuitApplication:
gui 3: destroy
MsgBox Hope this helps!
ExitApp


GuiEscape:
GuiClose:
2GuiEscape:
2GuiClose:
3GuiEscape:
3GuiClose:
MsgBox Each label falls thru to the last label when the escape key is pressed or the X button is chosen to close the Gui.
ExitApp
DataLife


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 25th, 2008, 9:49 pm 
Offline

Joined: November 22nd, 2008, 11:28 am
Posts: 3
Hi DataLife & evan :D ,

Can I just express my gratitude for your help & these extracts of code will no doubt get me started, Again Many thanks!

Regards & Best Wishes,

ispy :D


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot], Cerberus, SifJar and 22 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group