Lua:writeToClipboard

From Cheat Engine
Jump to navigation Jump to search
<> Function

function writeToClipboard(text) : void

Writes the given text to the clipboard.

Function Parameters[edit]

Parameter Type Description
text String The text to be copied to the system clipboard.

Returns[edit]

void — This function does not return any value.

Examples[edit]

writeToClipboard("Hello World")
-- Now you can paste "Hello World" into any text field using Ctrl+V or similar

See also[edit]

Lua
Script Engine