I would like to be able to capture text from an edit box that is in a seperate window from the program that captures it. Then that text could be a char* or a Cstring, and I could do whatever with it. For example, say I have some other program running whos window has the following qualities:
>>>>>>>>>>>> Window Details <<<<<<<<<<<<<
Title: Test Window
Class: Afx:400000:28:14a6:0:521f
Size: X: 0 Y: 0 W: 800 H: 573
>>>>>>>>>>> Mouse Details <<<<<<<<<<<
Window: X: 184 Y: 511
Cursor ID: 2
>>>>>>>>>>> Pixel Color Under Mouse <<<<<<<<<<<
RGB: Hex: 0xFFF6CF Dec: 16774863
>>>>>>>>>>> Control Under Mouse <<<<<<<<<<<
Size: X: 9 Y: 457 W: 385 H: 85
Control ID: 1003
ClassNameNN: Edit5
Text:
(Control is hidden)
Then I would run my program, and it would keep looking at Edit5 for certain text, say "AB1" and "AB2". When found, the text containing "AB1" or "AB2" would be placed in a variable in my program.
How would I do this?
(Running Visual C++ 6.0 and Borland C++ 5.x)