Is there a way to find out if a window is open

Startbeitrag von John Fligg am 06.12.2017 12:03

I have tried WinStatus and other things but I cannot find a way to find out if a Window is open without getting an Exception Error.

Is there any way to find out if a Window has been opened other than setting a global? This is for WD and WM

Thx.

Antworten:

Hi John

yes there is, and it is winstatus... If you got an exception, it's probably because you didn't put the name of the window between quotes... Between quotes, it's a string that can be used to check if open or not, without the quotes, its a windows object that exists only when it is open.

And that means that you could also check by using a wehn exception to encapsulate using the windows object.

Best regards

von Fabrice Harari - am 06.12.2017 12:37
Oops - no I didn't use quotes. Thx so much.

von John Fligg - am 06.12.2017 13:25
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.