Here's another way to get a status bar window.
Dim dChildren
Set dChildren = Nothing
Set dChildren = ActiveWindow.DirectChildren.FilterByType(wtStatus)
If Not dChildren Is Nothing And dChildren.Count = 1 Then
 ' You've got a status bar window object.
Else
 ' It's either not there or not a true status bar window.
 ' In the latter case figure out which child it is.
End If

Hth,
Tom


-----Original Message-----
From: martin webster [mailto:[email protected]]
Sent: Tuesday, March 30, 2010 7:22 AM
To: aaron; [email protected]; windowseyes surport team
Subject: retrieving text from a specific window?

Hi all,
How do I retrieve text from a specific window?. I am trying to retrieve the
status line information from notepad using windowsXP, The status window has
a control Id of 1025, but I can't get anything to work with this in the
Immed window. I tried the following lines of code in immed, using the
Clips object and this worked only whilst the cursor was at line 1 column 1.
Lines of VBScript from immed:

Set x = ActiveWindow.Children
Set c = x.Item(3).Clips
print c.count ' output
1
Speak c.Item(1)
output
When on first line first column "LN1 column 1". I don't really want to use
the clips object as I have a window control Id.
Warm regards.
Martin Webster.











__________ Information from ESET NOD32 Antivirus, version of virus signature database 4986 (20100330) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com



Reply via email to