Yuari
Documentation
Docs/Input & clipboard/setclipboard

setclipboard

Copy text to the Windows clipboard, or read it back (Unicode text supported).

Syntax

setclipboard(text: string) -> string

Parameters

ParameterTypeDescription
textstringThe text value to process.

Returns

TypeDescription
stringString

Description

setclipboard is part of the Input & clipboard library. Input helpers read or synthesize OS input and only report state while the game window is focused.

The change is applied directly to the live target, so later reads observe the updated value.

The aliases getclipboard() resolve to the same implementation.

Example

setclipboard("hello")
print(getclipboard())

Notes

  • Aliases: getclipboard().
  • Input status is focus-gated and only reports while the game is active.