Sign in to follow this  
Followers 0
darzanmihai

login to hotmail with IE.au3 UDF

21 posts in this topic

How could I get the names or the Ids of the Input boxex and of the "sign in"Button for using the IE.au3 UDF for auto loging in.

I have tried using the DebugBar for IE but it showed no info for this page:

http://login.live.com/login.srf?wa=wsignin...51&id=64855

Please , need urgent help!

Thx in advance!


I do not like stupid and idiot people that write idiot things...If you are one, do not write.

Share this post


Link to post
Share on other sites



How could I get the names or the Ids of the Input boxex and of the "sign in"Button for using the IE.au3 UDF for auto loging in.

I have tried using the DebugBar for IE but it showed no info for this page:

http://login.live.com/login.srf?wa=wsignin...51&id=64855

Please , need urgent help!

Thx in advance!

Search in HelpFile for _IE functions


 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

Share this post


Link to post
Share on other sites

Search in HelpFile for _IE functions

I actually did that, and that is why I asked...I have no clue.


I do not like stupid and idiot people that write idiot things...If you are one, do not write.

Share this post


Link to post
Share on other sites

If you look at the source code, you can see the names of the input boxes.

try looking for

<input type="text" name="loginname"> and <input type="password" name="password">

These are just examples, the real names and syntax will be different.


[right]~What can I say, I'm a Simplistic person[/right]

Share this post


Link to post
Share on other sites

What toonboon said... and check out DebugBar to make it easier (see my sig).

Dale


Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl

MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model

Automate input type=file (Related)

Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded  Better Better?

IE.au3 issues with Vista - Workarounds

SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead?

Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble

Share this post


Link to post
Share on other sites

What toonboon said... and check out DebugBar to make it easier (see my sig).

Dale

I have used your DebugBar Dale, even befor posting here, but I could not get any value using it.

This is the source of the page(all of it):

