Teradici PC over IP (PCOIP) > Alphabetical Listing of Functions > pcoip_mouse_click

pcoip_mouse_click

Emulates a mouse click.

C Language

int pcoip_mouse_click( int x, int y, int Mouse_Button, int Modify_Key, [const char* filename] );

Example Teradici PCoIP Protocol

Arguments

Name Comments
x In pixels relative to the remote window.
y In pixels relative to the remote window.
Mouse_Button LEFT_BUTTON, RIGHT_BUTTON, or MIDDLE_BUTTON
Modify_Key MODIF_ALT, MODIF_CONTROL and MODIF_SHIFT. The modifiers can be combined. For example, MODIF_CONTROL|MODIF_SHIFT
filename

The snapshot file. Do not edit this argument if the function was recorded.

General

pcoip_mouse_click emulates a mouse click

Return Values

This function returns LR_PASS (0) on success, and LR_FAIL (1) on failure.

Parameterization

Standard parameterization is not available for this function.

Example

This example shows a simple PCoIP test.

	pcoip_set_broker_address("mybroker.com", "443");
			
	pcoip_set_auth("hogan", "my_demain", lr_decrypt("123abc345def678ghi"));

	pcoip_connect("my_server", "123.123.123.123", "my_server", "4172");

	pcoip_set_display(800, 582);

	lr_think_time(5); pcoip_mouse_click(626, 13, LEFT_BUTTON, 0, "snapshot2");

	pcoip_disconnect();