Página 1 de 1

[Solucionado]Autologin pagina web con IE

Publicado: 09 Dic 2015, 16:44
por anje84
Ola a todos.(Los sientos por las falta de accentos ect...tengo un teclado azerty (FR) y plantillas FR...) :smt031

Me estoy rompiendo la mente :smt021 sobre un script para autoidentificarme y luego poder extraer mis plannings y enviarlos por mail.

He creado este codigo pensando que sera lo ideal pero no va y no se porqueeee :smt035 .

Código: Seleccionar todo

#include <ie.au3>
$oIE = _IECreate ("https://amplitelsir.bouyguestelecom.fr")
$oForm = _IEFormGetObjByName ($oIE, "loginInputsDiv")
$oQuery1 = _IEFormElementGetObjByName ($oForm, "region")
$oQuery2 = _IEFormElementGetObjByName ($oForm, "username")
$oQuery3 = _IEFormElementGetObjByName ($oForm, "password")
$uname="nombredeusuario"
$pwd="contrasena"
$slctreg="region"
_IEFormElementSetValue ($oQuery1, $slctreg)
_IEFormElementSetValue ($oQuery2, $uname)
_IEFormElementSetValue ($oQuery3, $pwd)
$oButton=_IEGetObjById($oIE,"")
_IEAction ($oButton, "click")
_IELoadWait($oIE,0)
El codico fuente es este:

Código: Seleccionar todo


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head id="ctl00_ctl00_Head1"><link rel="stylesheet" type="text/css" href="/AmpliTel/DXR.axd?r=0_234,1_4,0_237,2_2,0_92,0_772-3YKlb" /><link rel="stylesheet" type="text/css" href="/AmpliTel/DXR.axd?r=0_775-2YKlb" /><title>
	AmpliTel
</title><meta name="description" content="AmpliTel est une société créée en mai 2014 qui a pour objet de dépanner les clients de Bouygues Telecom à leur domicile en rétablissant leurs accès ADSL." /><meta property="og:title" content="AmpliTel" /><meta property="og:type" content="AmpliTel" /><meta property="og:url" content="~/AmpliTel/Default.aspx" /><meta property="og:image" content="~/images/Rad2.png" /><meta name="viewport" content="width=device-width, initial-scale=1" /><link rel="icon" type="image/x-icon" href="../images/RadHead.ico" />
    <!--[if IE]><link rel="shortcut icon" type="image/x-icon" href="../images/RadHead.ico" /><![endif]-->

    <link rel="stylesheet" type="text/css" href="../js/Site.css" /><link rel="stylesheet" type="text/css" href="../js/jquery-ui.css" /><link rel="Stylesheet" type="text/css" href="../js/paintcss.css" />

    <script type="text/javascript" src="/AmpliTel/js/jquery-1.9.1.js"></script>
    <script type="text/javascript" src="/AmpliTel/js/jquery-ui.js"></script>
    <script type="text/javascript" src="/AmpliTel/js/jquery.datetimepicker.js"></script>

    <script  type="text/javascript">
        var clicked = false;
        
        function bodyUnload() {

            if (clicked == false)//browser is closed
            {
                var request = GetRequest();

                request.open("POST", "/AmpliTel/Login/LogOut.aspx", false);
                request.send();
            }
        }

        function GetRequest() {
            var xmlhttp;
            if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari
                xmlhttp = new XMLHttpRequest();
            }
            else {// code for IE6, IE5
                xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
            }
            return xmlhttp;
        }

        function BodyOnLoad() {
            setTimeout("SessionExpired()", 20 * 60 * 1000 + 1000);
        }

        //Notify the user that his session HAS expired.
        function SessionExpired() {
            //Send the user to a new page.
            $.ajax({
                type: 'post',
                url: '/AmpliTel/Login/Login.aspx/checkSession',
                contentType: "application/json; charset=utf-8",
                dataType: "json",
                success: function (data) {
                    if (data.d == "false") {
                        Notify();
                    }
                },
                error: function (data) { Notify(); }
            });
            setTimeout("SessionExpired()", 20 * 60 * 1000 + 1000);
        }

        function Notify() {
            //alert("Afin de garantir votre confidentialité, votre session a expiré.\nVous allez être redirigé vers la page d'accueil.");
            SessionExpiredNotificationPopUp.Show();
        }

        function Redirect() {
            window.location = "/AmpliTel/Login/Login.aspx";
        }
    </script>
