| View previous topic :: View next topic |
| Author |
Message |
DaveR Valued Contributor


Joined: 03 Sep 2005 Posts: 413 Location: Australia
|
Posted: Tue Oct 02, 2007 12:22 pm Post subject: |
|
|
Just to help those who read this thread to understand how to walk the child windows of the parent. As dragonsphere said "The VDS help file is not very clear on how to use the @window() function in relationship to the Window Spy tool. Basically you have to follow the hierarchy in the Window Spy. Each child is 1 character to the right if it is not then you use NEXT."
As they say, a picture is worth a thousand words:
In this image the red outlined Window class and ID were the ones I was after in the posts above (where it was suggested I use "CHILD, NEXT, CHILD, CHILD, CHILD, CHILD".
To move to a child ID that is one character space to the right you use 'child'.
'Child' is used if the next ID is one character to the right.
To move to a child ID that is the same character spacing from the left, you use next.
'Next' will move to the next ID that is the same character spacing from the left as the ID you're currently on.
To go back up:
Owner is the opposite of child.
Previous is the opposite of next. _________________ cheers
Dave
Last edited by DaveR on Tue Oct 02, 2007 4:30 pm; edited 2 times in total |
|
| Back to top |
|
 |
DaveR Valued Contributor


Joined: 03 Sep 2005 Posts: 413 Location: Australia
|
Posted: Tue Oct 02, 2007 1:13 pm Post subject: |
|
|
And 2 more to show the difference between CHILD/OWNER and NEXT/PREVIOUS
 _________________ cheers
Dave |
|
| Back to top |
|
 |
vtol Valued Contributor


Joined: 05 Feb 2004 Posts: 656 Location: Eastern Indiana
|
Posted: Fri Oct 05, 2007 8:29 am Post subject: |
|
|
Heres my thousand words also
 |
|
| Back to top |
|
 |
DaveR Valued Contributor


Joined: 03 Sep 2005 Posts: 413 Location: Australia
|
Posted: Fri Oct 05, 2007 8:53 am Post subject: |
|
|
Nice examples vtol _________________ cheers
Dave |
|
| Back to top |
|
 |
|