Right after I saw how to run Ping.fm from Launchy I realized that I could do the SAME thing from AutoHotKey. This would give me the ease of posting via a hotkey in windows to most of my social networks/micro blogs. Read More Below...
You MUST install blat. It’s a simple command line email program. VERY FAST and easy. You just copy it somewhere on your hard drive. I placed it in a place where I have a path to the program so I don’t have to specify “c:\program files\blat\blat” I can just run “blat” directly.
Then there’s the AutoHotKey macro I created the hotkey (Win-T as I used to update only twitter via the API) GUI
#t::
Gui, Add, Edit, vAA1 gAA1 w200 h50 Limit140 -WantReturn,
Gui, Add, Button, default disable vButtonOK gPressedOK section , Ping It!
Gui, Add, Button, ys vButtonCancel gPressedCancel, Cancel
Gui, Add, Text, ys VColor_Value, 140
Gui, Show
GuiControl, Focus, AA1
GuiControl,Disable,ButtonOK
return
I then create the routine to check the message length display(140 characters) for display AND to avoid sending a blank status by making sure it’s length greater than 2.
AA1:
Gui,Submit,NoHide
StringLen, msgLength, AA1
msgRem := (140 - msgLength)
GuiControl, Text, Color_Value, %msgRem%
If StrLen(AA1) > 2
GuiControl,Enable,ButtonOK
Else
GuiControl,Disable,ButtonOK
Return
Finally the code for sending the update
PressedOK:
gui, submit
run blat - -to email@pingfm -f you@example.com -server example.com -subject "Ping.fm from AutoHotKey" -body "%AA1%",,Hide
Gui, Destroy
return
The BIGGEST things you need to understand are that email@pingfm is the UNIQUE email address pingfm gave you to send updates to, a FROM address(replace you@example.com) and a server (replace example.com). One of the differences between what I did and what was shown is that I did NOT store my settings in the registry which may or may not be a plus.
The neatest thing is now a QUICK hotkey and everyone can have their nose in my business
0 responses so far ↓
There are no comments yet...Kick things off by filling out the form below.
You must log in to post a comment.