Martin, Take a look at the Text object.
Aaron On 3/30/2010 7:21 AM, martin webster wrote:
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.
-- Aaron Smith Product Support Specialist * Web Development GW Micro, Inc. * 725 Airport North Office Park, Fort Wayne, IN 46825 260-489-3671 * gwmicro.com To insure that you receive proper support, please include all past correspondence (where applicable), and any relevant information pertinent to your situation when submitting a problem report to the GW Micro Technical Support Team.
