Jump to content
Sign in to follow this  
iamrock

WinState? Or some way to see if a window is hidden

Recommended Posts

iamrock

Regarding WinSetState, is there a way to see if a window is currently hidden or shown? WinExists returns true regardless if the window is hidden, but is there a way to get a window's current state (Hidden or Shown)?

Something like:

If WinSetState ( "title", "text", @SW_HIDE) = 1 Then ...

Share this post


Link to post
Share on other sites
james3mg

Regarding WinSetState, is there a way to see if a window is currently hidden or shown? WinExists returns true regardless if the window is hidden, but is there a way to get a window's current state (Hidden or Shown)?

Something like:

If WinSetState ( "title", "text", @SW_HIDE) = 1 Then ...

WinGetState(). Use BitAND to get the property you want.

And use the help file ;)


"There are 10 types of people in this world - those who can read binary, and those who can't.""We've heard that a million monkeys at a million keyboards could produce the complete works of Shakespeare; now, thanks to the Internet, we know that is not true." ~Robert Wilensky0101101 1001010 1100001 1101101 1100101 1110011 0110011 1001101 10001110000101 0000111 0001000 0001110 0001101 0010010 1010110 0100001 1101110

Share this post


Link to post
Share on other sites
Nahuel

To contribute to the last post:

Func _IsVisible($hwnd)
    Return BitAND(WinGetState($hwnd),2)
EndFunc

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  

×