View previous topic :: View next topic |
Author |
Message |
Serge Professional Member
Joined: 04 Mar 2002 Posts: 1480 Location: Australia
|
Posted: Fri Mar 08, 2002 10:23 pm Post subject: Getting text from child "windows" |
|
|
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 |
|
|
LiquidCode Moderator Team
Joined: 05 Dec 2000 Posts: 1751 Location: Space and Time
|
Posted: Sat Mar 09, 2002 3:43 am Post subject: |
|
|
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.
%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 .
I hope that helps! _________________ Chris
Http://theblindhouse.com |
|
Back to top |
|
|
|
|
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
|
|