devxlogo

May 18, 2017

Getting Text from any External Window in C#

To get the text of an external window you could use the GetForegroundWindow and the GetWindowTextAPI functions. Here is a small example of its usage: public partial class Form1 :