clipboard
('copy', data)
¶txt
= clipboard ('paste')
¶Insert or get data from the clipboard.
’copy’ or ’paste’ is the required operation to perform. where ’copy’ will copy data to the clipboard, and paste will paste data from the clipboard to a variable.
data is the data to copy to the clipboard.
txt is the text from the clipboard or an empty string it it can not convert to text..
Examples:
Copy a string to the clipboard:
clipboard('copy', 'hello world');
Get a string from the clipboard:
txt = clipboard('paste');
Package: windows