Clipboard

Richard Gaskin ambassador at fourthworld.com
Fri Jun 22 14:12:23 EDT 2007


-= JB =- wrote:
>> So you want to show the clipboard text in a window? In that case  
>> you are going to need a new substack, and put the text into a field  
>> in that substack. Then use something like:
>>
>> put the clipboardData["text"] into fld "clip" of stack "show clip"
>> go stack "show clip"
...
> Okay, thanks.  From the reply by you and Scott and from
> what I have read in the Rev Docs I take it the clipboard
> cannot be shown.  But I can find out what is on it and I
> can also paste what is on it.  So if I want to actually see
> what is on the clipboard I need to build a stack to copy
> the contents of the clipboard rather than actually being
> able to show the clipboard itself.

That's basically what the Mac Finder does. You can obtain the type of 
data on the clipboard with the clipboard() function, then use the 
clipboardData global array to obtain its contents for display.

It might be handy if some kind soul here were to make a one-liner 
library call which implements a "Show Clipboard" command.....

-- 
  Richard Gaskin
  Managing Editor, revJournal
  _______________________________________________________
  Rev tips, tutorials and more: http://www.revJournal.com



More information about the use-livecode mailing list