ctrx_mouse_move

ExampleMouse Functions

Emulates a mouse move on a Citrix client sent to a Citrix server.

int ctrx_mouse_move( long x_pos, long y_pos, long mouse_button, long key_modifier, CTRX_LAST );

int ctrx_obj_mouse_move( const char * obj_desc, long x_pos, long y_pos, long mouse_button, long key_modifier, CTRX_LAST );

obj_descA description of the object recorded if the agent is installed on the server.
x_posThe horizontal distance of the mouse up click from the edge of the ICA client window.
y_pos The vertical distance of the mouse up click from the edge of the ICA client window.
mouse_buttonMouse Key Values.
key_modifierKey Modifier Values that were pressed together with the mouse_button.
CTRX_LAST A marker that indicates the end of the argument list.

ctrx_mouse_move and ctrx_obj_mouse_move moves the mouse to the specified coordinates on the screen.

ctrx_mouse_move is not recorded. It can be entered manually in a script if necessary.

Return Values

Citrix ICA Return Values

Parameterization

No parameterization is available for this function.

Example

This is an example of the use of ctrx_mouse_move to move the pointer to 35 pixels from the left edge and 235 pixels from the top edge of the client window while pressing the left mouse button:

ctrx_mouse_move(34, 235,LEFT_BUTTON, 0, CTRX_LAST );