Clipboard module for autopylot. This module is used to interact with the Windows clipboard.
Examples:
>>> from autopylot import clipboard
>>> clipboard.set_data(data='Hello World!')
>>> clipboard.get_data()
'Hello World!'
It contains the following functions:
set_data(data)
: Set the clipboard data to the given string.
get_data()
: Get the clipboard data as a string.
get_data()
Get the clipboard data as a string.
Returns:
Name | Type |
Description |
data |
str
|
The clipboard data as a string. |
Examples:
>>> clipboard.get_data()
'Hello World!'
set_data(data)
Set the clipboard data to the given string.
Parameters:
Name |
Type |
Description |
Default |
data |
str
|
The data to set the clipboard to. |
required
|
Returns:
Type |
Description |
None
|
None |
Examples:
>>> clipboard.set_data(data='Hello World!')
>>> clipboard.get_data()
'Hello World!'