How to copy an image from an image object to clipboard

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
ameguira
Posts: 3
Joined: Wed May 08, 2013 4:30 pm

How to copy an image from an image object to clipboard

Post by ameguira » Wed May 08, 2013 4:35 pm

Hi everybody

I am fighting with Livecode to find a way to copy an image from an image object (which is filled by a user action through a popup menu) to the clipboard

Many thanks for your help

A MEGUIRA

magice
Posts: 457
Joined: Wed Mar 18, 2009 12:57 am

Re: How to copy an image from an image object to clipboard

Post by magice » Wed May 08, 2013 4:53 pm

copy image "imageName"

ameguira
Posts: 3
Joined: Wed May 08, 2013 4:30 pm

Re: How to copy an image from an image object to clipboard

Post by ameguira » Wed May 08, 2013 6:15 pm

Thank you Magice
I have tried it already, may be may pathname is wrong

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2729
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

Re: How to copy an image from an image object to clipboard

Post by jmburnod » Wed May 08, 2013 6:50 pm

Hi ameguira,
I tried magice's way and it work for me (OSX)
What didn't work and which error you got ?
Kind regards
Jean-Marc
https://alternatic.ch

ameguira
Posts: 3
Joined: Wed May 08, 2013 4:30 pm

Re: How to copy an image from an image object to clipboard

Post by ameguira » Wed May 08, 2013 8:39 pm

Hi Jean Marc

I am using Livecode opensource on windows

This code works

lock screen
import snapshot from image "Imagefield"
set the clipboarddata["image"] to the last image
hide last image

I do not understand why copy image "Imagefield" doesn't work for me

All the best

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2729
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

Re: How to copy an image from an image object to clipboard

Post by jmburnod » Wed May 08, 2013 11:39 pm

hi ameguira,
I do not understand why copy image "Imagefield" doesn't work for me
I tried also with LiveCode community edition v. 6.0.1-rc-1|Build 1512 and
copy image work fine
I hope someone will clearing this point soon

All the best
Jean-marc
https://alternatic.ch

magice
Posts: 457
Joined: Wed Mar 18, 2009 12:57 am

Re: How to copy an image from an image object to clipboard

Post by magice » Thu May 09, 2013 2:57 am

ameguira wrote:Thank you Magice
I have tried it already, may be may pathname is wrong
Are you trying to use the path name instead of the image object name? If so, that is the problem. If the image is showing, the the path name is correct.

Post Reply