</head>
<body onload="BodyOnLoad()">

    <form name="aspnetForm" method="post" action="Login.aspx?ReturnUrl=%2fAmpliTel%2fLogin%2fLogOut.aspx.au" id="aspnetForm">
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUKMTY5NDUxNTk5Mw9kFgJmD2QWAmYPZBYCAgMPZBYCAgEPPCsABwEADxYCHg5fIVVzZVZpZXdTdGF0ZWdkZBgBBR5fX0NvbnRyb2xzUmVxdWlyZVBvc3RCYWNrS2V5X18WAgUZY3RsMDAkY3RsMDAkQVNQeFNwbGl0dGVyMQUmY3RsMDAkY3RsMDAkU2Vzc2lvbkV4cGlyZWROb3RpZmljYXRpb265BC1hO4zC70tFqn0RnSsTG8MTFjoCjhO+7ylPiitPIA==" />

<input type="hidden" name="__EVENTVALIDATION" id="__EVENTVALIDATION" value="/wEdAAbLMNVNyK5Amxry1Mhsw5VcTX8MmB7x8vtla94yJLc6sddcKL8+hbM1zmNeU78tV2uDHr/tDC5ISG+w+a4mNcunKlLXCIgW5IlbnCymRQVus7JG4gEMDl1vDOMCPcQIv1iTKT7ViI/PeNEMPU2oXT0wgi1oUs4sJBnJ5M4muAcE+g==" />

        <input type="hidden" id="ctl00_ctl00_ASPxSplitter1_CS" name="ctl00_ctl00_ASPxSplitter1_CS" value="" /><input type="hidden"/><script id="dxis_51562217" src="/AmpliTel/DXR.axd?r=1_44,1_76,1_75,2_34,2_40,1_69,1_67-3YKlb" type="text/javascript"></script><table class="dxsplControl_Aqua" cellpadding="0" cellspacing="0" id="ctl00_ctl00_ASPxSplitter1" border="0">
	<tr>
		<td id="ctl00_ctl00_ASPxSplitter1_0" class="dxsplPane_Aqua headerPane" valign="top" style="border-bottom-width:1px;"><div id="ctl00_ctl00_ASPxSplitter1_0_CC" class="dxsplLCC" style="padding-left:0px;padding-right:0px;padding-top:0px;padding-bottom:0px;">
			
                        

<div class="headerTop">
    <div class="templateTitle" style="position:relative;top:10px">
        <img id="ctl00_ctl00_ASPxSplitter1_Header_Content_ASPxImage2" src="../images/amplitel_logo.png" alt="" />
    </div>

    <div class="outilTitle" style="position:relative;top:30px">
        <label class="dxeBase_Aqua" id="ctl00_ctl00_ASPxSplitter1_Header_Content_ASPxLabel"><font face="Palace Script MT" color="LightSlateGray" size="7">Plannitel</font></label>
        
    </div>        
    
</div>

<div style="position:absolute; top:30px; width:100%">
<center>
    
    <label class="dxeBase_Aqua" id="ctl00_ctl00_ASPxSplitter1_Header_Content_PageTitleContent_AmpliTelTitre"><font face="Algerian" color="SlateGray" size="7">A C C U E I L</font></label>
    <br />
    <label class="dxeBase_Aqua" id="ctl00_ctl00_ASPxSplitter1_Header_Content_PageTitleContent_Login"><font face="Copperplate Gothic Light" color="SlateGray" size="2"></font></label>

</center>
</div>

                          
                    
		</div></td>
	</tr><tr>
		<td id="ctl00_ctl00_ASPxSplitter1_1" class="dxsplPane_Aqua leftPane" valign="top" style="border-top-width:0px;"><div id="ctl00_ctl00_ASPxSplitter1_1_CC" class="dxsplLCC" style="padding-left:1px;padding-right:1px;padding-top:1px;padding-bottom:1px;overflow:auto;">
			             
			            
    

