Sign in to follow this  
Followers 0
nullschritt

GUISetState($login, @SW_SHOW) Not working.

3 posts in this topic

#1 ·  Posted (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 by nullschritt

Share this post


Link to post
Share on other sites



I see now that I was calling the function backwards, updating my code and trying again.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0