EddyY Posted April 20, 2011 Share Posted April 20, 2011 (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 April 20, 2011 by EddyY Link to comment Share on other sites More sharing options...
wakillon Posted April 20, 2011 Share Posted April 20, 2011 (edited) Welcome to the forums ! 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 April 20, 2011 by wakillon AutoIt 3.3.14.2 X86 - SciTE 3.6.0 - WIN 8.1 X64 - Other Example Scripts Link to comment Share on other sites More sharing options...
EddyY Posted April 20, 2011 Author Share Posted April 20, 2011 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? Link to comment Share on other sites More sharing options...
wakillon Posted April 20, 2011 Share Posted April 20, 2011 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 ! AutoIt 3.3.14.2 X86 - SciTE 3.6.0 - WIN 8.1 X64 - Other Example Scripts Link to comment Share on other sites More sharing options...
donmarick Posted May 20, 2015 Share Posted May 20, 2015 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 ? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now