<script type="text/javascript">
    function displayLoginDiv() {
        $("#tdMap").css("width", "50%");
        $("#tdLogin").show();//function callback() {
//            $("#tdLogin").animate({ width: "50%" }, 500);
//        });
        $("#tdLogin").animate({ width: "50%" }, 500);//, function callback() {
//            $("#tdLogin").show();
//        });
    }

    function change_image(n) {
        var area = $("#area_image");
        area.css("background-image", "url('../images/map/map_" + n + ".png')");
        return true;
    }

    function hide_image() {
        var area = $("#area_image");
        if ($("#region").length == 0) {
            area.css("background-image", "url('../images/map/transparent.png')");
        }
        else {
            change_image($("#region").val());
        }
        return true;
    }

    function change_region(regionName) {
        var region = $("#region");
        if (region.val().length == 0)
            displayLoginDiv();
        region.val(regionName);
        return true;
    }

    function Confirmation(Days) {
        var message = "";
        
        if (Days == 1)
            message = "Votre mot de passe va expirer dans " + Days + " journée.\nVoulez vous le changer maintenant?";
        else 
            message = "Votre mot de passe va expirer dans " + Days + " jours.\nVoulez vous le changer maintenant?";
        if(confirm(message) )
            window.location.replace("ChangePassword.aspx");
    }

    function enc() {
        var username = $("#username").val();
        var password = $("#password").val();
        if ((username.legth != 0) && (password != 0)) {
            $("#username").val(btoa(username));
            $("#password").val(btoa(password));
            $("#username").hide();
            $("#password").hide();
            $("#loginInputsDiv").append('<div style="width:80%; margin-top:10px; margin-bottom:10px"><img alt="" src="../images/animated_gears3.gif" /></div>')
        }
    }

