AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Tweeter: A Twitter status updater.

 
Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
agdurrette



Joined: 07 Jan 2009
Posts: 18

PostPosted: Thu Jun 18, 2009 10:20 pm    Post subject: Tweeter: A Twitter status updater. Reply with quote

Tweeter is a program that will update your Twitter status and soon to do more with social networking sites.
Download: here
You will also need httpQuery.ahk available here
Code:
Code:
#include httpQuery.ahk
#NoTrayIcon

Gui, Add, Text,, Username:
Gui, Add, Text,, Password:
Gui, Add, Text,, What are you doing?:
Gui, Add, Edit, vUsername ym
Gui, Add, Edit, vPassword +Password
Gui, Add, Edit, vstuff
Gui, Add, Button, default, Update
Gui, Show,, Twitter
Return

ButtonUpdate:
Gui, Submit

username = %Username%
password = %Password%

URL := "http://" username ":" password "@twitter.com/statuses/update.xml?"
status = %stuff%
POSTdata := "status="status
httpQUERY(buffer:="",URL,POSTdata)

ExitApp

GuiClose:
ExitApp


To do:
Ability to save the username and password. don't know how to do that will find out tho.
Add support for Facebook, Myspace, and email sites such as Gmail or Yahoo.
Make it notify you when a status was updated or an email was received.
Change the name.
Make an icon.
Tell me what you think.
Any help will be appreciated.


Last edited by agdurrette on Fri Jun 19, 2009 2:07 pm; edited 2 times in total
Back to top
View user's profile Send private message Send e-mail
icefreez



Joined: 15 May 2007
Posts: 169

PostPosted: Fri Jun 19, 2009 1:39 pm    Post subject: Reply with quote

Is this the httpQuery.ahk you are referring to?
http://www.autohotkey.com/forum/viewtopic.php?t=33506
Back to top
View user's profile Send private message
agdurrette



Joined: 07 Jan 2009
Posts: 18

PostPosted: Fri Jun 19, 2009 1:59 pm    Post subject: Reply with quote

yes it is. Sorry i did not post a link to that Embarassed
Back to top
View user's profile Send private message Send e-mail
HCProfessionals



Joined: 18 Jun 2007
Posts: 166

PostPosted: Sat Jul 11, 2009 11:14 pm    Post subject: Reply with quote

Facebook is going to be a little bit more difficult. I know for a fact that the submit button posts information to the following url:

http://www.facebook.com/(first letter of your first name)(last name)?ref=profile#


For Example - here's mine:
http://www.facebook.com/rscarcella?ref=profile#
Back to top
View user's profile Send private message
HCProfessionals



Joined: 18 Jun 2007
Posts: 166

PostPosted: Sun Jul 12, 2009 3:25 pm    Post subject: Reply with quote

This would be the best possible way to go for updating facebook statuses: http://m.facebook.com/

After you have logged in, view the page source and you'll see the form for "what's on your mind?".

Another link that they help: http://forum.iopus.com/viewtopic.php?t=3527

I'll do a little research on MySpace next, but this should get you going. Very Happy
Back to top
View user's profile Send private message
HCProfessionals



Joined: 18 Jun 2007
Posts: 166

PostPosted: Sun Jul 12, 2009 4:51 pm    Post subject: Reply with quote

I have tried using this so far and didn't get anywhere:

Code:
URL := "http://" username ":" password "@m.facebook.com/home.php?"


I also recognize that the textarea name is the same as twitter: "status"

Here is the facebook source: (This is mine by the way)

Code:

<form action="/a/home.php?r050fa1ac&amp;refid=7" method="post">
<input type="hidden" name="post_form_id" value="7fea01bf265f2e966786f5ade0b8a9b7" />
<div class="nopad">What's on your mind?</div><small>Robert</small><br />
<textarea name="status" rows="2" maxlength="420"></textarea><br />
<input type="submit" name="update" value="Update Status" class="button" />
</form>
Back to top
View user's profile Send private message
mrpleco



Joined: 14 Sep 2009
Posts: 37

PostPosted: Wed Feb 24, 2010 4:10 am    Post subject: Reply with quote

I've been browsing around and this is very useful for a tool that I'm making, but I have a question. Does anybody know how to create a similar tool to this to create direct messages?
Back to top
View user's profile Send private message
mrpleco



Joined: 14 Sep 2009
Posts: 37

PostPosted: Wed Feb 24, 2010 6:54 am    Post subject: Reply with quote

mrpleco wrote:
I've been browsing around and this is very useful for a tool that I'm making, but I have a question. Does anybody know how to create a similar tool to this to create direct messages?


Very straightforward, just update the status with d tousername message. =)
Back to top
View user's profile Send private message
RocknRoller
Guest





PostPosted: Wed Feb 24, 2010 3:04 pm    Post subject: Reply with quote

Great! it is now even easier to let the world know when I am sitting on the toilet!
Back to top
trik



Joined: 15 Jul 2007
Posts: 1320

PostPosted: Wed Feb 24, 2010 4:11 pm    Post subject: Reply with quote

Great start! Short, elegant, but can still be shaped up a bit. Very Happy

Code:
#include httpQuery.ahk
#NoTrayIcon

Gui, Add, Text,, Username:
Gui, Add, Text,, Password:
Gui, Add, Text,, What are you doing?:
Gui, Add, Edit, vUsername ym
Gui, Add, Edit, vPassword +Password
Gui, Add, Edit, vStatus
Gui, Add, Button, Default gUpdate, Update
Gui, Show,, Twitter Status Updater
Return

Update:
Gui, Submit, NoHide
URL := "http://" . Username . ":" . Password . "@twitter.com/statuses/update.xml?"
POSTdata := "status=" . Status
httpQUERY(buffer:="", URL, POSTdata)
Return

GuiClose:
ExitApp


Changed:
    A few variable names
    Title bar
    When you press the update button, the GUI stays open and the program active


RocknRoller wrote:
Great! it is now even easier to let the world know when I am sitting on the toilet!


You do not have to use this program.
_________________
Religion is false. >_>
Back to top
View user's profile Send private message
RocknRoller
Guest





PostPosted: Thu Feb 25, 2010 4:04 am    Post subject: Reply with quote

trik wrote:


RocknRoller wrote:
Great! it is now even easier to let the world know when I am sitting on the toilet!


You do not have to use this program.


You are right! Sorry for the offense... there are 3 words I can't hear anymore... iPhone, Twitter, Facebook...
Back to top
Guest






PostPosted: Sat Feb 12, 2011 7:02 pm    Post subject: Reply with quote

does this still work .. it doesnt work for me
Back to top
MasterFocus



Joined: 08 Apr 2009
Posts: 3035
Location: Rio de Janeiro - RJ - Brasil

PostPosted: Sat Feb 12, 2011 7:52 pm    Post subject: Reply with quote

1) http://dev.twitter.com/pages/basic_auth_shutdown
2) http://blog.twitter.com/2010/08/twitter-applications-and-oauth.html
_________________
"Read the manual. Read it again. Search the forum.
Try something before asking. Show what you've tried.
"

Antonio França
My stuff: Google Profile
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group