Lightweight clipboard library

Other Lightweight clipboard library

Нет прав для скачивания

0cguboss

Customer
Регистрация
7 Июн 2025
Сообщения
17
0cguboss submitted a new item:

Lightweight clipboard library - clipboard

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

Read more...
 
Назад
Сверху