Skip to main content

Get clipboard text

Read text from the clipboard, optionally waiting until text arrives (e.g. after pressing CTRL+C).

Command in the Mouse and keyboard toolkit · id ooa.desktop/clipboard_get · 2 inputs, 2 outputs

Inputs​

InputTypeRequiredDefaultWhat it is
Wait (seconds)NumberNo0Keep checking up to this long while the clipboard is empty or busy; 0 reads once.
TrimBooleanNofalseRemove spaces and line breaks at both ends.

Outputs​

OutputTypeWhat it is
textStringClipboard text, empty when it holds no text.
has_textBooleanTrue when the clipboard held text.