Jump to content

GUISetState($login, @SW_SHOW) Not working.


Recommended Posts

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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...