Lua:writeToClipboard
Jump to navigation
Jump to search
| <> Function function writeToClipboard(text) : void |
Writes the given text to the clipboard.
Function Parameters
| Parameter | Type | Description |
|---|---|---|
| text | String | The text to be copied to the system clipboard. |
Returns
void — This function does not return any value.
Examples
writeToClipboard("Hello World")
-- Now you can paste "Hello World" into any text field using Ctrl+V or similar
See also
| Lua |
| Script Engine |