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 


Getting text from child "windows"

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
Serge
Professional Member
Professional Member


Joined: 04 Mar 2002
Posts: 1480
Location: Australia

PostPosted: Fri Mar 08, 2002 10:23 pm    Post subject: Getting text from child "windows" Reply with quote

Hi,

i need to be able to get the text displayed in a child window but don't know how.

In particular, i am trying to get the URL displayed in the combo/editbox of MSIE.

I used Winspy to get the class name #Edit, but it is a child window several levels down. I tried @wintext(#Edit), @wintext(#IEFrame|.....|#Edit), and so on, but can't get the text displayed.

Any ideas how i can do that?

Thanks in advance,

Serge

_________________
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
LiquidCode
Moderator Team


Joined: 05 Dec 2000
Posts: 1751
Location: Space and Time

PostPosted: Sat Mar 09, 2002 3:43 am    Post subject: Reply with quote

Hello,

You should be able to find it by using the @windows() function,
by looping through the Window ID #'s.

Example:

Code:

rem first find out what the class name is of the window
rem you want using window spy (that you've done)
rem I'm going to use #IE_Class because I can't remember
rem what the real class name is. Smile

%n = #IE_Class
rem then you find the CHILD of that window. See the help file
rem for more info.
%c = @window(#IE_Class,CHILD)
rem the number of steps should be the same for
rem each instance of the same window.
repeat
   %c = @window(%c,NEXT)
   info @wintext(%c)
until @not(%c)
rem then you can step through and count the steps
rem until you get to the right control.


I hope I didn't make it too confusing for you. I can make a better
example if you request it. I'm a little off tonight Wink.
I hope that helps!

_________________
Chris
Http://theblindhouse.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
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