Lua:writeToClipboard

From Cheat Engine
Revision as of 23:48, 4 December 2025 by Leunsel (talk | contribs) (Added CodeBox Template.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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