Twitter Autohotkey Script (with TinyURL)

After playing with AutoHotKey for a while, I figured I’d throw my contribution into the ring.  Here is a script for creating and posting twitter messages using Windows + t.  It has a nice little GUI and sends if you click the button OR hit return, making posting a very quick process.

As a sort of bonus, if you want to add a link, just copy the URL then click the TinyURL button.  This will change the clipboard contents from the original link to a new TinyURL (generated via the TinyURL API).  I used HTTPQuery.ahk from the Autohotkey Forums for the Twitter posts.

UPDATE – now if you press Alt + t, the TinyURL function is done for you without a mouse click.  Also, the close button on the window no longer shuts down the script.

To get started, just extract the files into a single folder and put your credentials into the logon.txt file.  Once you’ve done that, just double click on the EXE file (with the JAA logo) and voila – the magic starts.

If you like this, please check out my main blog for other helpful articles!

Twitterscript (72)

I plan on posting other snippets of code that I find useful over the next few months, but for now feel free to email suggestions to ab@justanasterisk.com.

Enjoy

~ab

UPDATE – I made a mistake in the original code for the tinyurl function (it was adding an extra http to everything).  It’s fixed now.  Let me know if you find any other bugs…

Versions

7/31/2009 V1.1 Added

Get Adobe Flash playerPlugin by wpburn.com wordpress themes