setclipboard
Copy text to the Windows clipboard, or read it back (Unicode text supported).
Syntax
setclipboard(text: string) -> string
Parameters
| Parameter | Type | Description |
|---|---|---|
text | string | The text value to process. |
Returns
| Type | Description |
|---|---|
string | String |
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.