Windows and sub-Windows

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
Hero_fest

Windows and sub-Windows

Post by Hero_fest » Fri Feb 14, 2003 5:59 pm

How can I obtain the name of my subwindows inside of principal windows

i have a windows


-----------------------------------------
! !
! !
! ----------------- !
! ! ! !
! ! ! !
! ! ! !
! ----------------- !
! !
! !
------------------------------------------



the big windows has name XXX where XXX is random name
the small windows has name YYY where YYY is random name.

how can i obtain the name of the windows YYY. Is possible

whit the GetActiveWindow only i obtain the XXX, but not YYY.

Sorry for my english, i speak spanish.

Thanks for advanced

Hero_fest

Post by Hero_fest » Fri Feb 14, 2003 6:02 pm

Sorry in the draw are two Windows, The principal and a subWindow.
The principal is XXX, the SubWindow is YYY.
[/img]

User avatar
support
Automation Wizard
Posts: 1450
Joined: Sat Oct 19, 2002 4:38 pm
Location: London
Contact:

Post by support » Mon Feb 17, 2003 11:14 am

Hi,

Use GetActiveWindow with GAW_TYPE set to 1. Please see the documentation for GetActiveWIndow where you will see that setting GAW_TYPE to 1 will get the active child window of the active window. e.g.

SetFocus>Main_Window
Let>GAW_TYPE=1
GetActiveWindow>child_window,x,y
MessageModal>Active Child Window is %child_window%

Hope this helps.
MJT Net Support
[email protected]

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