PALATINELABSDocsENES

Pages

↑↓ to moveEnter to openEsc to close

Clipboard package guide

Read, replace and clear text on the Windows clipboard used by the Run session.

Version 2.17.1. Installed versions can differ. Examples are illustrative and not tested. See Packages.

Jump to actions

Prerequisites

Actions

Copy from (clipboardAssignFromClipboard)

Read the clipboard text, after Copy to or after a person copies text.

Inputs

None.

Outputs

OutputTypeValue
resultStringThe clipboard text. Bind it to a String variable.

Example

Run Copy to with value=Invoice 1042. Run Copy from and bind result to the String variable clipboardText.

Expected result

$clipboardText$ is Invoice 1042. If the clipboard is empty or has no text, the result is an empty String. If the clipboard cannot be opened, the step fails.

Back to actions

Copy to (clipboardAssignToClipboard)

Replace the clipboard content with text, for example before you paste.

Inputs

InputEditor fieldType, defaultValue
valueValueString⁠, emptyRequired. Text such as Invoice 1042⁠, or a String variable such as $invoiceText$⁠. To clear the clipboard, use an empty String variable (the field does not accept empty text).

Outputs

None.

Example

Set value=Invoice 1042, then run Copy from and bind its result to clipboardText.

Expected result

Copy from returns Invoice 1042. The earlier clipboard content is gone.

Back to actions

Clear (clipboardClearClipboard)

Empty the clipboard.

Inputs

None.

Outputs

None.

Example

Run Copy to with value=Temporary sample, then run Clear. Read the clipboard with Copy from.

Expected result

Copy from returns an empty String. The earlier content cannot be recovered.

This package has no conditions.

Back to actions