Home > Back-end >  How to obtain external program material on the Label of Caption value
How to obtain external program material on the Label of Caption value

Time:09-18

CSDN search to a pile of the same problem, but didn't see a solution, can someone solution?

CodePudding user response:

Handle can, through layer upon layer,

CodePudding user response:

But I can't catch the Label through the EnumChildWindows handle, I test yong spy + software to catch also catch. Or do you have any other way can catch?

CodePudding user response:

I tried to get external program EDIT control can be successful, because the EDIT have handle, but the label seems to be no good, because there is no handle, label by looking for the form way is to find,

CodePudding user response:

Tried, Label without a handle, this method can not,

Only through a small range (designated areas) screenshots, by recognizing characters, to obtain,

CodePudding user response:

TLable inherited from TGraphicControl, no handle, so can't use the traditional Windows API to look up,
Injected into the target process, access to the Form instance, is a reliable traversal Components again,
  • Related