Set Clipboarddata

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
lohill
Posts: 770
Joined: Tue Dec 08, 2009 6:37 pm

Set Clipboarddata

Post by lohill » Wed Nov 30, 2016 12:49 am

Is there a work-around for 'set clipboarddata' when using LC 8.1.1 on a Windows PC? I have tried fullclipboarddata too and it doesn't work.

You can test this easily by just making a button with the following script:
on mouseUp
set the clipboarddata to "Hello World!"
end mouseUp
This will run successfully on a Mac but not a PC using LC 8.1.1.

Larry

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10322
Joined: Wed May 06, 2009 2:28 pm

Re: Set Clipboarddata

Post by dunbarx » Wed Nov 30, 2016 5:40 am

Hmmm.

Does this have anything to do with a current thread on the beginners section?

"copying and pasting from/to fields not working?"

Craig Newman

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10050
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Set Clipboarddata

Post by FourthWorld » Wed Nov 30, 2016 6:43 am

The clipBoardData is an array. See the dictionary for usage.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

LiveCode_Panos
Livecode Staff Member
Livecode Staff Member
Posts: 864
Joined: Fri Feb 06, 2015 4:03 pm

Re: Set Clipboarddata

Post by LiveCode_Panos » Wed Nov 30, 2016 4:13 pm

This is no longer reproducible, not sure why Larry saw that in the first place:

http://quality.livecode.com/show_bug.cgi?id=18935

[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2262
Joined: Thu Feb 28, 2013 11:52 pm

Re: Set Clipboarddata

Post by [-hh] » Fri Dec 02, 2016 10:20 am

You could use the rawClipboardData ( introduced in LC 8 ).

There is a great Clipboard stack for both, clipboardData and rawClipboardData, by Stephen Barncard.

You will find the link here (LC use-list):
http://lists.runrev.com/pipermail/use-l ... 32070.html
shiftLock happens

Post Reply