Paste image from clipboard

Alejandro Tejada capellan2000 at yahoo.com
Sat Jan 10 13:49:41 EST 2004


Hi Developers,

I have been pasting images in MC/RR and
i have got some mixed results with two
handlers that will like you confirm:

1) A jpg image of 34k copied from Internet Explorer
and pasted in a stack GROWS to 56k. But this
jpg decompressed takes 145k.

Open a jpg image in explorer an right click
on the image. Choose copy from the contextual menu.

Create an empty image in a stack and write in
the message box:

set the text of img 1 to the clipboarddata 

It's the same size as original image?

2) Copy the file of a jpg image in windows
explorer. The clipboard now has the path to the 
image: "C://Documents//MyImage.jpg"

Notice, the function the clipboard in MC reports 
the clipboard as empty, but the function the 
clipboarddata returns the path of the image.

write in message box:

put the clipboarddata

and you effectively get the path to the image

Now, write in the message box:

put "binfile:" & the clipboarddata into zxcv
set the customProperty01 of the topstack to url zxcv
create image
set the text of it to the customProperty01 of the
topstack

Now, this code works sometimes, others no.

Could you confirm this on your machines?

Thanks in advance.

al


=====
Visit my site:
http://www.geocities.com/capellan2000/
Search the mail list:
http://mindlube.com/cgi-bin/search-use-rev.cgi

__________________________________
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus


More information about the use-livecode mailing list