View System Windows

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
RNIB
Macro Veteran
Posts: 159
Joined: Thu Jan 10, 2008 10:25 am
Location: London, UK

View System Windows

Post by RNIB » Mon Mar 30, 2020 3:14 pm

It's been a while since I last used MS as everything has been running beautifully. Unfortunately the recent world events have caused lots of changes and now I need to rewrite a macro to use a different version of a particular program, Adobe Audition.

In the old version of Audition, when you opened a file the window name would change to Adobe Audition - name of file. In the new version the window title remains the same the whole time but a window within the program does change. Using the View System Window tool I can see that this is called:

200230 DroverLord - Window Class "DroverLord" - Frame Window

What I'm less clear on is how I use this information. Essentially I just want the macro to wait until the file has loaded in this window or until the window has changed.

User avatar
Dorian (MJT support)
Automation Wizard
Posts: 1348
Joined: Sun Nov 03, 2002 3:19 am
Contact:

Re: View System Windows

Post by Dorian (MJT support) » Mon Mar 30, 2020 5:02 pm

WaitReady might do the job here.

If you're looking to use SetFocus for "200230 DroverLord - Window Class "DroverLord" - Frame Window" you could do something like this :

Code: Select all

//You may also need to try one of these :
Let>WF_TYPE=3 - Child Windows Only
Let>WF_TYPE=0 - No Child Windows
Let>WF_TYPE=1 - ALL Windows (Default)
Let>WF_TYPE=2 - Visible Windows Only

Let>WIN_USEHANDLE=1
SetFocus>200230
Yes, we have a Custom Scripting Service. Message me or go here

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