AIR: Share the Clipboard Image

They just released the AIR goodies for CS3. I guess you already noticed, unless you disabled the auto-update feature of your Adobe software. So, I started to play a bit with it and it proved fast enough for a lazy guy like me. You should know, although I’m completely and hopelessly coder (as opposed to graphic designer) , I’m the type of guy that would never create a Flex project to do a banner. Even if it’s a data driven one. Therefore, I think this CS3 plug-in for AIR is really useful. Add a few buttons, write a few lines (they have to be few, because code completion in Flash sucks) and click the right button. You have your mini desktop application in half an hour. Like this one, that I decided to share with you. It’s my (almost) first. Let’s see what it does:

If you use chat allot, you surely know what I mean. You want to send a screenshot or any image, but you don’t have the file, you just have the bitmap in your Clipboard. Of course, most new chat clients know about file transfer. But you have to open your favourite image editor, paste the image, save the file, browse for it and send. 80% of the cases, I bet you’ll find that your want-to-be-sent-image will just stay at home. Here comes my little program. It displays a tray icon. You click the icon, your Clipboard data is converted to an image format, uploaded on a website and replaced right in the Clipboard with the URL text of your uploaded image, ready to be pasted in the chat. All this in one click. In this example, only the Windows version (trayicon). If you need it, take your time write the mac version.

I used this for uploading, corelib for encoding image and.., no, that’s all.

Ah, almost forgot: the serverside. I used a small PHP script. In real-life, you should limit the usage per IP or use a login system.

here it is: air-shareimage.rar

Note: did not include the corelib files, you should download the lib yourself: corelib


You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

AddThis Social Bookmark Button

Leave a Reply

Powered by WP Hashcash