Lightweight clipboard library

Other Lightweight clipboard library

No permission to download
local clipboard = require("clipboard") -- assuming the module is saved as clipboard.lua
-- Read text from the clipboard
local text, err = clipboard.get()
if text then
print("Clipboard text:", text)
else
print("Error reading clipboard:", err)
end
-- Write text to the clipboard
local ok, err = clipboard.set("Sample text with Polish characters: ąćęłńóśźż and emoji 😀")
if ok then
print("Text successfully written to clipboard!")
else
print("Error writing to clipboard:", err)
end
Author
0cguboss
Source type
Open
Downloads
39
Views
809
First release
Last update
Rating
0.00 star(s) 0 ratings
Back
Top