1. 0cguboss

    Other Lightweight clipboard library

    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...
  2. 0cguboss

    Other OOP Lightweight Network library

    local Network = require("network") local net = Network.new("MyLuaAgent/1.0", 15000) -- user agent and timeout in ms -- Simple HTTP GET local body, err = net:http_get("https://httpbin.org/get") print(body or "Error: " .. err) -- Get headers local headers =...
  3. 0cguboss

    Other OOP Lightweight File System

    local FileSystem = require("filesystem") local fs = FileSystem.new() -- Check existence print("Does 'test.txt' exist?", fs:exists("test.txt")) -- Create directory fs:create_dir("my_folder") -- Copy a file fs:copy_file("test.txt", "my_folder\\copy_test.txt") -- Move a file...
Назад
Сверху