Share this page

# ctrx_mouse_move

Example | Mouse 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_desc | A description of the object recorded if the agent is installed on the server.
x_pos | The 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_button | Mouse Key Values.
key_modifier | Key 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 );`

Tips to improve your search results... VuGen Function Reference Version 26.1 Function Reference 26.1 All View Local Help Center View Online Help Center Version: