ahmettben Posted September 25, 2011 Share Posted September 25, 2011 #include<IE.au3> Local $mailtxt = "name" Local $passtxt = "pasword" $Mail = $mailtxt $Pass = $passtxt $oIE = _IECreate("http://twitter.com/login", 0, 1, 1) Sleep (2000) $oForm = _IEFormGetObjByName($oIE, "signin-dropdown") $oQuery = _IEFormElementGetObjByName($oForm, "session[username_or_email]") $o_Query = _IEFormElementGetObjByName($oForm, "session[password]") $oSubmit = _IEFormElementGetObjByName($oForm, "submit") _IEFormElementSetValue($oQuery, $Mail) _IEFormElementSetValue($o_Query, $Pass) _IEAction($oSubmit, "click") Link to comment Share on other sites More sharing options...
water Posted September 25, 2011 Share Posted September 25, 2011 And your problem is? My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
ahmettben Posted September 25, 2011 Author Share Posted September 25, 2011 @water auto login problem Link to comment Share on other sites More sharing options...
Ramzes Posted September 25, 2011 Share Posted September 25, 2011 (edited) Please use search option. _IE example: #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 September 25, 2011 by Ramzes Sorry for my bad English but nobody is perfect. [font=arial, helvetica, sans-serif]Ramzes[/font] Link to comment Share on other sites More sharing options...
ahmettben Posted September 25, 2011 Author Share Posted September 25, 2011 @Ramzes the problem still continues Link to comment Share on other sites More sharing options...
water Posted September 25, 2011 Share Posted September 25, 2011 Could you please be more specific? "auto login problem" doesn't tell us anything! Do you get any error messages when you run your script from SciTe? Your script lacks error checking. Does any of the _IE functions return an error (check @error). My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
ahmettben Posted September 25, 2011 Author Share Posted September 25, 2011 No error auto login problem $oForm = _IEFormGetObjByName($oIE, "signin-dropdown") $oQuery = _IEFormElementGetObjByName($oForm, "session[username_or_email]") $o_Query = _IEFormElementGetObjByName($oForm, "session[password]") $oSubmit = _IEFormElementGetObjByName($oForm, "submit") Case 'ms__id29' _IEFormElementSetValue ( $oFormElement, "username" ) Case 'ms__id30' _IEFormElementSetValue ( $oFormElement, "password" ) ;_IEFormSubmit ( $oForm ) Link to comment Share on other sites More sharing options...
ahmettben Posted September 25, 2011 Author Share Posted September 25, 2011 please help Link to comment Share on other sites More sharing options...
Developers Jos Posted September 25, 2011 Developers Share Posted September 25, 2011 You are being impatient By bumping this quickly and on top of that is the topic according to the latests version of our forum rules not allowed anymore. SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Recommended Posts