Paste clipboard content to cursor

更新时间:
复制 MD 格式

1. Component overview

Note

Prerequisite component: Set Clipboard Content

This component pastes content from the clipboard at the current cursor position.

Important

This component simulates the Windows paste command (Ctrl+V) to paste content at the current cursor position.

Complete the following prerequisites in previous automation steps:

  1. Copy content to the clipboard (Ctrl+C). This can be done in several ways, such as clicking a copy button on a page (see 5. Process creation example) or using the Set Clipboard Content component.

  2. Set the cursor position by using components such as Click Mouse, Click UI Element (CV), or Click control (web).

For more information about using the clipboard for input, see Using the system clipboard for input.

Warning

When this component runs, its behavior might be affected by the Windows host where the robot is running:

  • Do not use this component in scenarios that involve human intervention, such as the manual execution of a local robot on a client (see Manual client execution).

  • When used with a server-based robot, disable clipboard sharing in the Elastic Desktop Service (EDS) policy (see Standardizing the robot runtime environment). This prevents incorrect data entry caused by sharing the clipboard between the terminal's host and the EDS instance.

2. Input items

Note

See the help information for each input item in the component panel of the visual editor.

3. Output items

Note

See the help information for each output item in the component panel of the visual editor.

4. Usage example

See Process creation example.

5. Process creation example

Create the process

  1. Use the Get Opened Web Page component to get the object for an opened Baidu page.

  2. Use the Click control (web) component to click the Baidu search box, which positions the cursor inside it.

  3. Use the Set Clipboard Content component to add content to the clipboard.

  4. Use the Paste Clipboard Content to Current Cursor Position component to paste the content from the clipboard.

image

Execution result

The process then pastes the clipboard content into the Baidu search box.

image