iamrock Posted August 25, 2008 Share Posted August 25, 2008 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 ... Link to comment Share on other sites More sharing options...
james3mg Posted August 25, 2008 Share Posted August 25, 2008 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 Link to comment Share on other sites More sharing options...
Nahuel Posted August 25, 2008 Share Posted August 25, 2008 To contribute to the last post: Func _IsVisible($hwnd) Return BitAND(WinGetState($hwnd),2) EndFunc 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