<!-- ServerInfo: BAYIDSLGN1Q12 2008.07.30.00.23.50 Live1 Unknown LocVer:0 -->
<!-- PreprocessInfo: btsa007:TK1GPDBLD31,  -- Version: 6,0,11648,0 -->
<html dir="ltr"><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/><base href="http://login.live.com/pp600/"/><noscript><meta http-equiv="Refresh" content="0; URL=http://login.live.com/jsDisabled.srf?lc=1033"/>Windows Live ID requires Javascript to sign in. This web browser either does not support Javascript, or scripts are being blocked.<br /><br />To find out whether your browser supports Javascript, or to allow scripts, see the browser's online help.</noscript><title>Sign In</title><meta name="PageID" content="i5030"/><meta name="SiteID" content="64855"/><meta name="ReqLC" content="1033"/><meta name="LocLC" content="1033"/><script type="text/javascript">var g_QS="wa=wsignin1.0&rpsnv=10&ct=1227208038&rver=5.5.4177.0&wp=MBI&wreply=http:%2F%2Fmail.live.com%2Fdefault.aspx%3Fn%3D1521319951&id=64855&bk=1227298368";</script><script type="text/javascript">var srf_sBrHdr='';var srf_sBrTtl='Windows Live Hotmail';var srf_sBrSTtl='The new Hotmail brings you more. More space (5 GB), more security, still free.  Sign up for our award-winning service.';var srf_uBrImg='http://gfx1.mail.live.com/mail/w2/ltr/LoginImages/wlw2_signup_en.png';var srf_sUpLnk='';var srf_sHdrBrnd='';var srf_sPrdBrnd='';var srf_sQFEVer='6.0.2.1';var srf_fValProp=1;var srf_fSignup=1;var srf_oTemplate=new Object();var srf_uPost='https://login.live.com/ppsecure/post.srf?wa=wsignin1.0&rpsnv=10&ct=1227208038&rver=5.5.4177.0&wp=MBI&wreply=http:%2F%2Fmail.live.com%2Fdefault.aspx%3Fn%3D1521319951&id=64855&bk=1227298368';var srf_uRet="http://mail.live.com/default.aspx?n=1521319951";var srf_uSSL='https://login.live.com/login.srf?wa=wsignin1.0&rpsnv=10&rver=5.5.4177.0&wp=MBI&wreply=http:%2F%2Fmail.live.com%2Fdefault.aspx%3Fn%3D1521319951&id=64855&bk=72768006';var srf_uReg="http://join.msn.com/GBB?wa=wsignin1.0&rpsnv=10&ct=1227208038&rver=5.5.4177.0&wp=MBI&wreply=http:%2F%2Fmail.live.com%2Fdefault.aspx%3Fn%3D1521319951&id=64855&bk=1227298368&cru=http://login.live.com/login.srf%3fwa%3dwsignin1.0%26rpsnv%3d10%26rver%3d5.5.4177.0%26wp%3dMBI%26wreply%3dhttp:%252F%252Fmail.live.com%252Fdefault.aspx%253Fn%253D1521319951%26id%3d64855";var srf_uPwRst="https://login.live.com/resetpw.srf?wa=wsignin1.0&rpsnv=10&ct=1227208038&rver=5.5.4177.0&wp=MBI&wreply=http:%2F%2Fmail.live.com%2Fdefault.aspx%3Fn%3D1521319951&id=64855&bk=1227298368&lc=1033";var srf_uPinRst="java script:DoHelp('sdarc_tarms_tuoba','','1033','DH_MSN,1033','','600','&format=b1');";var srf_uLogin = "http://login.live.com/login.srf?wa=wsignin1.0&rpsnv=10&ct=1227208038&rver=5.5.4177.0&wp=MBI&wreply=http:%2F%2Fmail.live.com%2Fdefault.aspx%3Fn%3D1521319951&id=64855&vv=600&lc=1033";var srf_uRDScript='RDHelper_JS_QFE.srf?lc=1033&x=6.0.2.1';var srf_uEIDScript='EIDHelper_JS.srf?x=6.0.11557.0&lc=1033';var srf_uSwUsr='http://login.live.com/logout.srf?wa=wsignin1.0&rpsnv=10&ct=1227208038&rver=5.5.4177.0&wp=MBI&wreply=http:%2F%2Fmail.live.com%2Fdefault.aspx%3Fn%3D1521319951&id=64855&wlsu=1&ru=http://mail.live.com/default.aspx%3fn%3d1521319951&bk=1227298368&lm=I';var srf_iCredType=0;var srf_fCSObj=1;var srf_fCollectPin=1;var srf_fAsyncDLEnabled=1;var srf_fLateCk=1;  var srf_aFedTiers=[3,1];var srf_sFedQS='wa=wsignin1.0&wtrealm=uri:WindowsLiveID&wctx=wa%3Dwsignin1.0%26rpsnv%3D10%26ct%3D1227208038%26rver%3D5.5.4177.0%26wp%3DMBI%26wreply%3Dhttp:%252F%252Fmail.live.com%252Fdefault.aspx%253Fn%253D1521319951%26id%3D64855%26bk%3D1227298368';var srf_iFedState=0;srf_sBlkDom=',,';var srf_RDAJAX=1;var g_RDHash=1;var srf_fEnInstr=1;var srf_sRBlob='PassportR';var srf_sNUsr='';var srf_sLOpt='';var srf_iCredPostType='';var srf_sPreMn='';var srf_sDispMn='';var srf_sFT='<input type="hidden" name="PPFT" id="i0327" value="B1NTce6N4GEunqhWHb9YGrc14jgLz2QgOrsMTAow9h4SsGgc30lNvnZh*Mr180Lpni81zodNyTer!tY4OXn3VChSDk1xZAIZ0DZl!ClDJ7zNDVC!if3kwh18EaVmR1Q6JTDEYM5*J5Hs32inzJMR0hQPx!dXwqIZy*AJCq5DaW1h7man51FMTy1JHwG3"/>';</script><link rel="stylesheet" type="text/css" href="css/WEBWinQFE1033.css?x=6.0.2.1"/><script type="text/javascript" src="WLLogin_JS_QFE.srf?lc=1033&x=6.0.2.1"></script>
  <style type="text/css">
