forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Get Window ID - solved
Goto page Previous  1, 2
 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
DaveR
Valued Contributor
Valued Contributor


Joined: 03 Sep 2005
Posts: 413
Location: Australia

PostPosted: Tue Oct 02, 2007 12:22 pm    Post subject: Reply with quote

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
View user's profile Send private message
DaveR
Valued Contributor
Valued Contributor


Joined: 03 Sep 2005
Posts: 413
Location: Australia

PostPosted: Tue Oct 02, 2007 1:13 pm    Post subject: Reply with quote

And 2 more to show the difference between CHILD/OWNER and NEXT/PREVIOUS





_________________
cheers

Dave
Back to top
View user's profile Send private message
vtol
Valued Contributor
Valued Contributor


Joined: 05 Feb 2004
Posts: 656
Location: Eastern Indiana

PostPosted: Fri Oct 05, 2007 8:29 am    Post subject: Reply with quote

Heres my thousand words also Cool

Back to top
View user's profile Send private message Visit poster's website
DaveR
Valued Contributor
Valued Contributor


Joined: 03 Sep 2005
Posts: 413
Location: Australia

PostPosted: Fri Oct 05, 2007 8:53 am    Post subject: Reply with quote

Nice examples vtol
_________________
cheers

Dave
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group