> ## Documentation Index
> Fetch the complete documentation index at: https://docs.projectreal.gg/llms.txt
> Use this file to discover all available pages before exploring further.

# setclipboard

> Writes one value to the Windows system clipboard as text. The value is converted to a string. The function returns no status value, whether the clipboard write succeeds or fails. toclipboard is an alias.

<div className="real-function-page">
  ```lua theme={null}
  setclipboard(text: any)
  ```

  ## Aliasy

  * `toclipboard`

  ## Argumenty

  <ParamField path={"text"} type={"any"} required>
    Value converted to a string and written to the Windows system clipboard.
  </ParamField>

  ## Przykład

  Write a value to the Windows system clipboard.

  ```lua theme={null}
  setclipboard("Copied from Real")

  toclipboard(12345)
  ```
</div>
