Re: Best method to see if a window is 'Open' using win32lib.
- Posted by DerekParnell (admin) Dec 11, 2009
- 824 views
ssallen said...
Hello,
I need to check to see if a window is currently open and I am not seeing any easy way.
Try this ...
if getControlInfo( aWindow, CONTROLINFO_closed) != 0 then -- Window is closed. else -- Window is opened. end if
The possible return values are ...
- -1 : Window has never been opened.
- 0 : Window is currently opened.
- 1 : Window is closed.
- 2 : Window is in the process of being closed.
Hope this helps.