pcoip_key

Emulates a keystroke in a remote session .

C Language

int pcoip_key( const char* key, long int key_modifier );

Example Teradici PCoIP Protocol

Arguments

Name Comments
key A character key or the name of a special key. See below: Special Keys.
key_modifier A key pressed together with the character or special key. Modifiers can be combined, for example, MODIF_SHIFT|MODIF_CONTROL. See below: Key Modifier Values

General

pcoip_key emulates a keystroke in a remote session.

Note: To set a delay after a keystroke event, select and configure the PCoIP runtime setting, Delay after keystroke and mouse click.

Return Values

E_OK  
E_ALREADY_CONNECTED Do not call this function after the connection is established.
E_NOT_CONNECTED Action cannot be performed. There is no connection to the remote server.
E_OUT_OF_TIME Function timed out.

Parameterization

Standard parameterization is not available for this function.

Example

These are examples of the use of pcoip_key.

	pcoip_key("NUM_LOCK_KEY", 0);

	pcoip_key("h", MODIF_SHIFT); // Capital H