Description

Clipboard is a library for managing clipboard - copy text to, paste text from and clear clipboard contents.

Examples

Robot Framework

*** Settings ***
Library    RPA.Desktop.Clipboard

*** Tasks ***
Clipping
    Copy To Clipboard   Text from Robot to clipboard
    ${var}=             Paste From Clipboard
    Clear Clipboard

Python

from RPA.Desktop.Clipboard import Clipboard

clip = Clipboard()
clip.copy_to_clipboard('Text from Python to clipboard')
text = clip.paste_from_clipboard()
print(f"clipboard had text: '{text}'")
clip.clear_clipboard()

API Documentation

  • Robot Framework API
  • Python module API