AutoHotkey Community

It is currently May 26th, 2012, 6:48 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 13 posts ] 
Author Message
PostPosted: June 18th, 2009, 11:20 pm 
Offline

Joined: January 7th, 2009, 9:25 pm
Posts: 18
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 June 19th, 2009, 3:07 pm, edited 2 times in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 19th, 2009, 2:39 pm 
Offline

Joined: May 15th, 2007, 8:59 pm
Posts: 169
Is this the httpQuery.ahk you are referring to?
http://www.autohotkey.com/forum/viewtopic.php?t=33506


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 19th, 2009, 2:59 pm 
Offline

Joined: January 7th, 2009, 9:25 pm
Posts: 18
yes it is. Sorry i did not post a link to that :oops:


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 12th, 2009, 12:14 am 
Offline

Joined: June 19th, 2007, 12:04 am
Posts: 174
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#


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 12th, 2009, 4:25 pm 
Offline

Joined: June 19th, 2007, 12:04 am
Posts: 174
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. :D


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 12th, 2009, 5:51 pm 
Offline

Joined: June 19th, 2007, 12:04 am
Posts: 174
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>


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 24th, 2010, 5:10 am 
Offline

Joined: September 14th, 2009, 6:23 pm
Posts: 37
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?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 24th, 2010, 7:54 am 
Offline

Joined: September 14th, 2009, 6:23 pm
Posts: 37
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. =)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 24th, 2010, 4:04 pm 
Great! it is now even easier to let the world know when I am sitting on the toilet!


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: February 24th, 2010, 5:11 pm 
Offline

Joined: July 15th, 2007, 1:43 am
Posts: 1320
Great start! Short, elegant, but can still be shaped up a bit. :D

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. >_>


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 25th, 2010, 5:04 am 
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...


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: February 12th, 2011, 8:02 pm 
does this still work .. it doesnt work for me


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: February 12th, 2011, 8:52 pm 
Offline

Joined: April 8th, 2009, 8:23 pm
Posts: 3036
Location: Rio de Janeiro - RJ - Brasil
1) http://dev.twitter.com/pages/basic_auth_shutdown
2) http://blog.twitter.com/2010/08/twitter ... oauth.html

_________________
"Read the manual. Read it again. Search the forum.
Try something before asking. Show what you've tried.
"
Image
Antonio França
My stuff: Google Profile


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 13 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: fusion1920, Ragnar, Retro Gamer and 11 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group