</script>


    <center>
        <p id="ctl00_ctl00_ASPxSplitter1_Content_MainContent_Msg" style="color: Red; float: left; font-size: 9pt; width: 100%"></p>
        <table style="margin-top: 20px; width: 80%; table-layout:fixed">
            <tr>
                <td id="tdMap" style="background-image:url('../images/map/map.png'); background-position:center; background-repeat:no-repeat; width: 100%; text-align:center">
                    <div style="background-image:url('../images/map/transparent.png'); background-position:center; background-repeat:no-repeat" class="Map" id="area_image">
                        <img src="../images/map/transparent.png" alt="" usemap="#france_map" />
                    </div>
                </td>
                <td id="tdLogin" style="padding:20px; width: 0%; display: none">
                    <div id="login">
                        <h1>Se connecter</h1>
                        <div id="loginInputsDiv">
                            <input name="ctl00$ctl00$ASPxSplitter1$Content$MainContent$region" type="text" id="region" placeholder="Region" required="" readonly="readonly" style="background-image: none" />
                            <input name="ctl00$ctl00$ASPxSplitter1$Content$MainContent$username" type="text" id="username" placeholder="Login" required="" />
                            <input name="ctl00$ctl00$ASPxSplitter1$Content$MainContent$password" type="password" id="password" placeholder="Mot de passe" required="" />
                        </div>
                        <div>
                            <input type="submit" name="ctl00$ctl00$ASPxSplitter1$Content$MainContent$LoginBouton" value="Authentifiez-vous" onclick="enc();" id="ctl00_ctl00_ASPxSplitter1_Content_MainContent_LoginBouton" class="LoginBouton" />
            
                        </div>
                    </div>
                </td>
            </tr>
        </table>
    </center>
    <map id="france_map" name="france_map">
        <area shape="poly" style="cursor: pointer" alt="IDF" coords="202,85,199,86,194,93,195,97,190,101,195,104,197,116,200,120,204,120,209,129,221,127,223,128,225,135,227,136,231,134,235,133,241,134,242,126,254,124,257,113,252,109,250,106,253,103,243,93,241,93,231,95,215,87,211,87,207,88" title="IDF" onmouseover="change_image('IDF')" onmouseout="hide_image()" onclick="change_region('IDF')" />
        <area shape="poly" style="cursor: pointer" alt="NOE" coords="195,41,190,45,202,57,201,67,203,80,203,86,213,87,215,86,232,95,243,93,253,102,252,105,253,109,257,114,254,124,242,127,241,136,244,143,244,146,236,155,238,165,237,177,242,189,242,199,251,203,263,204,266,211,272,218,271,222,275,227,278,229,286,226,289,220,298,221,298,224,300,222,303,211,308,211,314,212,318,220,325,216,331,220,339,214,340,207,368,173,368,167,366,164,370,161,378,163,386,158,382,153,387,121,398,97,398,89,384,88,372,81,367,86,357,83,348,70,312,67,301,59,294,55,294,41,281,51,273,43,276,37,269,33,260,33,251,24,249,26,245,16,235,14,229,10,226,0,197,7,196,20,198,27,195,31,198,41" title="NOE" onmouseover="change_image('NOE')" onmouseout="hide_image()" onclick="change_region('NOE')" />
        <area shape="poly" style="cursor: pointer" alt="SE" coords="241,199,238,202,229,202,229,210,223,212,220,215,219,220,228,226,229,238,223,245,227,254,227,262,219,266,214,274,212,286,214,297,217,297,223,295,229,289,230,283,237,287,241,297,242,301,246,306,249,318,256,326,248,337,241,339,237,345,230,346,229,350,230,353,212,355,205,354,199,356,198,361,207,370,207,373,205,376,207,385,214,388,213,391,200,394,204,402,221,402,231,404,243,398,247,401,248,399,245,376,243,374,256,361,261,361,277,348,283,352,298,354,300,358,321,359,328,364,335,364,338,369,346,366,351,367,368,361,380,368,374,375,376,378,380,379,380,382,374,383,376,389,378,389,377,396,378,398,381,397,382,402,385,406,382,413,384,416,393,416,394,423,398,423,405,405,405,394,410,383,409,365,406,362,406,346,401,348,401,359,397,357,380,368,368,361,369,358,366,355,385,343,386,339,395,336,401,319,396,314,385,316,375,310,370,300,376,288,374,284,362,277,366,272,375,268,377,261,378,254,367,239,374,234,365,226,362,212,348,215,346,221,345,224,338,225,339,221,342,218,340,214,332,220,330,220,325,218,324,217,318,221,313,212,303,212,300,224,298,225,297,222,289,220,286,226,278,229,273,226,270,222,271,218,264,209,263,204,251,203" title="SE" onmouseover="change_image('SE')" onmouseout="hide_image()" onclick="change_region('SE')" />

        <area shape="poly" style="cursor: pointer" alt="SWT" coords="199,218,187,219,182,218,181,212,174,208,171,193,157,191,153,187,152,184,147,181,142,185,130,181,126,186,118,187,118,192,124,202,127,216,124,220,118,217,115,220,112,215,107,219,105,224,108,231,109,235,104,242,106,250,111,252,115,256,119,264,122,277,114,260,104,255,103,284,100,291,106,291,107,296,100,298,88,349,80,354,86,358,90,359,91,369,96,367,110,375,117,375,119,380,133,381,134,384,138,387,159,387,167,381,183,389,190,388,199,393,213,390,213,388,205,385,205,370,197,361,199,354,205,354,212,355,229,353,228,349,230,345,237,344,241,338,248,337,255,326,247,317,247,311,243,302,238,294,236,288,231,285,226,294,214,298,211,283,215,271,216,267,226,261,225,250,222,245,222,243,228,238,227,225,217,219,214,216,206,216,203,215" title="SWT" onmouseover="change_image('SWT')" onmouseout="hide_image()" onclick="change_region('SWT')" />
        <area shape="poly" style="cursor: pointer" alt="WST" coords="165,55,150,69,151,77,140,83,119,75,112,80,108,71,112,66,110,61,99,64,87,58,91,67,91,73,100,85,100,96,96,100,102,108,95,112,88,104,86,110,76,110,76,106,61,111,58,103,46,98,36,99,31,104,25,100,7,103,0,109,0,117,12,115,13,118,1,118,1,125,11,126,12,130,1,128,11,143,17,141,17,137,19,140,26,140,30,145,35,145,37,150,47,147,44,158,47,164,50,164,52,155,60,155,70,160,66,172,66,174,86,172,87,174,75,174,77,183,77,186,73,189,74,193,81,198,84,208,97,216,105,217,106,218,112,214,114,218,116,218,118,216,124,219,127,215,123,202,117,192,118,187,126,185,130,180,142,184,147,181,153,184,154,188,158,191,171,193,174,208,182,213,183,217,187,218,199,218,204,214,206,215,215,216,217,219,220,212,228,210,230,201,238,201,241,198,240,189,236,175,236,154,244,142,239,134,232,134,227,137,223,134,222,128,209,130,203,121,199,121,196,116,195,104,190,102,190,100,194,96,194,93,199,86,202,84,201,71,199,66,202,58,189,46,175,55" title="WST" onmouseover="change_image('WST')" onmouseout="hide_image()" onclick="change_region('WST')" />
        <area shape="default" nohref="nohref" alt="" />
    </map>




  
                    
		</div></td>
	</tr><tr>
		<td id="ctl00_ctl00_ASPxSplitter1_2" class="dxsplPane_Aqua footerPane" valign="top" style="border-top-width:0px;"><div id="ctl00_ctl00_ASPxSplitter1_2_CC" class="dxsplLCC" style="padding-left:0px;padding-right:0px;padding-top:0px;padding-bottom:0px;">
			
                        
                        <div id="ctl00_ctl00_ASPxSplitter1_InternalFooter" class="footerMenu">
                            <h2>AmpliTel</h2>
                                                               
                        </div>

                        <div class="copyright">
                            
                        </div>
                    
		</div></td>
	</tr>
