MattX Posted January 11, 2008 Share Posted January 11, 2008 (edited) This is driving me nuts - two of the GUIs in this script - [ Case $nMsg = $infoitem2 & Case $nMsg = $Icon14 ] won't close when you click on the 'X' but they minimize !! Why ? I've tried everything - in fact if you choose the Case $nMsg = $Icon14 and click twice on the logoff / reboot box, the whole script exits when I have an Exitloop and not an Exit statement !! I would apprecaite some help otherwise I feel I have wasted my time with this.... Edited January 14, 2008 by MattX Link to comment Share on other sites More sharing options...
Developers Jos Posted January 11, 2008 Developers Share Posted January 11, 2008 (edited) Why are you using : GUIGetMsg(1) ? This returns an Array ... and you need to add a GUIDelete() after the While-Wend loop to delete the GUIs ... Edited January 11, 2008 by Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
MattX Posted January 11, 2008 Author Share Posted January 11, 2008 Why are you using : GUIGetMsg(1) ? This returns an Array ... That must have been left in when I was trying to use the GUISwitch function [ to see if this would fix it ] to force the window to be the main one. My understanding though is a new GUI is the default - I am at a loss why they minimize but won't close !! Link to comment Share on other sites More sharing options...
MattX Posted January 11, 2008 Author Share Posted January 11, 2008 Why are you using : GUIGetMsg(1) ?This returns an Array ...and you need to add a GUIDelete() after the While-Wend loop to delete the GUIs ...Arrrrrr !! Thats it - you have saved my Bacon. I am soooooooo greatful, Link to comment Share on other sites More sharing options...
Developers Jos Posted January 11, 2008 Developers Share Posted January 11, 2008 (edited) That must have been left in when I was trying to use the GUISwitch function [ to see if this would fix it ] to force the window to be the main one. My understanding though is a new GUI is the default - I am at a loss why they minimize but won't close !!Did you see my Edit in the previous post ? Edited January 11, 2008 by Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
MattX Posted January 11, 2008 Author Share Posted January 11, 2008 Did you see my Edit in the previous post ? After I took out the GUIGetMsg(1) from my original I did !! :-) 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