clearguy Posted November 9, 2006 Share Posted November 9, 2006 Hi, In my script I made a first GUI with OnEvent mode; then if a button is pressed a function is called and a second GUI window appears, the function ends. Problem: when I try to close the second GUI window, it doesn't work! I have to close the first window to terminate the script, but it isn't that I want. Someone could help me, please? P.S.: $GUI_EVENT_CLOSE is set as GuiSetOnEvent, with function to end the script. I've never met anyone who codes binary. StringMultiInsert()SOW EncryptFrench autoit forum - forum français Link to comment Share on other sites More sharing options...
Danny35d Posted November 9, 2006 Share Posted November 9, 2006 Without a source code to work on, it is impossible to help you. Any way this is what I found using the search.Link 1Link 2 AutoIt Scripts:NetPrinter - Network Printer UtilityRobocopyGUI - GUI interface for M$ robocopy command line Link to comment Share on other sites More sharing options...
MadBoy Posted November 9, 2006 Share Posted November 9, 2006 Hi, In my script I made a first GUI with OnEvent mode; then if a button is pressed a function is called and a second GUI window appears, the function ends. Problem: when I try to close the second GUI window, it doesn't work! I have to close the first window to terminate the script, but it isn't that I want. Someone could help me, please? P.S.: $GUI_EVENT_CLOSE is set as GuiSetOnEvent, with function to end the script. GUISetOnEvent($GUI_EVENT_CLOSE, "GuiCloseClick") Func GuiCloseClick() If @GUI_WINHANDLE = $Gui_Help_About Then GUISetState(@SW_HIDE, $Gui_Help_About) EndIf If @GUI_WINHANDLE = $gui_Main Then Exit EndIf EndFunc etc You should get the idea My little company: Evotec (PL version: Evotec) Link to comment Share on other sites More sharing options...
Uten Posted November 9, 2006 Share Posted November 9, 2006 Or use GuiDelete and GuiSwitch rather than @SW_HIDE. With @SW_HIDE your window will continue to consume resources. Please keep your sig. small! Use the help file. Search the forum. Then ask unresolved questions :) Script plugin demo, Simple Trace udf, TrayMenuEx udf, IOChatter demo, freebasic multithreaded dll sample, PostMessage, Aspell, Code profiling Link to comment Share on other sites More sharing options...
clearguy Posted November 9, 2006 Author Share Posted November 9, 2006 Yes, GUISwitch worked fine for me, even OnEvent works (with GUICtrlSetOnEvent repeated after the first and the second gui). Thanx man;) I've never met anyone who codes binary. StringMultiInsert()SOW EncryptFrench autoit forum - forum français 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