Jump to content

Twitter auto login problem


 Share

Recommended Posts

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
Link to comment
Share on other sites

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

Link to comment
Share on other sites

  • 4 years later...

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...