Capture text in an Afx window

Getting started -basics for starting with WinTask

Capture text in an Afx window

Postby Kerm on Thu Mar 13, 2014 9:58 am

I am trying to capture text in a window in my application but the Spy function will not highlight the window.

The window I want to capture is Window Afx "HOST" Edit in a complex hierarchy. Spy does not highight the window.
Any suggestions?
WriteUIA works however.

Thanks in advance.
Posts: 27
Joined: Tue Oct 18, 2005 4:27 pm

Re: Capture text in an Afx window

Postby TechSupport on Fri Mar 14, 2014 10:55 am


If WriteUIA works, you can capture the different attributes for the field using GetUIAProperty. Usuaklly the NAME contains the text and so you can capture like that.

WinTask Tech Support
Posts: 805
Joined: Thu Nov 16, 2006 9:58 am

Return to Getting started

Who is online

Users browsing this forum: No registered users and 1 guest