Pasting to Powerpoint

J. Landman Gay jacque at hyperactivesw.com
Fri Oct 14 01:15:14 EDT 2016


On 10/13/16 7:03 PM, Trevor DeVore wrote:
> On Thursday, October 13, 2016, J. Landman Gay <jacque at hyperactivesw.com>
> wrote:
>
>> Apparently in LC 8.x, LC text in the clipboard can't be pasted into
>> Powerpoint, though it works in MS Word and some other apps. I know the
>> workaround -- paste into a text editor, copy, paste into Powerpoint -- but
>> is there a better way?
>>
>> My app is just setting the clipboarddata["text"] to a variable containing
>> plain text. I wonder if I should be setting some of the other keys in the
>> clipboard array.
>>
>> It worked okay until the last version we released, compiled with LC 8.0.2
>> on Mac OS X. Maybe it's been fixed since then? I don't have a copy of
>> Powerpoint so I can't test.
>>
>
> Last week I had a user report issues pasting images into SnagIt but not
> other apps (Windows). This issue is new to 8.x and the clipboard changes.
> It seems that the way LiveCode is placing content on the clipboard is not
> correct in 8.x. I have to in estimate further though.
>

Could the clipboardData be storing UTF16? Some apps might not work with 
that if they expect UTF8. If so, the fix would be to textEncode before 
setting the clipboardData, but we have no way of knowing what the user 
intends to do with the clipboard. It would break if they try to paste 
back into LC.

Just a guess.

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com




More information about the use-livecode mailing list