Sign in to follow this  
Followers 0
EddyY

Twitter auto login problem

5 posts in this topic

#1 ·  Posted (edited)

Hellow,Twitter login page change something, i can't autoit again,

please help me, Thanks!

#include <IE.au3>
$oIE = _IECreate("http://twitter.com/#!/login")
_IELoadWait($oIE)
While 1
        $oTop = _IEGetObjById($oIE, "signin-dropdown")
        If $oTop.innerHTML <> '' Then
                ExitLoop
                EndIf
        Sleep(100)
WEnd
$oDiv = _IEGetObjByName($oIE, "session[username_or_email]")

_IEFormElementSetValue($oDiv, "user_name")     ;<-- not work
$oDiv.value = "user_name"      ;<-- not work
Edited by EddyY

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Welcome to the forums ! Posted Image

Try this

#include <IE.au3>

$Url='http://twitter.com/#!/login'
$oIE = _IECreate ( $Url )
_IELoadWait($oIE)
Sleep ( 1000 )
$oForms = _IEFormGetCollection ( $oIE )
For $oForm In $oForms
    $_UniqueId = $oForm.uniqueID
    $oFormElements = _IEFormElementGetCollection ( $oForm )
    For $oFormElement In $oFormElements
        Switch $oFormElement.uniqueID
            Case 'ms__id29'
                _IEFormElementSetValue ( $oFormElement, "username" )
            Case 'ms__id30'
                _IEFormElementSetValue ( $oFormElement, "password" )
                ;_IEFormSubmit ( $oForm )
        EndSwitch
    Next
Next
Edited by wakillon

AutoIt 3.3.14.2 X86 - SciTE 3.6.0WIN 8.1 X64 - Other Example Scripts

Share this post


Link to post
Share on other sites

Thanks wakillon, it is work!

i wont to learn more,

the case 'ms__id29' and 'ms__id30' is what?

i how to read and find the case id?

Share this post


Link to post
Share on other sites

In fact i start by seaching to set value to "session[username_or_email]" and "session[password]"

but unsuccessfully...

So i try by uniqueid, one by one until find the good one ! Posted Image


AutoIt 3.3.14.2 X86 - SciTE 3.6.0WIN 8.1 X64 - Other Example Scripts

Share this post


Link to post
Share on other sites

Sorry guys for dig old posts but, I want to run this script or something other to autologin on Twitter is there any good working script ? 

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