By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,654 Members | 936 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,654 IT Pros & Developers. It's quick & easy.

Recognize static text present in a window

P: 1
Hi all,

We have a legacy application and it contains static text boxes (not the proper windows static text box but just text painted on the window). I want to read this text with my own application. I'm not sure how to do it. Since the control is not standard, I cannot use WM_GETTEXT. Infact SPY++ application does not recognize any of the text. This being the case, is there any way to do it?

I want to create a function like this:
WinGetText("windowName", x1, y1, x2, y2);
Where x1 to y2 are the top left and bottom right corners of the area of the window I'm interested in. Any help is welcome.

Thanks,
IK.
Feb 19 '07 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.