---
title: "getClipboardText"
canonical: "https://help.vicon.com/space/Shogun16/13341132/getClipboardText"
format: markdown
---
# Description

Gets text that was copied to the clipboard.

## Functional area

System

# Command syntax

## Syntax

|  |
| --- |
| `getClipboardText` |

### Arguments

None

### Flags

None

## Return value

string

Any text that was copied onto the system clipboard.

## Examples

```plaintext
// Copy some text to the clipboard and then get it, verifying
// that they are the same
string $str;
copyString "Hello Shogun User";
$str = `getClipboardText`;
 
// Will print "Hello Shogun User"
print $str;
```

# Additional information

## Related commands

- [copyString](https://vicon-help.atlassian.net/wiki/spaces/Shogun16/pages/13340065)