I was searching for some more things to do with
Launchy, the open source keystroke launcher, and I came across an old
Lifehacker article explaining how to update your Twitter status using Launchy, curl and a batch script.
I don't like using using curl, so I made a script instead using
httpQuery.
DIRECTIONS
1. Save the twit.ahk script to a directory.
2. Enter your Twitter UserName and Password into the script.
Code:
UserName := "UserName"
Password := "Password"
3. Add the directory to Launchy's Catelog and add *.ahk to the extensions

4. Type twit in the Launchy bar and then press Tab and type your Twitter status.

5. Voilà

twit.ahkCode:
; ==============================================================================
; NAME: twit.ahk
; VERSION: v0.1.0
; DESCRIPTION: Update Twitter status via Launchy
;
; AUTHOR: Voltron43
; HOMEPAGE: http://autohotkey.net/~Voltron43
; ==============================================================================
;
; ---Construct Status message from passed parameters
Loop, %0%
Status := A_Index = 1 ? %A_Index% : Status " " %A_Index%
; ---Check to make sure Status is shorter than 140 characters
If StrLen(Status) > 140
{
MsgBox, 32,,Status is too long!
ExitApp
}
UserName := "UserName"
Password := "Password"
URL := "http://" UserName ":" Password "@twitter.com/statuses/update.xml?"
POSTdata := "status=" Status
length := httpQUERY(buffer:="",URL,POSTdata)
VarSetCapacity(buffer, -1)
; ---Check for error
If buffer contains status
MsgBox, 32,, Status Update Complete!
Else
MsgBox, 32,, Twitter Error!
#Include httpQuery.ahk