Copy the return value of a function to the clipboard

You can use clipboard

function foo()
    s = "copy this"
    clipboard(s)
end
3 Likes