WaitWindowOpen_class

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
chriss0212
Newbie
Posts: 1
Joined: Thu Dec 05, 2019 2:33 pm

WaitWindowOpen_class

Post by chriss0212 » Thu Dec 05, 2019 2:40 pm

It it possible to wait for a window open by the class name? My Problem is, that i have several opened windows, all with the same name.

Thx and greetings

Christian

User avatar
Marcus Tettmar
Site Admin
Posts: 7380
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Re: WaitWindowOpen_class

Post by Marcus Tettmar » Mon Dec 09, 2019 2:53 pm

You could use GetWindowNames which returns captions, handles and classnames. Then see if the classname you want is in the list. That would tell you if it exists. If you then want to see if it's visible or whatever you could use the handle to drill deeper.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts