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 <rb@san.rr.com> 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:
  http://www.hotlinkfiles.com/files/1185875_8g0yx/clipboard_1.zip

  Usage:

    require "clipboard"

    -- Retrieve and print the clipboard's contents:
    print(clipboard.text())


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


HTH,
- Jeff