CitrixVirtualUser ActiveWindows Property C# API
Get the list of active windows

Namespace: Facilita.Fc.Citrix
Assembly: fcCitrix (in fcCitrix.dll) Version: 9.5.8.37
Syntax

public IList<IWindow> ActiveWindows { get; }

Field Value

a list of the active windows within the Citrix session
Remarks

This list can be used to check the captions or other properties of the active Citrix windows.
Examples

WriteMessage("ActiveWindows count = " + ActiveWindows.Count.ToString());

foreach (WFICALib.IWindow window in this.ActiveWindows)
{
    if (window.Caption.Contains("2012"))
    {
        WriteMessage("found: " + window.Caption);
        break;
    }
}
See Also