Open topic with navigation
|Example: ctrx_sync_on_window||Synchronization Functions|
Waits until a window is created or becomes active.
int ctrx_sync_on_window( char *window_name, eWindowEvent event, long x_start, long y_start, long width, long height, char *filename, [CONTINUE_ON_ERROR,] CTRX_LAST );
|window_name||The window title.|
|event||The event indicating success: CREATE or ACTIVE.|
|x_start||The horizontal distance in pixels of the window's left edge from the left edge of the ICA client window.|
|y_start||The vertical distance in pixels of the window's top edge from the top edge of the ICA client window.|
|width||The width in pixels of the window.|
|height||The height in pixels of the window.|
|filename||The name of the bitmap file containing a screen shot of the window. This file is located in the script directory under data/bitmap/.|
|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.|
ctrx_sync_on_window is a synchronization function that waits for a window to become created or active.
For objects that are never truly active, such as menus, use the CREATE event to synchronize your actions. For regular windows, specify the ACTIVE event, which occurs after the CREATE event. This insures that the window is stable.
The asterisk wildcard character (*) can be used in window_name.
No parameterization is available for this function.