 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
neyon
Joined: 29 May 2005 Posts: 34 Location: The Netherlands
|
Posted: Thu Jun 16, 2005 6:52 am Post subject: Gui question |
|
|
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 |
|
 |
garry
Joined: 19 Apr 2005 Posts: 1184 Location: switzerland
|
Posted: Thu Jun 16, 2005 7:10 am Post subject: |
|
|
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 |
|
 |
neyon
Joined: 29 May 2005 Posts: 34 Location: The Netherlands
|
Posted: Thu Jun 16, 2005 9:16 am Post subject: |
|
|
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
Thanks again!
Neyon |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|