jhc-systems / DelphiUIAutomation

Delphi classes the wrap the MS UIAutomation library
Apache License 2.0
108 stars 43 forks source link

No TLabel Support ? #49

Open ghost opened 6 years ago

ghost commented 6 years ago

I need read a caption from TLabel, but is not supported ?

Charles

markhumphreysjhc commented 6 years ago

Unfortunately this a problem with the underlying Delphi TLabel control. It isn't a wrapper around a Windows control, so it doesn't have a window handle. This means that that it is opaque to the underlying automation library that is being used. When I have control of the application code, I have changed TLabels to TStaticText, which should work. The same is true for TSpeedButtons