</table><div id="ctl00_ctl00_ASPxSplitter1_RP" class="dxsplResizingPointer_Aqua" style="z-index:29999;display:none;position:absolute;">

</div><script id="dxss_1005400611" type="text/javascript">
<!--
aspxAddHoverItems('ctl00_ctl00_ASPxSplitter1',[[['dxsplHSeparatorHover_Aqua'],[''],['1_S'],,[[{'spriteCssClass':'dxWeb_splHSeparatorHover_Aqua'}]],['_CS_Img']],[['dxsplHSeparatorHover_Aqua'],[''],['2_S'],,[[{'spriteCssClass':'dxWeb_splHSeparatorHover_Aqua'},{'spriteCssClass':'dxWeb_splHCollapseBackwardButtonHover_Aqua'},{'spriteCssClass':'dxWeb_splHCollapseForwardButtonHover_Aqua'}]],['_CS_Img','_CB_Img','_CF_Img']],[['dxsplHSeparatorButtonHover_Aqua'],[''],['2_S_CB','2_S_CF'],,[[{'spriteCssClass':'dxWeb_splHCollapseBackwardButtonHover_Aqua'}],[{'spriteCssClass':'dxWeb_splHCollapseForwardButtonHover_Aqua'}]],['_Img']]]);
aspxAddSelectedItems('ctl00_ctl00_ASPxSplitter1',[[['dxsplPaneCollapsed_Aqua'],[''],['0','1','2']],[['dxsplHSeparatorCollapsed_Aqua'],[''],['0_S','1_S','2_S']]]);

var dxo = new ASPxClientSplitter('ctl00_ctl00_ASPxSplitter1');
window['ctl00_ctl00_ASPxSplitter1'] = dxo;
dxo.uniqueID = 'ctl00$ctl00$ASPxSplitter1';
dxo.renderIFrameForPopupElements = true;
dxo.height = '100%';
dxo.allowResize = false;
dxo.showSeparatorImage = true;
dxo.defaultMinSize = 40;
dxo.fullScreen = true;
dxo.CreatePanes([{'s':97,'smin':97,'v':1,'n':'Header','st':'px'},{'s':18,'v':1,'n':'ContentLeft','st':'%'},{'s':20,'v':1,'n':'Footer','scbb':1,'st':'px'}]);
dxo.InlineInitialize();

