Thanks, I’ll give it a try. This is my actual code but I’ll adapt it to try yours.
Sanderling.Interface.MemoryStruct.MessageBox mBox1 = (Sanderling.Interface.MemoryStruct.MessageBox)Measurement.WindowOther[0];
if (mBox1.TopCaptionText.ToString().Equals("Connection Lost"))
{
foreach (var process in System.Diagnostics.Process.GetProcessesByName("exefile"))
{
process.Kill();
}
}