Re: Best method to see if a window is 'Open' using win32lib.

new topic     » goto parent     » topic index » view thread      » older message » newer message
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.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu