lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

On Wed, Apr 2, 2008 at 9:00 PM, Rolf <> wrote:

> I am still pretty much a newbie at this..
> Is there some function that returns the string in the windows clipboard?
> e.g.
> clipboardstring=os.clipboard()
> (any string in the clipboard would be returned by  os.clipboard() and copied
> to clipboardstring).

Hello, Rolf -

I just threw together a DLL module that might work for you:


    require "clipboard"

    -- Retrieve and print the clipboard's contents:

    -- Assign a new string to the clipboard:
    clipboard.text("Hello World")

- Jeff