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 question

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



Joined: 29 May 2005
Posts: 34
Location: The Netherlands

PostPosted: Thu Jun 16, 2005 6:52 am    Post subject: Gui question Reply with quote

In the tab-code, the script ends when a fil has run. But when the action is completed I do not want to end the script but return to it.

How can I do this? Here's the code:

Code:

; Example: Tab control:

Gui, Add, Tab,, Video's|Foto's voor de ramp|Foto's na de ramp
Gui, Add, Checkbox, vMyCheckbox, Sample checkbox
Gui, Tab, 2
Gui, Add, Radio, vMyRadio gMyRadio, Roombeek
Gui, Add, Radio,, Deurningerstraat
Gui, Tab, 3
Gui, Add, Edit, vMyEdit r5  ; r5 means 5 rows tall.
Gui, Tab  ; i.e. subsequently-added controls will not belong to the tab control.
Gui, Add, Button, default xm, OK  ; xm puts it at the bottom left corner.
Gui, Show
return

ButtonOK:
GuiClose:
GuiEscape:
Gui, Submit

MyRadio:
if MyRadio=1
{
msgbox Straten van Roombeek
run, C:\Program Files\accviz\help\avhelp.chm
}
else if MyRadio=2
{
msgbox Deurningerstraat
}
return

ExitApp
Back to top
View user's profile Send private message
garry



Joined: 19 Apr 2005
Posts: 1184
Location: switzerland

PostPosted: Thu Jun 16, 2005 7:10 am    Post subject: Reply with quote

dag neyon,
try with Gui, Submit,nohide and return
it's an idea, maybe not perfect
Code:
Gui, Add, Tab,, Video's|Foto's voor de ramp|Foto's na de ramp
Gui, Add, Checkbox, vMyCheckbox, Sample checkbox
Gui, Tab, 2
Gui, Add, Radio, vMyRadio, Roombeek
Gui, Add, Radio,, Deurningerstraat
Gui, Tab, 3
Gui, Add, Edit, vMyEdit r5  ; r5 means 5 rows tall.
Gui, Tab  ; i.e. subsequently-added controls will not belong to the tab control.
Gui, Add, Button, default xm, OK  ; xm puts it at the bottom left corner.
Gui, Show
return

ButtonOK:
Gui, Submit,nohide
if MyRadio=1
{
msgbox Straten van Roombeek
;run, C:\Program Files\accviz\help\avhelp.chm
return
}

if Myradio=2
{
msgbox Deurningerstraat
return
}

if Mycheckbox=1
{
msgbox,mycheckbox is=1
return
}

if Mycheckbox=0
{
msgbox,mycheckbox is=0
return
}

Guiclose:
ExitApp

ESC::ExitApp
Back to top
View user's profile Send private message
neyon



Joined: 29 May 2005
Posts: 34
Location: The Netherlands

PostPosted: Thu Jun 16, 2005 9:16 am    Post subject: Reply with quote

Thank you very much, Garry!

This was the solution for my problem. There was a problem with the
variables too, but I fixed that myself Wink

Thanks again! Laughing

Neyon
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