Iterative process to get Child/sibling/grandchild names

Started by hdsouza, May 08, 2014, 12:14:32 PM

Previous topic - Next topic

hdsouza

Is there already existing code that will loop though through the various child/sibling handles of an application window and write out valid components to a text file

Something along the lines of....

AddExtender("wwctl44i.dll")
ControlHandle=cWndByWndSpec("ThunderRT6MDIForm","PGAdmin",1,3244)
Win_Title=cWndinfo(ControlHandle,0)
Win_id=cWndinfo(ControlHandle,1)
Win_class=cWndinfo(ControlHandle,2)
Win_parent=cWndinfo(ControlHandle,3)
Win_FirstSibling=cWndinfo(ControlHandle,4)
Win_PreviousSibling=cWndinfo(ControlHandle,5)
Win_NextSibling=cWndinfo(ControlHandle,6)
Win_LastSibling=cWndinfo(ControlHandle,7)
Win_FirstChild=cWndinfo(ControlHandle,8)
Win_Owner=cWndinfo(ControlHandle,9)

Win_FirstChildTitle=cWndinfo(Win_LastSibling,0)
Win_SecondChild=cWndinfo(Win_LastSibling,8)
Win_SecondChildTitle=cWndinfo(Win_SecondChild,0)

Win_ThirdChild=cWndinfo(Win_SecondChild,8)
Win_ThirdChildTitle=cWndinfo(Win_ThirdChild,0)

Win_FourthChild=cWndinfo(Win_ThirdChild,8)
Win_FourthChildTitle=cWndinfo(Win_FourthChild,0)

Win_FivethChild=cWndinfo(Win_FourthChild,8)
Win_FivethChildTitle=cWndinfo(Win_FivethChild,0)

Win_SixthChild=cWndinfo(Win_FivethChild,8)
Win_SixthChildTitle=cWndinfo(Win_SixthChild,0)

Deana

Yes check out the Window Analysis Script script in the Control Manager Extender help file under  Control Manager Extender > Windows Analysis > Windows Analysis script
Deana F.
Technical Support
Wilson WindowWare Inc.