Hi Martin,

if notepad is the active window, here's one way which gets you the status
line; remember that the status line goes away if the option for wordwrap is
turned on, so you can't count on it always being present:

speak activeWindow.control(1025).window.clips.clipstext

hth,

Chip

 

-----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.








      

Reply via email to