in reply to getting text from a window

Usually, e.g., in my experience, screenshots are images. If this is the case, you'll have to use an OCR application to convert the image to text. I would suggest that you try to capture the actual text, vs the rendered image of the text. How you would do this is dependent on the O/S and application(s) involved; you will have to be forthcoming with much more detail to get any kind of specific help.


Information about American English usage here and here. Floating point issues? Please read this before posting. — emc