Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

Clipboard in Rebol

 [1/2] from: al::bri::xtra::co::nz at: 17-Jul-2001 16:09


Daniel wrote:
> I give... I can easily write the read function, but the write function
wants a value, and if I give it one in the function it writes that one to the clip board.
> can any one show me (with explanation) how to do this? > > write: func [ cipboard:// /local post] [ > post: [write clipboard:// ("")] > do post]
I don't know what you want. But here's how to write and read a string to and from the clipboard in Rebol:
>> write clipboard:// "hello" >> read clipboard://
== "hello" And here's how to write a file, then read it and put the text in the clipboard, then read it out of the clipboard:
>> write %test.txt "Antidisestablishmentarianism is the first word in this
file"
>> write clipboard:// read %test.txt >> read clipboard://
== {Antidisestablishmentarianism is the first word in this file} I hope that helps! Andrew Martin ICQ: 26227169 http://zen.scripterz.org

 [2/2] from: al:bri:xtra at: 17-Jul-2001 16:24


> Daniel wrote: > > can any one show me (with explanation) how to do this? > > > > write: func [ cipboard:// /local post] [ > > post: [write clipboard:// ("")] > > do post]
BTW, don't assign a function to 'write, without knowing what you're doing. Andrew Martin ICQ: 26227169 http://zen.scripterz.org