Reputation: 43
there is a program that i guess it made with Visual Basic class. and i dont have source code and i dont change it. it has a MainForm and there is a Frame into MainFrom and there is a Label into Frame . the name of Label is Label1 . this program show some data with Label1 . i want to read the caption of Label1 with my program . my program is in delphi . i can access to handle of mainform and frame with their title or their class , as fallow:
Hnd := FindWindow('ThunderRT6FormDC', nil); // find handle of mainForm
Hnd2 := FindWindowEx(Hnd, 0, 'ThunderRT6Frame', nil); // find handle of Frame in mainform
but i dont know how can access or read the caption of Label1 . please help me ...
Upvotes: 4
Views: 852
Reputation: 613372
Here are the things that you can try:
WM_GETTEXT
. Frankly, if the first two options prove to be not available I would think OCR is actually the easiest.
Upvotes: 5