Lua:writeToClipboard

From Cheat Engine
Jump to navigation Jump to search

<> Lua API Reference

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

Main Pages

Core Lua documentation entry points

Lua
Script Engine