Back

GetClipboardText

JS Py
Hello World

GetClipboardText returns text that was last copied to the clipboard.

app.GetClipboardText() → String

See Also: SetClipboardText

Example - show latest clipboard text

function OnStart()
{
    var text = app.GetClipboardText();
    app.Alert( text );
}
from native import app

def OnStart():
    text = app.GetClipboardText()
    app.Alert(text)
    Copy     Copy All       Run