Share this page

# rdp_mouse_double_click

Emulates a mouse double-click on an RDP client.

Mouse Functions

int rdp_mouse_double_click( "StepDescription=<step_description>", "Snapshot=<snapshot>", ["ConnectionID=<connection_identifier>",] "MouseX=<x_pos>", "MouseY=<y_pos>", "MouseButton=<mouse_button>", "KeyModifier=<key_modifier>", "Origin=<Recorded|Synched|Default>", RDP_LAST );

This function returns LR_PASS (0) on success or LR_FAIL (1) on failure. Note that LR_PASS and LR_FAIL generally indicate whether the function call completed without an exception, and not that the test step succeeded.

All string arguments (char type) can be parameterized using standard parameterization.

Argument | Description
--- | ---
StepDescription | A descriptive, unique name for this step. Use any text.
Snapshot | The name of the snapshot file of the screen state before this step.
ConnectionID | The name of the connection on which this function operates. Do not change the recorded ID. If several connections are open and the ID is not specified, the first connection in the script is used. If only one connection is open, the connection ID is unnecessary.
MouseX | The horizontal distance of the mouse click from the left edge of the client window.
MouseY | The vertical distance of the mouse click from the top edge of the client window.
MouseButton | The mouse button clicked. The mouse buttons are: LEFT_BUTTON, MIDDLE_BUTTON, and RIGHT_BUTTON. Use a comma-separated list to indicate that more than one button is clicked, for example: "MouseButton=M1,M2".
KeyModifier | The modifier key pressed while performing this operation. Use a comma-separated list to indicate that more than one key is used, for example: "KeyModifier=M1,M2" Optional For a list see Modifier Key Values.
Origin | Specifies which set of coordinates to use. Possible values are: Recorded (the exact recorded coordinates), Synched (the adjusted coordinates using the offset from the last image synchronization), and Default (use the option specified in the runtime settings).
RDP_LAST | The delimiter marking the end of the argument list.

The rdp_mouse_double_click function emulates a mouse double-click with the specified button at MouseX, MouseY. If KeyModifier is used, the specified keys are press during the click.

## Example

The following example shows double clicking a mouse button.

rdp_mouse_double_click(

"StepDescription=Mouse Double Click 1",

"Snapshot=snapshot_12.inf",

"MouseX=37",

"MouseY=317",

"MouseButton=LEFT_BUTTON",

"Origin=Default",

RDP_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: