Citrix ICA Vuser Functions (CTRX) > Alphabetical List of Functions > ctrx_get_window_position

ctrx_get_window_position

Example: ctrx_get_window_position Information Retrieval Functions

Retrieves the position of a window.

int ctrx_get_window_position( LPSTR title, long *xpos, long *ypos, long *width, long *height, [CONTINUE_ON_ERROR,] CTRX_LAST );
title The name of the window.
xpos The output parameter containing the horizontal distance of the left edge of the window from the edge of the ICA client window
ypos The output parameter containing the vertical distance of the top edge of the window from the edge of the ICA client window
width The width of the window, in pixels
height The height of the window, in pixels
CONTINUE_ON_ERROR A constant, entered as shown without quotes. Overrides the error behavior run-time setting for this step so that script behaves as though the run-time setting was Continue on error.
CTRX_LAST A marker that indicates the end of the argument list.

Use ctrx_get_window_position to retrieve the position of the window with the name title. If title is NULL then the function retrieves the position of the window currently in focus.

It is up to the user to allocate memory space for all output parameters before ctrx_get_window_position is invoked, and to de-allocate the memory after it.

Return Values

Citrix ICA Return Values

Parameterization

No parameterization is available for this function.