//-->
</script>

    <input type="hidden" id="ctl00_ctl00_SessionExpiredNotificationWS" name="ctl00_ctl00_SessionExpiredNotificationWS" value="0:0:-1:-10000:-10000:0:300px:-10000:1" /><div id="ctl00_ctl00_SessionExpiredNotification_PW-1" style="position:absolute;left:0px;top:0px;z-index:10000;visibility:hidden;display:none;">
	<table id="ctl00_ctl00_SessionExpiredNotification_PWST-1" cellspacing="0" cellpadding="0" border="0" style="border-collapse:separate;position:relative;">
		<tr>
			<td class="dxpcControl_DevEx" CloseOnEscape="true" onmousedown="aspxPWMDown(event,'ctl00_ctl00_SessionExpiredNotification',-1,false)" width="300" style="cursor:default;"><table id="ctl00_ctl00_SessionExpiredNotification_CLW-1" cellspacing="0" cellpadding="0" border="0" width="300" style="border-collapse:separate;">
				<tr>
					<td id="ctl00_ctl00_SessionExpiredNotification_PWH-1" class="dxpcHeader_DevEx" onmousedown="aspxPWDGMDown(event,'ctl00_ctl00_SessionExpiredNotification',-1)" style="cursor:move;padding-left:7px;padding-right:2px;padding-top:2px;padding-bottom:2px;"><table cellspacing="0" cellpadding="0" border="0" width="100%" style="border-collapse:separate;">
						<tr>
							<td id="ctl00_ctl00_SessionExpiredNotification_PWH-1T" class="dxpc" width="100%">Session expirée</td><td style="padding-left:4px;"><table cellspacing="0" cellpadding="0" border="0" style="border-collapse:separate;">
								<tr>
									<td id="ctl00_ctl00_SessionExpiredNotification_HCB-1" class="dxpcCloseButton_DevEx" onclick="aspxPWCBClick(event, 'ctl00_ctl00_SessionExpiredNotification',-1)" onmousedown="return aspxPWCBMDown(event);" style="cursor:pointer;"><img id="ctl00_ctl00_SessionExpiredNotification_HCB-1Img" class="dxWeb_pcCloseButton_DevEx" src="/AmpliTel/DXR.axd?r=1_5-3YKlb" alt="[Close]" title="" /></td>
								</tr>
							</table></td>
						</tr>
					</table></td>
				</tr><tr>
					<td id="ctl00_ctl00_SessionExpiredNotification_PWC-1" class="dxpcContent_DevEx" style="border-top-width:0px;"><div id="ctl00_ctl00_SessionExpiredNotification_CSD-1" class="dxpcContentPaddings_DevEx" style="padding-left:15px;padding-right:15px;padding-top:15px;padding-bottom:15px;">
						
                <h4>Afin de garantir votre confidentialité, votre session a expiré.<br />Vous allez être redirigé vers la page d'accueil.</h4>
            
					</div></td>
				</tr>
			</table></td><td id="ail108700992" style="background:url('/AmpliTel/DXR.axd?r=1_27-3YKlb') no-repeat left top;//background:none;"><script id="dxss_660280616" type="text/javascript">
<!--

    _aspxEnsureAlphaImageLoaderApplierRegistered();    
    _aspxAddAlphaImageLoaderTarget("ail108700992", "/AmpliTel/DXR.axd?r=1_27-3YKlb");

//-->
</script></td>
		</tr><tr>
			<td id="ail546308026" style="background:url('/AmpliTel/DXR.axd?r=1_26-3YKlb') no-repeat left top;//background:none;"><script id="dxss_239838919" type="text/javascript">
<!--

    _aspxEnsureAlphaImageLoaderApplierRegistered();    
    _aspxAddAlphaImageLoaderTarget("ail546308026", "/AmpliTel/DXR.axd?r=1_26-3YKlb");

