---
title: "copyString"
canonical: "https://help.vicon.com/space/Shogun111/13207702/copyString"
format: markdown
---
# Description

Copies a string to the system clipboard, as unformatted, plain text.

## Functional area

System

# Command syntax

## Syntax

|  |
| --- |
| `copyString text` |

### Arguments

| **Name** | **Type** | **Required** | **Comments** |
| --- | --- | --- | --- |
| `text` | string | yes | Text to copy to the clipboard. |

### Flags

None

## Return value

void

## Examples

```plaintext
// Copy some text to the Clipboard
string $str1 = "This is ";
string $str2 = "some text.";
string $result;
$result = $str1 + $str2;

// Copy it
copyString $result;
```