Share this page

# rdp_type

Emulates typing printable characters on an RDP client.

Keyboard Functions

int rdp_type( "StepDescription=<step_description>", "Snapshot=<snapshot>", ["ConnectionID=<connection identifier>",] "TypedKeys=<typed_data>", 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
--- | ---
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 not required.
Snapshot | The name of the snapshot file of the screen state before this step.
StepDescription | A descriptive, unique name for this step. Use any text.
TypedKeys | A sequence of one or more printable characters.
RDP_LAST | The delimiter marking the end of the argument list.

The rdp_type function emulates a user typing printable characters. During recording, printable characters are recorded until some other type of activity is detected, such as mouse clicks or non-printable key presses. Characters appearing in this call will appear in their final case (for example, SHIFT-a will appear as "`A`").

Note: The rdp_type function is not supported for UTF-8 and native languages.

## Example

The following example shows text typed on the keyboard.

Copy code

    rdp_type(
        "StepDescription=Typed Text 1",
        "Snapshot=snapshot_9.inf",
        "TypedKeys=Belinda1",
        RDP_LAST );

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