Daniel W. Posted April 13, 2006 Share Posted April 13, 2006 (edited) Hi, i got my Programm working now but it creates a new GUI if i click on a button. In this new GUI all works fine and so on but when i try to close the new GUI i must double click at the [X] of the window to close it or i click on the Exit Button. When it closes the other GUI closes too. In both GUI's i use this to close Select //........ Case $msg = $exitID Exit Case $msg = $GUI_EVENT_CLOSE Exit EndSelect My whole code is at the end of post. Which code do i need that only the GUI from which i press the exit button is closed? Edited April 13, 2006 by Daniel W. --------------------------------------------------------------------------------------------------------------------------------Scripts : _Encrypt UDF_UniquePCCode UDF MS like calculatorInstall programm *UPDATED* --------------------------------------------------------------------------------------------------------------------------------[quote name='Helge' post='213117' date='Jul 26 2006, 10:22 AM']Have you ever tried surfing the internet with a milk-carton ?This is similar to what you're trying to do.[/quote] Link to comment Share on other sites More sharing options...
Valuater Posted April 13, 2006 Share Posted April 13, 2006 example Case $msg = $GUI_EVENT_CLOSE If WinActive("main") then Exit Else GUISetState( @SW_HIDE, $gui2) EndIf EndSelect 8) Link to comment Share on other sites More sharing options...
Daniel W. Posted April 13, 2006 Author Share Posted April 13, 2006 $gui2 = ???? Looks fine but i don't know how this is defined --------------------------------------------------------------------------------------------------------------------------------Scripts : _Encrypt UDF_UniquePCCode UDF MS like calculatorInstall programm *UPDATED* --------------------------------------------------------------------------------------------------------------------------------[quote name='Helge' post='213117' date='Jul 26 2006, 10:22 AM']Have you ever tried surfing the internet with a milk-carton ?This is similar to what you're trying to do.[/quote] Link to comment Share on other sites More sharing options...
Valuater Posted April 13, 2006 Share Posted April 13, 2006 you could use the title of the second window or $gui2 = guicreate( " my second window...... then use $gui2 which is the control handle 8) Link to comment Share on other sites More sharing options...
Daniel W. Posted April 13, 2006 Author Share Posted April 13, 2006 Wow thank you it works now Thread can be closed --------------------------------------------------------------------------------------------------------------------------------Scripts : _Encrypt UDF_UniquePCCode UDF MS like calculatorInstall programm *UPDATED* --------------------------------------------------------------------------------------------------------------------------------[quote name='Helge' post='213117' date='Jul 26 2006, 10:22 AM']Have you ever tried surfing the internet with a milk-carton ?This is similar to what you're trying to do.[/quote] Link to comment Share on other sites More sharing options...
Valuater Posted April 13, 2006 Share Posted April 13, 2006 Wow thank you it works nowThread can be closedWelcome8) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now