Citrix Window APIs

Operations that can be performed on a Citrix window are listed and described in the following table. APIs that are not included in this list should not be used.

API

Description/Notes

OpenWindow()

Opens a Citrix window, with a specified application that is deployed on the Citrix server.

CloseWindow()

Closes the Citrix window (same as standard window).

BringToFront()

Brings the Citrix window to the front (same as standard window).

Exists

Checks whether the Citrix window exists (same as standard window).

MinimizeWindow()

Minimizes the Citrix window with the Citrix application.

MaximizeWindow()

Maximizes the Citrix window (external window) with the Citrix application window. If the application window cannot be maximized, the size of the window remains unchanged.

NormalizeWindow()

Normalizes the Citrix window (external window) with the Citrix application window. If the application window cannot be normalized, the size of the window remains unchanged.

Resize(w,h)

Resizes the Citrix window (external window) with the Citrix application window. If the application window cannot be resized, the window is resized, but the controls of the application’s UI are not in proportion.

FindWindow()

Returns the instance of the specified Citrix window. The parameters required to open the Citrix window (Citrix Window Properties) must be provided.

Move(x,y)

Moves the Citrix window to the specified location.

NativeAutomationElement

Returns object of type WinElement.NativeAutomationElement.

SetFocus()

Sets focus on the Citrix window.

The following APIs are not supported in older versions of Citrix (earlier than 3.4):

TypeKeys()

Move(x,y)

Resize(w,h)

MaximizeWindow()

MinimizeWindow()

NormalizeWindow()

OpenWindow()

CloseWindow()