.cssBtnRest input{background-image: url(http://img.wlxrs.com/~Live.SiteContent.ID/~14.2.1230/~/~/~/btnbkgnd_rest.gif);}
.cssLT{background-image: url(http://img.wlxrs.com/~Live.SiteContent.ID/~14.2.1230/~/~/~/utbkgnd.gif);}
.cssLTMore{background-image: url(http://img.wlxrs.com/~Live.SiteContent.ID/~14.2.1230/~/~/~/utbkgnd.gif);}
.cssWLGradientIMG,.cssWLGradientIMGSSL{background-image: url(http://img2.wlxrs.com/~Live.SiteContent.ID/~14.2.1230/~/~/~/wave3header.jpg);}
.higbutton{background-image: url(http://img.wlxrs.com/~Live.SiteContent.ID/~14.2.1230/~/~/~/btnbkgnd_rest.gif);}
.higbuttonblue{background-image: url(http://img.wlxrs.com/~Live.SiteContent.ID/~14.2.1230/~/~/~/btnbkgnd_hot.gif);}
</style>
</head>
<body onload="onload_Login();">
</body></html>

So, I do not know what to do.

I could really need some Help on this!


I do not like stupid and idiot people that write idiot things...If you are one, do not write.

Share this post


Link to post
Share on other sites

^^ what page are you trying to login to?


[right]~What can I say, I'm a Simplistic person[/right]

Share this post


Link to post
Share on other sites

I do not like stupid and idiot people that write idiot things...If you are one, do not write.

Share this post


Link to post
Share on other sites

This should work for you...

#include <IE.au3>
Opt("WinTitleMatchMode", 2)

$oIE = _IECreate ("http://login.live.com/login.srf?wa=wsignin1.0&rpsnv=10&ct=1227208038&rver=5.5.4177.0&wp=MBI&wreply=http:%2F%2Fmail.live.com%2Fdefault.aspx%3Fn%3D1521319951&id=64855")
_IELoadWait ($oIE)

$o_form = _IEFormGetObjByName ($oIE, "f1")
$o_login = _IEFormElementGetObjByName ($o_form, "login")
$o_password = _IEFormElementGetObjByName ($o_form, "passwd")
$o_signin = _IEFormElementGetObjByName ($o_form, "SI")

$username = "YOUR_HOTMAIL_ADDRESS@hotmail.com"
$password = "YOUR_PASSWORD"

_IEFormElementCheckBoxSelect ( $o_form, "remMe", "", 0)

_IEFormElementSetValue ($o_login, $username)
_IEFormElementSetValue ($o_password, $password)

_IEAction ($o_signin, "click")

WinSetState ( "Internet", "", @SW_MAXIMIZE )

Share this post


Link to post
Share on other sites

This should work for you...

#include <IE.au3>
Opt("WinTitleMatchMode", 2)

$oIE = _IECreate ("http://login.live.com/login.srf?wa=wsignin1.0&rpsnv=10&ct=1227208038&rver=5.5.4177.0&wp=MBI&wreply=http:%2F%2Fmail.live.com%2Fdefault.aspx%3Fn%3D1521319951&id=64855")
_IELoadWait ($oIE)

$o_form = _IEFormGetObjByName ($oIE, "f1")
$o_login = _IEFormElementGetObjByName ($o_form, "login")
$o_password = _IEFormElementGetObjByName ($o_form, "passwd")
$o_signin = _IEFormElementGetObjByName ($o_form, "SI")

$username = "YOUR_HOTMAIL_ADDRESS@hotmail.com"
$password = "YOUR_PASSWORD"

_IEFormElementCheckBoxSelect ( $o_form, "remMe", "", 0)

_IEFormElementSetValue ($o_login, $username)
_IEFormElementSetValue ($o_password, $password)

_IEAction ($o_signin, "click")

WinSetState ( "Internet", "", @SW_MAXIMIZE )

I works like a charm! Thank you very much!

Please tell me how did you find the names of the controls...it will help me to learn and not to post this king of questions in the future.

Thx again!


I do not like stupid and idiot people that write idiot things...If you are one, do not write.

Share this post


Link to post
Share on other sites

DubugBar makes it terribly simple - just drag the target onto the elements of interest:

<INPUT class=css0034 id=i0116 style="IME-MODE: disabled" maxLength=113 name=login autocomplete="off">

<INPUT class=css0034 id=i0118 style="IME-MODE: disabled" type=password maxLength=16 value="" name=passwd autocomplete="off">

Dale


Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl

MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model

Automate input type=file (Related)

Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded  Better Better?

IE.au3 issues with Vista - Workarounds

SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead?

Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble

Share this post


Link to post
Share on other sites

DubugBar makes it terribly simple - just drag the target onto the elements of interest:

<INPUT class=css0034 id=i0116 style="IME-MODE: disabled" maxLength=113 name=login autocomplete="off">

<INPUT class=css0034 id=i0118 style="IME-MODE: disabled" type=password maxLength=16 value="" name=passwd autocomplete="off">

Dale

I used the DebugBar. I didn't use the target to get the elements names, but that would probably be easier for someone just starting out...

Share this post


Link to post
Share on other sites

#13 ·  Posted (edited)

hello I'm new here and getting to know auto it. this topic still fresh so i want to ask you guys out

1. IE stands out for internet explorer right, then how about firefox? i check the userdefined functions autoithelp but no avail.

2. I downloaded the debugbar, is there other tools just like debugbar for firefox?

3. Can you guys make another example like this one

trying doing it here pls...

http://s1.bitefight.ph/bite/login.php

#include <IE.au3>

Opt("WinTitleMatchMode", 2)

$oIE = _IECreate ("http://login.live.com/login.srf?wa=wsignin1.0&rpsnv=10&ct=1227208038&rver=5.5.4177.0&wp=MBI&wreply=http:%2F%2Fmail.live.com%2Fdefault.aspx%3Fn%3D1521319951&id=64855")

_IELoadWait ($oIE)

$o_form = _IEFormGetObjByName ($oIE, "f1") ;<-----------------I LOST TRACK ON THIS PART

$o_login = _IEFormElementGetObjByName ($o_form, "login")

$o_password = _IEFormElementGetObjByName ($o_form, "passwd")

$o_signin = _IEFormElementGetObjByName ($o_form, "SI")

$username = "YOUR_HOTMAIL_ADDRESS@hotmail.com"

$password = "YOUR_PASSWORD"

_IEFormElementCheckBoxSelect ( $o_form, "remMe", "", 0)

_IEFormElementSetValue ($o_login, $username)

_IEFormElementSetValue ($o_password, $password)

_IEAction ($o_signin, "click")<------------------------------ALSO THIS

WinSetState ( "Internet", "", @SW_MAXIMIZE )

they don't have names what should I do?

Edited by sugarbelvis2

Share this post


Link to post
Share on other sites

I figured this would be the best place to ask... I'm working on Demonoid User Monitor, which notifies users when other users come online, and I will soon be implementing that into a Chat Network, except then I'll be switching over TCP requests, anyways.... How do you target a FORM with no name?

http://www.demonoid.com/account_handler.php

Share this post


Link to post
Share on other sites

I can't image why you think this is the best place to ask. Look at _IEFormGetCollection and then open a new thread if you have more questions.

Dale


Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl

MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model

Automate input type=file (Related)

Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded  Better Better?

IE.au3 issues with Vista - Workarounds

SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead?

Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble

Share this post


Link to post
Share on other sites

I want check alot email + pass of Hotmail , but i dont know how write code for chose file have email pass of hotmail to try check. and i dont know when login success it will make file and when can't login it not make file . Anyone can help me ?

Share this post


Link to post
Share on other sites

#include <IE.au3>
#include <File.au3>
HotKeySet("+d")
_IECreate("https://login.yahoo.com/config/login_verify2?&.src=ym&rl=1")
Global $n = 1, $mail ,$pass,$line, $live = 0, $die = 0, $all = 0
$oIE = _IEAttach("Yahoo!")
$oEvt = ObjEvent($oIE, "IEEvent_", "DWebBrowserEvents2")

$file = FileOpen("C:\Users\MrVipOnline\Desktop\temujjin.txt", 0)
$line = FileReadLine($file, $n)
    If @error = -1 Then
        MsgBox(0, 'Done!', 'Done!')
        Exit
    EndIf
    If StringInStr($line, "|") Then
        $Gach = StringSplit($line, "|")
        $mail1 = StringReplace($Gach[1], " ", "")
        $pass1 = StringReplace($Gach[2], " ", "")
    EndIf
$oForm = _IEFormGetObjByName($oIE, "login_form")
$mail= _IEFormElementGetObjByName($oForm, "login")
_IEFormElementSetValue($mail,$mail1)
$pass=_IEFormElementGetObjByName($oForm, "passwd")
_IEFormElementSetValue($pass,$pass1)
_IEFormSubmit ($oForm)

    if $oIE = ("https://login.yahoo.com/config/login?") Then
        TrayTip("Checked", "Live", 30)
        FileWrite("Live.txt", $line & @CRLF)
        $live = $live + 1
        $all = $all + 1
    Else
         TrayTip("Checked", "Die", 30)
         TrayTip("Checked", "Die", 30)
         $die = $die + 1
         $all = $all + 1
     EndIf
_IELoadWait($oIE)
$n = $n + 1

file temujjin.txt

cdeshawn_24@yahoo.com|FKU12moty
kings_joe2003@yahoo.com|jordan
larry_husted@yahoo.com|Qp15143F
cmichaels1984@yahoo.com|carson2006
tbro47@yahoo.com|ironman47
towmiller@yahoo.com|w3218488
dkb1414@yahoo.com|Eagles14

you can help me. right?

Than Bro

Share this post


Link to post
Share on other sites

#18 ·  Posted (edited)

just a note, dont save usernames and passwords in a text file, if you can encrypt them because p2p file sharing programs etc, pick files like this up and are shared automatically without a notice to the user.

also you are pointing to yahoo to signin with hotmail? -

_IECreate("https://login.yahoo.com/config/login_verify2?&.src=ym&rl=1")

hope this helps and ill look into a solution for you shortly

Nathaniel Blackburn

Edited by LunaStudios

Share this post


Link to post
Share on other sites

#19 ·  Posted (edited)

im new to autoit but i noticed the elements in the signin form are named

loginname and password so you could try and perform a http submit with thease variables and it should work, the signin script is pointed at:

http://login.live.com/login.srf?wa=wsignin1.0&rpsnv=10&ct=1227208038&rver=5.5.4177.0&wp=MBI&wreply=http:%2F%2Fmail.live.com%2Fdefault.aspx%3Fn%3D1521319951&id=64855

Nathaniel Blackburn

Edited by LunaStudios

Share this post


Link to post
Share on other sites

#20 ·  Posted (edited)

#include <IE.au3>
Opt("WinTitleMatchMode", 2)

$oIE = _IECreate ("http://login.live.com/login.srf?wa=wsignin1.0&rpsnv=11&ct=1276621884&rver=6.0.5285.0&wp=MBI&wreply=http:%2F%2Fmail.live.com%2Fdefault.aspx&lc=1033&id=64855&mkt=en-us")
_IELoadWait ($oIE)

$o_form = _IEFormGetObjByName ($oIE, "f1")
$o_login = _IEFormElementGetObjByName ($o_form, "login")
$o_password = _IEFormElementGetObjByName ($o_form, "passwd")
$o_signin = _IEFormElementGetObjByName ($o_form, "SI")

$username = "YOUR_HOTMAIL_ADDRESS@hotmail.com"
$password = "YOUR_PASSWORD"

_IEFormElementCheckBoxSelect ( $o_form, "remMe", "", 0)

_IEFormElementSetValue ($o_login, $username)
_IEFormElementSetValue ($o_password, $password)

_IEAction ($o_signin, "click")

i get this error:

--> IE.au3 V2.4-0 Warning from function _IEFormGetObjByName, $_IEStatus_NoMatch

--> IE.au3 V2.4-0 Error from function _IEFormElementGetObjByName, $_IEStatus_InvalidDataType

--> IE.au3 V2.4-0 Error from function _IEFormElementGetObjByName, $_IEStatus_InvalidDataType

--> IE.au3 V2.4-0 Error from function _IEFormElementGetObjByName, $_IEStatus_InvalidDataType

--> IE.au3 V2.4-0 Error from function _IEFormElementCheckboxSelect, $_IEStatus_InvalidDataType

--> IE.au3 V2.4-0 Error from function _IEFormElementSetValue, $_IEStatus_InvalidDataType

--> IE.au3 V2.4-0 Error from function _IEFormElementSetValue, $_IEStatus_InvalidDataType

--> IE.au3 V2.4-0 Error from function _IEAction, $_IEStatus_InvalidDataType

And yes i did change the "YOUR_HOTMAIL_ADDRESS@hotmail.com" and "YOUR_PASSWORD"

Edited by gononono64

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