//-->
</script></td><td id="ail846100588" style="background:url('/AmpliTel/DXR.axd?r=1_28-3YKlb') no-repeat left top;//background:none;"><div>

			</div><script id="dxss_1250873951" type="text/javascript">
<!--

    _aspxEnsureAlphaImageLoaderApplierRegistered();    
    _aspxAddAlphaImageLoaderTarget("ail846100588", "/AmpliTel/DXR.axd?r=1_28-3YKlb");

//-->
</script></td>
		</tr>
	</table>
</div><iframe id="ctl00_ctl00_SessionExpiredNotification_DXPWIF-1" src="javascript:false" scrolling="no" frameborder="0" style="position:absolute;display:none;z-index:9999;filter:progid:DXImageTransform.Microsoft.Alpha(Style=0, Opacity=0);">

</iframe><div id="ctl00_ctl00_SessionExpiredNotification_DXPWMB-1" class="dxpcModalBackground_DevEx" style="position:absolute;visibility:hidden;left:0px;top:0px;z-index:9999;">

</div><table id="ctl00_ctl00_SessionExpiredNotification_LP" class="dxpcLoadingPanel_DevEx" cellspacing="0" cellpadding="0" border="0" style="left:0px;top:0px;z-index:30000;display:none;">
	<tr>
		<td class="dx" style="padding-right:5px;"><img src="/AmpliTel/DXR.axd?r=0_747-2YKlb" alt="" align="middle" /></td><td class="dx" style="padding-left:0px;"><span id="ctl00_ctl00_SessionExpiredNotification_TL">Loading…</span></td>
	</tr>
</table><div id="ctl00_ctl00_SessionExpiredNotification_LD" class="dxpcLoadingDiv_DevEx" style="left:0px;top:0px;z-index:29999;display:none;position:absolute;">

</div><script id="dxss_940852666" type="text/javascript">
<!--

var dxo = new ASPxClientPopupControl('ctl00_ctl00_SessionExpiredNotification');
window['SessionExpiredNotificationPopUp'] = dxo;
dxo.callBack = function(arg) { WebForm_DoCallback('ctl00$ctl00$SessionExpiredNotification',arg,aspxCallback,'ctl00_ctl00_SessionExpiredNotification',aspxCallbackError,true); };
dxo.uniqueID = 'ctl00$ctl00$SessionExpiredNotification';
dxo.renderIFrameForPopupElements = true;
dxo.CloseUp.AddHandler(function(s, e) { Redirect(); });
dxo.popupAnimationType='fade';
dxo.popupHorizontalAlign='WindowCenter';
dxo.popupVerticalAlign='WindowCenter';
dxo.isPopupPositionCorrectionOn=false;
dxo.allowDragging=true;
dxo.width=300;
dxo.height=0;
dxo.SSLSecureBlankUrl='/AmpliTel/DXR.axd?r=1_0-3YKlb';
dxo.InlineInitialize();

//-->
</script>

    </form>

</body>
</html>

Re: [..]Autologin pagina web

Publicado: 09 Dic 2015, 18:05
por anje84
Ya lo he conseguido:

asi es:

Código: Seleccionar todo

#include <ie.au3>
$oIE = _IECreate ("https://amplitelsir.bouyguestelecom.fr")
$oForm = _IEFormGetObjByName ($oIE, "aspnetForm")
$oQuery1 = _IEFormElementGetObjByName ($oForm, "region")
$oQuery2 = _IEFormElementGetObjByName ($oForm, "username")
$oQuery3 = _IEFormElementGetObjByName ($oForm, "password")
$uname="mi ID"
$pwd="mi contrasena"
$slctreg="mi Region"
_IEFormElementSetValue ($oQuery1, $slctreg)
_IEFormElementSetValue ($oQuery2, $uname)
_IEFormElementSetValue ($oQuery3, $pwd)
$oButton=_IEGetObjById($oIE,"ctl00_ctl00_ASPxSplitter1_Content_MainContent_LoginBouton")
_IEAction ($oButton, "click")
_IELoadWait($oIE,0)