nullschritt Posted July 25, 2013 Share Posted July 25, 2013 (edited) Hello all, I am working on a rather large project, many thousands of lines of code, so if possible I will try to ask my question in the simplest way possible, to get the best answer. I have two GUIs, when the second one pops up it hides the first one, and when it;s closed, it's supposed to show the original window again. Below is my simple code for this process Func showloginwindow() GUISetState($login, @SW_SHOW) EndFunc Func hideloginwindow() GUISetState($login, @SW_HIDE) EndFunc It seems to hide the window perfectly fine, but will not show it again afterwards, I have even set a hotkey to try to manually force the window to re-appear, but with no luck. Is there something wrong with my code, or a better way of going about this? If my code above isn't useful for help please let me know and I'll try to make a small example demonstrating the error I am encountering. Edited July 25, 2013 by nullschritt Link to comment Share on other sites More sharing options...
nullschritt Posted July 25, 2013 Author Share Posted July 25, 2013 I see now that I was calling the function backwards, updating my code and trying again. Link to comment Share on other sites More sharing options...
nullschritt Posted July 25, 2013 Author Share Posted July 25, 2013 Also found an overlap in variable names in my code, resetting the $login variable, all fixed and running as expected now, sorry to waste anyone's time. 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