Post
by sturgis » Fri Jan 22, 2010 3:32 am
look at the clipboard() function in your dictionary. IT can be used to determine if there is anything in the clipboard, and what type of data it is.
To put something into the clipboard, or get it from the clipboard look at clipboardData
The following puts the data into the clipboard.
set the clipboardData["text"] to the label of button "xyz"
At this point, you can look to see what type of data is in there.
put the clipboard
will return "text" and put it in the message box.
To get stuff back out of the clipboard is pretty straightforward too.
put the clipboardData["text"] into field "abc"
Quite a bit more good information in the dictionary, but this should get you started.
Edit: While it seems it should work as in your example, apparently copy can't figure out what to do with a property return. put char 1 to -1 of the label of button "xyz" works, but when you tack the copy on to the front it doesn't. /shrug. Either way, it still seems easier to me to use clipboardData directly to set and get values. Much more flexible unless you want to copy objects.
If anyone can point out a proper syntax/method to use copy to put label names and the like into a clipboard, i'd be curious to know how. Thx
Last edited by
sturgis on Fri Jan 22, 2010 3:42 pm, edited 1 time in total.