Workin with windows

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
HERO_FEST

Workin with windows

Post by HERO_FEST » Fri Feb 14, 2003 8:40 pm

Hi,

I have a window with many windows inside. How can i do to retrieve the name of each window inside of main window ?

I only can retrieve the name od main window , but i can't retrieve the name of other ( inside ) windows.

Thanks for advanced.

armsys
Automation Wizard
Posts: 1108
Joined: Wed Dec 04, 2002 10:28 am
Location: Hong Kong

Post by armsys » Sat Feb 15, 2003 3:55 am

Hi HERO_FEST,

Can you give us the real name of your so-called "Main Window"?


Let>k=1
Let>First=TRUE
Let>FirstWin=XXXX
Label>Scan
GetActiveWindow>Win,X,Y
If>FirstWin=Win,End
If>First=FALES,Append
Let>First=FALSE
Let>FirstWin=Win
Label>Append
Let>Window[%k%]=Win
Press ALT
Press TAB
Relase ALT
Goto>Scan
Label>End


The above script should produce an array of all currently opening window names.

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