shawnmstout Posted July 26, 2009 Share Posted July 26, 2009 (edited) what is the best thing to use when you close out of a gui before i was using below While 1 If GUIGetMsg() = -3 Then ExitLoop EndIf WEnd GuiDelete("System Information") Im running multiple forms controlled by the system tray so i cant just exit or it will close out the system tray also once i close out of the form then i cant reopen it and i also cant close out of the system tray, it freezes also if there is a way i would like to be able to open up multiple forms at once and switch in between, right now it seems like when 1 is open you cant do anything else inside of the system traySRC.zip Edited July 26, 2009 by shawnmstout Link to comment Share on other sites More sharing options...
dantay9 Posted July 27, 2009 Share Posted July 27, 2009 Are you looking for GUIDelete()? If you don't want to totally delete it, just hide it. Use GuiSetState(@SW_HIDE, handle to gui). Link to comment Share on other sites More sharing options...
shawnmstout Posted July 27, 2009 Author Share Posted July 27, 2009 Are you looking for GUIDelete()? If you don't want to totally delete it, just hide it. Use GuiSetState(@SW_HIDE, handle to gui).i probably should of mentioned that i tried that also, GuiSetState(@SW_HIDE, "Memory Status")dont get me wrong, both work and you dont see it , but then once it is hidden or deleted, you cant choose anything from the system tray or close it out Link to comment Share on other sites More sharing options...
shawnmstout Posted July 27, 2009 Author Share Posted July 27, 2009 i probably should of mentioned that i tried that also, GuiSetState(@SW_HIDE, "Memory Status")dont get me wrong, both work and you dont see it , but then once it is hidden or deleted, you cant choose anything from the system tray or close it outwell it looks like the only one causing issues is memstats.au3 Link to comment Share on other sites More sharing options...
dantay9 Posted July 27, 2009 Share Posted July 27, 2009 So far, I have come up with a little bit. I know that the script is getting caught somewhere not in the MemStats function because when I put a messagebox at the beginning of the function and try to run it, I get a messagebox the first time, but not the second time. Link to comment Share on other sites More sharing options...
shawnmstout Posted July 27, 2009 Author Share Posted July 27, 2009 So far, I have come up with a little bit. I know that the script is getting caught somewhere not in the MemStats function because when I put a messagebox at the beginning of the function and try to run it, I get a messagebox the first time, but not the second time.yes its like something is preventing it to run a 2nd time or its just causing a loop or something similar Link to comment Share on other sites More sharing options...
dantay9 Posted July 27, 2009 Share Posted July 27, 2009 This doesn't fix your problem at all, but I see two things. You don't need to use the Case 0. You also should use Switch instead of Select because it is faster. Just some suggestions. Still can't figure out your problem. Link to comment Share on other sites More sharing options...
shawnmstout Posted July 27, 2009 Author Share Posted July 27, 2009 (edited) This doesn't fix your problem at all, but I see two things. You don't need to use the Case 0. You also should use Switch instead of Select because it is faster. Just some suggestions. Still can't figure out your problem.what does case 0 do?heh just noticed your from ohio, i live about 5 minutes away from the border of ohio Edited July 27, 2009 by shawnmstout Link to comment Share on other sites More sharing options...
shawnmstout Posted July 27, 2009 Author Share Posted July 27, 2009 attached is the current memstats.au3memstats.au3 Link to comment Share on other sites More sharing options...
dantay9 Posted July 27, 2009 Share Posted July 27, 2009 (edited) Case 0 doesn't do much of anything. In your script it is unneeded and I dont' think it is ever needed. Yeah. I live a little bit north of Cincinnati. Maybe 10 minutes Northeast. Edited July 27, 2009 by dantay9 Link to comment Share on other sites More sharing options...
shawnmstout Posted July 27, 2009 Author Share Posted July 27, 2009 found the solution Opt("TrayOnEventMode",0) at the end of the function 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