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

ctrx_set_window

Example: ctrx_set_window Synchronization Functions

Waits for a window to appear in the Citrix client.

int ctrx_set_window( char *window_name, [CONTINUE_ON_ERROR,] CTRX_LAST );
window_name The window title.
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.

When emulating a GUI user, a window must appear before it can be used.

ctrx_set_window is a synchronization function that waits for a window to appear before the Vuser emulates any keyboard or mouse activity in the window.

The window_name argument indicates the name of the window that ctrx_set_window waits for, as it appears in the window's top header frame. The asterisk wildcard character (*) can be used in window_name.

If there is a succession of windows appearing in a short period of time, VuGen will only record the last call to ctrx_set_window.

Return Values

Citrix ICA Return Values

Parameterization

The parameter window_name can be parameterized