Jump to content

Recommended Posts

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

Posted

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?

Posted

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

  • 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
  • Recently Browsing   0 members

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