Page 1 of 1
How to copy an image from an image object to clipboard
Posted: Wed May 08, 2013 4:35 pm
by ameguira
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
Re: How to copy an image from an image object to clipboard
Posted: Wed May 08, 2013 4:53 pm
by magice
copy image "imageName"
Re: How to copy an image from an image object to clipboard
Posted: Wed May 08, 2013 6:15 pm
by ameguira
Thank you Magice
I have tried it already, may be may pathname is wrong
Re: How to copy an image from an image object to clipboard
Posted: Wed May 08, 2013 6:50 pm
by jmburnod
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
Re: How to copy an image from an image object to clipboard
Posted: Wed May 08, 2013 8:39 pm
by ameguira
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
Re: How to copy an image from an image object to clipboard
Posted: Wed May 08, 2013 11:39 pm
by jmburnod
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
Re: How to copy an image from an image object to clipboard
Posted: Thu May 09, 2013 2:57 am
by magice
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.