Clipboard - Copy and Paste

About the plugin

Clipboard is a simple plugin to copy and paste text between your SmallBASIC program and the Windows or Linux desktop.

Using the plugin

The plugin can be used by importing it with import clipboard. A simple “Hello World” program looks like this:

import clipboard

print clipboard.paste()

text = "Hello World"


print clipboard.paste()

Supported Commands


text = paste()

text (String): content of the clipboard

Copies the content of the system clipboard to text.



text (String): text for copying to the clipboard

Copies text to the system clipboard.