Click here to Skip to main content
15,867,568 members
Articles / Desktop Programming / Windows Forms

Zeta Twitpic

Rate me:
Please Sign up or sign in to vote.
5.00/5 (11 votes)
19 Feb 2010CPOL2 min read 29.7K   810   14   3
Small tool to monitor the clipboard for images and upload them to Twitpic

Introduction

This article introduces a small tool that sits in your system tray as an icon and monitors the clipboard for images.

If an image is detected, the application pops up and allows you to upload the picture to twitpic.com with your Twitter credentials and post the URL to Twitter. In addition the URL of the uploaded image is being copied to your clipboard, so that you can easily e.g. send the URL by e-mail or use otherwise.

If you don't know Twitter, you may look at their website Twitter.com or read the Wikipedia article about Twitter.

Background

I got the idea to write this tool from the need to sometimes put screenshots to Twitter/Twitpic.

The usual process was to copy an image to the clipboard, fire up Paint.NET, paste the image into Paint.NET, save the image to a file, then go to the Twitpic website, upload my image and post the URL to Twitter.

This requires too many steps in my opinion, so I created this tiny little application in a few hours on a boring Saturday morning.

Technical Implementation

Since it is rather easy to use the Twitpic API, the tool contains rather few sophisticated code, too.

Basically it is just a small Windows Forms application that contains a clipboard chain viewer and a method to HTTP-post an image to an URL. That's really all.

The clipboard viewer was inspired by this article, the Twitpic upload code was taken and adjusted from this posting.

Image: Zeta Twitpic while uploading an image to the Twitpic servers.

Current State of the Tool

The Zeta Twitpic tool was a quickly assembled tool that perfectly fit my needs. Probably it does not fit yours completely.

Therefore you have at least two options:

  1. Download the source code and enhance it the way you want it.
  2. Tell me (down here in the comments section) which features are missing that I should add.

Of course option 2 would be helpful to me when enhancing.

As usual, I will enhance, extend and correct the tool over the next weeks and months. Keep the feedback coming!

History

  • 2010-02-20 Uploaded first version to CodeProject.com

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Chief Technology Officer Zeta Software GmbH
Germany Germany
Uwe does programming since 1989 with experiences in Assembler, C++, MFC and lots of web- and database stuff and now uses ASP.NET and C# extensively, too. He has also teached programming to students at the local university.

➡️ Give me a tip 🙂

In his free time, he does climbing, running and mountain biking. In 2012 he became a father of a cute boy and in 2014 of an awesome girl.

Some cool, free software from us:

Windows 10 Ereignisanzeige  
German Developer Community  
Free Test Management Software - Intuitive, competitive, Test Plans.  
Homepage erstellen - Intuitive, very easy to use.  
Offline-Homepage-Baukasten

Comments and Discussions

 
GeneralSuggested Feature Pin
sam.hill20-Feb-10 5:50
sam.hill20-Feb-10 5:50 
GeneralRe: Suggested Feature Pin
Uwe Keim20-Feb-10 5:55
sitebuilderUwe Keim20-Feb-10 5:55 
GeneralRe: Suggested Feature Pin
sam.hill20-Feb-10 13:19
sam.hill20-Feb-10 13:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.