Sign in to follow this  
Followers 0
Pottery

Twitter PC control

1 post in this topic

#1 ·  Posted (edited)

I know Valuator made MyPCTweet and since he didn't release the source code I don't know how long his code is but I made this little snippet for anyone that wants to make use of it.

#include <INet.au3>
#include <String.au3>
$URL = 'https://twitter.com/user'
While 1
    $TWIT = _INetGetSource($URL)
    $TWIT2 = _StringBetween($TWIT, '<span class="entry-content">', '</span>')
    If Not @error Then
        If $TWIT2[0] = 'HI' Then
            MsgBox(0, '', 'HI')
        EndIf
    EndIf
WEnd

Just edit in whatever functions you want it to do with certain status updates and run it :blink:

Edited by Epdmk

Share this post


Link to post
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0