[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Return Windows Clipboard string with LUA?
- From: "Jeff Pohlmeyer" <yetanothergeek@...>
- Date: Thu, 3 Apr 2008 15:18:18 -0500
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