Getting Text from any External Window in C# May 18, 2017 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 :