KevinChC

Help with script!

3 posts in this topic

Hey guys, Im totally new with script writing and I downloaded AutoIt to learn. So I started by doing a script that will open and log in in all the software that we use in my job, the thing is I can't manage to get the script to log in in a website.
This is the html code of the website.

 

<!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><link href="App_Themes/SampleSiteTheme/jquery-ui-1.9.1.custom.css" type="text/css" rel="stylesheet" /><link href="App_Themes/SampleSiteTheme/jquery-ui-1.9.1.custom.min.css" type="text/css" rel="stylesheet" /><link href="App_Themes/SampleSiteTheme/StyleSheet.css" type="text/css" rel="stylesheet" /><link href="App_Themes/SampleSiteTheme/StyleSheet2.css" type="text/css" rel="stylesheet" /><title>

        :: Ingreso a Escritorio Virtual ::

</title>  

 <style type ="text/css">

   

    

#master_page1

{

        margin:   -1px   auto  0px  auto;

 

}

#master_header1

{   width: 50em;

        margin:  50px  auto  0px  auto;      

  

}

#master_headertop1

{    width: 50em;

        background: url(./background_main.jpg) no-repeat  center top;

       

}

 

#master_content1

{

       

    width: 50em;      

        color: #666666;

        list-style-type: disc;

       

}

#master_contentheader1

{           

   background: url(rightcoltop.gif) no-repeat  left top;

   font-family : verdana,arial,helvetica,sans-serif; 

   font-weight:bold ;

   font-size :1em;

   text-align :left ;

  

}

#master_contentplaceholder1

{

        padding:      5px  0px  40px 20px;

        border-left: 1px solid #0F2543;

        border-right: 1px solid #0F2543;

        border-bottom: 1px solid #0F2543;

        background-color: #EFEFEF;

        line-height: 1.5em;

      height:auto;

   

}

.submit {

       

    margin-top: 4px;

        margin-bottom: 4px;

        font-size: 7pt;

       

}

body {

        margin: 0px;

        background: #FFFFFF  ;

               margin:0;

        padding:0;

        border:none;

        font-family: Verdana, Arial, Serif;

        font-size:7pt;

}

 

input[type=radio]

{       height :5px ;   

}

td{

        font-size:7pt;

    font-family: Verdana, Arial, Serif;

}

table{

      font-size:7pt;

    font-family: Verdana, Arial, Serif;

     

  }

 

#login a:link, #login a:visited {

        color: #FFFFFF;

        font:0.7em  Verdana,Arial,Helvetica,sans-serif;

}

/* define other elements inside the main layout divs */

#title h1 {

        display: inline;

        color: #FFFFFF;

        font-size: 10px;

        font-weight: bold;

}

#h2 {

        font-size: 1.1em;

        font-weight: bold;

}

 

 

    </style>

<link href="App_Themes/SampleSiteTheme/jquery-ui-1.9.1.custom.css" type="text/css" rel="stylesheet" /><link href="App_Themes/SampleSiteTheme/jquery-ui-1.9.1.custom.min.css" type="text/css" rel="stylesheet" /><link href="App_Themes/SampleSiteTheme/StyleSheet.css" type="text/css" rel="stylesheet" /><link href="App_Themes/SampleSiteTheme/StyleSheet2.css" type="text/css" rel="stylesheet" /></head>

 

<body>

    <form name="aspnetForm" method="post" action="login.aspx" onsubmit="javascript:return WebForm_OnSubmit();" id="aspnetForm">

<div>

<input type="hidden" name="__LASTFOCUS" id="__LASTFOCUS" value="" />

<input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value="" />

<input type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="" />

<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUJMzIxOTQwMTgzD2QWAmYPZBYCAgMPZBYCAgUPZBYCAgEPZBYCZg9kFgICAQ88KwAKAQAPFgQeDVJlbWVtYmVyTWVTZXRnHghVc2VyTmFtZQUMa2NoaW5jaGlsbGFjZGQYAQUeX19Db250cm9sc1JlcXVpcmVQb3N0QmFja0tleV9fFgEFM2N0bDAwJENvbnRlbnRQbGFjZUhvbGRlcjEkbGduTG9naW4kTG9naW5JbWFnZUJ1dHRvbsTn4BQH022MG8UgHugxMNFgUs07" />

</div>

 

<script type="text/javascript">

//<![CDATA[

var theForm = document.forms['aspnetForm'];

if (!theForm) {

    theForm = document.aspnetForm;

}

function __doPostBack(eventTarget, eventArgument) {

    if (!theForm.onsubmit || (theForm.onsubmit() != false)) {

        theForm.__EVENTTARGET.value = eventTarget;

        theForm.__EVENTARGUMENT.value = eventArgument;

        theForm.submit();

    }

}

//]]>

</script>

 

 

<script src="/EscritorioVirtual/WebResource.axd?d=rwZGOeiOvC4bU_EifnFaVHvMBfZck8Lg5rO_spWwvGiC_1tDDx8A1c-Vz9FkMzFTH09W9Jo3D4Fnhq_nqOi9t_BGv-k1&amp;t=634604209351482412" type="text/javascript"></script>

 

 

<script src="/EscritorioVirtual/ScriptResource.axd?d=Vq_x9-UKlMGtQxX0ZoQ6aAF3tuacjVvKfP8M2pOlhOdlwFvCVq_XqZcFdX7Yoq5EKEgta5KUbYHJwkOtt9w5LGB5yPrw0msLdFYMOQsxi67vyrK_hG4GZLINnuHcO60j3nSKgsVQwHekdf6PYbPEp_ID7K81&amp;t=634604209351482412" type="text/javascript"></script>

<script type="text/javascript">

//<![CDATA[

var __cultureInfo = '{"name":"es-CR","numberFormat":{"CurrencyDecimalDigits":2,"CurrencyDecimalSeparator":",","IsReadOnly":true,"CurrencyGroupSizes":[3],"NumberGroupSizes":[3],"PercentGroupSizes":[3],"CurrencyGroupSeparator":".","CurrencySymbol":"₡","NaNSymbol":"NeuN","CurrencyNegativePattern":0,"NumberNegativePattern":1,"PercentPositivePattern":0,"PercentNegativePattern":0,"NegativeInfinitySymbol":"-Infinito","NegativeSign":"-","NumberDecimalDigits":2,"NumberDecimalSeparator":",","NumberGroupSeparator":".","CurrencyPositivePattern":0,"PositiveInfinitySymbol":"Infinito","PositiveSign":"+","PercentDecimalDigits":2,"PercentDecimalSeparator":",","PercentGroupSeparator":".","PercentSymbol":"%","PerMilleSymbol":"‰","NativeDigits":["0","1","2","3","4","5","6","7","8","9"],"DigitSubstitution":1},"dateTimeFormat":{"AMDesignator":"a.m.","Calendar":{"MinSupportedDateTime":"\/Date(-62135575200000)\/","MaxSupportedDateTime":"\/Date(253402300799999)\/","AlgorithmType":1,"CalendarType":1,"Eras":[1],"TwoDigitYearMax":2029,"IsReadOnly":true},"DateSeparator":"/","FirstDayOfWeek":0,"CalendarWeekRule":0,"FullDateTimePattern":"dddd, dd\u0027 de \u0027MMMM\u0027 de \u0027yyyy hh:mm:ss tt","LongDatePattern":"dddd, dd\u0027 de \u0027MMMM\u0027 de \u0027yyyy","LongTimePattern":"hh:mm:ss tt","MonthDayPattern":"dd MMMM","PMDesignator":"p.m.","RFC1123Pattern":"ddd, dd MMM yyyy HH\u0027:\u0027mm\u0027:\u0027ss \u0027GMT\u0027","ShortDatePattern":"dd/MM/yyyy","ShortTimePattern":"hh:mm tt","SortableDateTimePattern":"yyyy\u0027-\u0027MM\u0027-\u0027dd\u0027T\u0027HH\u0027:\u0027mm\u0027:\u0027ss","TimeSeparator":":","UniversalSortableDateTimePattern":"yyyy\u0027-\u0027MM\u0027-\u0027dd HH\u0027:\u0027mm\u0027:\u0027ss\u0027Z\u0027","YearMonthPattern":"MMMM\u0027 de \u0027yyyy","AbbreviatedDayNames":["dom","lun","mar","mié","jue","vie","sáb"],"ShortestDayNames":["do","lu","ma","mi","ju","vi","sá"],"DayNames":["domingo","lunes","martes","miércoles","jueves","viernes","sábado"],"AbbreviatedMonthNames":["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic",""],"MonthNames":["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre",""],"IsReadOnly":true,"NativeCalendarName":"calendario gregoriano","AbbreviatedMonthGenitiveNames":["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic",""],"MonthGenitiveNames":["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre",""]}}';//]]>

</script>

 

<script src="/EscritorioVirtual/ScriptResource.axd?d=3dhXQOSYsZwcq4triCQe1m_eMlFYcisJuFS_nygUH5nj4OjDvevvmiRQMoBiJz8ufP89r_9nK0uL-A-ndYgZDSzz2rbX18Ngh_50xMpZNi3gNNtnHoQmVwH2aG-L6n6OTkRsGFqDzvfGv5ljwNfNUFNHDRM1&amp;t=634940462130273847" type="text/javascript"></script>

<script src="/EscritorioVirtual/ScriptResource.axd?d=YIBWdKNFlJBr4mGmjQfQHQbm-MGFyL-PO0hPhRLO0q4RXh_NdmwPe63OE-QsLDziNGQZbHWKLIxeja2kLmtrdII8Xs6GrHc3zdqzFKoruB4B5xnTASJye5gP_OAWsvyTcNg02AABxWcupiozQd1t74qRXjVaWDSMm6Y_YaYpgfLz3JJD0&amp;t=634940462130273847" type="text/javascript"></script>

<script src="/EscritorioVirtual/ScriptResource.axd?d=ICNmvli7crOrZLHS8sYSqnClRUCYsyA68Jsi_AZovwL0UnJy2AzvmZosrUSf_m5gXy4DMN93i0R3u9w71yiuvXAde8nrdWeJY4ETGGP6VnIhvQQEIvK8u489i9id-P_FHPao2G0aSFzjYVzJETG4WwgUjN01&amp;t=635733532692964325" type="text/javascript"></script>

<script src="/EscritorioVirtual/ScriptResource.axd?d=KoDmbeRTKdYWjUQbLJh5w0YFjCt_VHlHMdx-64zowfiIQKHKzocTVH_hYFx436E4nUgMnEPEGhpfLzuLJMstm045SYLZTF-oo3qplpnZNldAyeAu-roRQT4Rr53jrMaD-9QcOvfBm0tZN2xKotnxckye2UA1&amp;t=635733532692964325" type="text/javascript"></script>

<script src="/EscritorioVirtual/ScriptResource.axd?d=Mv7eBgXS1VQnqpwrHX1rxKG8gPi--PVsEj0s-lkOAyGQYdufIglyK0AIrvrWa2iONUW1LW8SabibPWsfEhNA-uqAG6pxSL0n7PFd-lhRFqbPhnoCXr9BDbhckw7ORlazuiAqMG5nnjBVIxS2pBinahSM4lk1qWKd4rSGIxTO9fuiDoC10&amp;t=635733532692964325" type="text/javascript"></script>

<script src="/EscritorioVirtual/ScriptResource.axd?d=ybPGha1ION8ZqnDI_awnQdNpDpk197pbeUtOMzGOBiyQUVvL2ON-971KDKXmiVT_mm_Au9WJnBdpLVvwVoL3VYZn_l9HJxTwB20hUQTaIdXeNa0IRf6OjgyGrxYxo0WT7bh53XF_l0s4MQ2Njk-19szVbcU1&amp;t=635733532692964325" type="text/javascript"></script>

<script src="/EscritorioVirtual/ScriptResource.axd?d=MTqLvE-29TyoxPuDcZ5XjKsHSKUwnYbrNZ_aWaEpK7d-5m7JOQOALxbGrVeuCDxx2dWaIuICKblm3qoojd9GWcpBuE-PCKI0enF1qkrhkP2beOO-QaK2Zxzj0ZuX5Q4BJ-zPJd0wBjzjOlPUPbw2Uw8YH3p7QWVEz3zBhbhdsEjJmxrB0&amp;t=635733532692964325" type="text/javascript"></script>

<script src="/EscritorioVirtual/ScriptResource.axd?d=XyA_Uz0X4bClWqmj92oj_Nl0RWmykGZz4LuAKXH1ohn2qTNlcLH5cUMDbYJmZZ5IWTPkXm--8Y8iSi3k9OXiyMjVDrnSzjxnnxkoxHyKX8gV24yBXRJSbBGAYo-rdIRvAJdYtEOuoaOIZy7f95aLCzHxmEJrjI9ddZC53sUJuWKxjRY_0&amp;t=635733532692964325" type="text/javascript"></script>

<script src="/EscritorioVirtual/ScriptResource.axd?d=UdQnvGaTDCHao-3Wgd2zlEanfj6d-xzHI9HnWYkqvsM1nvlFX_SYuyAn8b8_vGPoZxTaYfrnBrnpeEDaGgPDlli-sLcHtyklr3-1B8Id-nqMWieiORDzMAqB9rSL5YnTOXKHZyG6GyDMxWkrFsYjgY_hvdvuHiBs1h8zenILqPvZ4G2u0&amp;t=635733532692964325" type="text/javascript"></script>

<script src="/EscritorioVirtual/ScriptResource.axd?d=ZlVhHJoRocD-tTT9sVyFUftbNoZcTCPB016gVhk1pEO9BoSFlsuUe8bxTR0jNDUd5QU7yWKdvhj9LAZescgyAGwR8dmQnnKkVVSpU5V5AbnIaJGduN8m_d0r9YISDWM9p684UeACsupXdOjVJ4Jf3qmYCnk1&amp;t=635733532692964325" type="text/javascript"></script>

<script src="/EscritorioVirtual/ScriptResource.axd?d=UnjjGvrcQkhq5bhxDGcjhll4p7yOR-lsywtHxLtFBPknIfgesuLllHNrCYQRzfrQmMugNrR5LC1CYt3X-K8Oarxw_FF84ODM3G6-cWmIkPbuD4gCHr1c1y1bbaF4SeSMJCeNvzMA3JfXkgFgoQQzgMjev4y6rVvuh5ZrsnkkQ4U6YtJA0&amp;t=635733532692964325" type="text/javascript"></script>

<script src="/EscritorioVirtual/WebResource.axd?d=xYiroN1cQB6ODy_rewhMnJaoZ89IPRzY2RFGSHwE97VgUbCcjTuA7JthpEi601UFneGo_dfXU543y9N8gtAYlgeJcTE1&amp;t=634604209351482412" type="text/javascript"></script>

<script type="text/javascript">

//<![CDATA[

function WebForm_OnSubmit() {

if (typeof(ValidatorOnSubmit) == "function" && ValidatorOnSubmit() == false) return false;

return true;

}

//]]>

</script>

 

<div>

 

        <input type="hidden" name="__SCROLLPOSITIONX" id="__SCROLLPOSITIONX" value="0" />

        <input type="hidden" name="__SCROLLPOSITIONY" id="__SCROLLPOSITIONY" value="0" />

        <input type="hidden" name="__EVENTVALIDATION" id="__EVENTVALIDATION" value="/wEWBgL96pPKBgLLxdO8BgK9rLvbAQLphb3pAgL3lqzVCgKW2P7yArBRXOqI5n1Y4iJFOnxxgqh6i18v" />

</div>

         

<script type="text/javascript">

//<![CDATA[

Sys.WebForms.PageRequestManager._initialize('ctl00$ScriptManager1', document.getElementById('aspnetForm'));

Sys.WebForms.PageRequestManager.getInstance()._updateControls(['tctl00$ContentPlaceHolder1$upnlgn','tctl00$CuadroMensajes$upMensaje'], [], [], 90);

//]]>

</script>

 

   

        

     <div id="master_header1" align=center>

         

         <img id="ctl00_HeaderImage" src="background_main.jpg" alt="Ingreso" style="width:50em;border-width:0px;" />   

             

    </div>

       <div align=center id="master_page1" >

        <div id="master_content1">

         <div id="master_contentheader1" >

                  Inicio de Sesión.</div>

           <div id="master_contentplaceholder1" >

            

      

  

       

  

 <br/>

                     

            <span id="ctl00_ContentPlaceHolder1_upnlgn">

            <table cellspacing="0" cellpadding="3" border="0" id="ctl00_ContentPlaceHolder1_lgnLogin" style="border-color:Silver;border-width:1px;border-style:Groove;border-collapse:collapse;">

        <tr>

               <td><table cellpadding="0" border="0" style="font-family:verdana,arial,helvetica,sans-serif;font-size:X-Small;">

                       <tr>

                               <td align="center" colspan="2" style="font-family:verdana,arial,helvetica,sans-serif;font-size:1.2em;font-weight:bold;">Validar credenciales de acceso</td>

                       </tr><tr>

                               <td align="center" colspan="2">Ingrese un usuario y contraseña</td>

                       </tr><tr>

                               <td align="right" style="font-family:verdana,arial,helvetica,sans-serif;font-size:1em;"><label for="ctl00_ContentPlaceHolder1_lgnLogin_UserName">Usuario:</label></td><td><input name="ctl00$ContentPlaceHolder1$lgnLogin$UserName" type="text" value="kchinchillac" id="ctl00_ContentPlaceHolder1_lgnLogin_UserName" style="border-color:Gray;border-width:1px;border-style:Solid;font-size:1.2em;font-weight:normal;height:15px;" /><span id="ctl00_ContentPlaceHolder1_lgnLogin_UserNameRequired" title="El nombre de usuario es obligatorio." style="color:Red;visibility:hidden;">*</span></td>

                       </tr><tr>

                               <td align="right" style="font-family:verdana,arial,helvetica,sans-serif;font-size:1em;"><label for="ctl00_ContentPlaceHolder1_lgnLogin_Password">Contraseña:</label></td><td><input name="ctl00$ContentPlaceHolder1$lgnLogin$Password" type="password" id="ctl00_ContentPlaceHolder1_lgnLogin_Password" style="border-color:Gray;border-width:1px;border-style:Solid;font-size:1.2em;font-weight:normal;height:15px;" /><span id="ctl00_ContentPlaceHolder1_lgnLogin_PasswordRequired" title="La contraseña es obligatoria." style="color:Red;visibility:hidden;">*</span></td>

                       </tr><tr>

                               <td align="right" colspan="2"><input type="submit" name="ctl00$ContentPlaceHolder1$lgnLogin$LoginButton" value="Inicio de sesión" onclick="javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions(&quot;ctl00$ContentPlaceHolder1$lgnLogin$LoginButton&quot;, &quot;&quot;, true, &quot;ctl00$ContentPlaceHolder1$lgnLogin&quot;, &quot;&quot;, false, false))" id="ctl00_ContentPlaceHolder1_lgnLogin_LoginButton" /></td>

                       </tr>

               </table></td>

        </tr>

</table>

                                       <BR />      

                <span id="ctl00_ContentPlaceHolder1_errorLabel"></span>

                  <span id="ctl00_ContentPlaceHolder1_lblDespachos"></span>

           

                         <br />    

                                    

                                      

                                     </span>

                    

                        <div id="ctl00_ContentPlaceHolder1_uprolgn" style="display:none;">

       

                            <img id="ctl00_ContentPlaceHolder1_Loading" src="imagenes/indicator_white.gif" style="border-width:0px;" />

                           <br /><STRONG  >Validando....<BR /></STRONG>

                         

</div>

                      

     

      

 

           </div>

            </div>

 

    </div> 

           

        <div id="ctl00_CuadroMensajes_upMensaje">

       

        <div id="ctl00_CuadroMensajes_pnlMensajes" style="border-color:SteelBlue;border-width:2px;border-style:Solid;width:500px;display: none">

              

            <table cellspacing="0" width="100%">

                <tr>

                    <td colspan="2" style="background-color: whitesmoke; text-align: center">

                        <span id="ctl00_CuadroMensajes_lblTituloMensaje" style="color:#134F8B;font-family:Tahoma;Verdana;Arial;font-size:12px;font-weight:bold;"></span></td>

                </tr>

                <tr>

                    <td colspan="1" rowspan="3" style="vertical-align: middle; width: 60px; text-align: center;

                        background-color: whitesmoke;">

                        <img id="ctl00_CuadroMensajes_imgIcono" src="imagenes/mensajeError.png" style="height:44px;border-width:0px;" /></td>

                    <td colspan="1" rowspan="1" style="width: 440px; vertical-align: middle; background-color: whitesmoke;

                        text-align: center;">

                    </td>

                </tr>

                <tr>

                    <td style="width: 440px;   text-align: left; vertical-align: middle; background-color: white;

                        height: 80px;" rowspan="1"  >

                       

                        <span id="ctl00_CuadroMensajes_lblMensaje" style="display:inline-block;color:#404000;border-color:LightSteelBlue;font-family:Tahoma;;font-size:9pt;width:430px;"></span>

                      </td>

                </tr>

                <tr>

                    <td style="width: 440px; background-color: whitesmoke; text-align: left;">

                    </td>

                </tr>

                <tr>

                    <td colspan="1" rowspan="2" style="vertical-align: middle; width: 60px; text-align: center;

                        background-color: whitesmoke;">

                    </td>

                    <td style="width: 440px; background-color: whitesmoke; text-align: left">

                       

                    </td>

                </tr>

                <tr>

                    <td style="text-align: center; vertical-align: middle; background-color: whitesmoke;

                        width: 335px;">

                    </td>

                </tr>

            </table>

            <table cellpadding="0" cellspacing="0" style="width: 100%">

               <tr>

                    <td style="height: 20px; background-color: whitesmoke; text-align: center" align="center">

                        <table>

                            <tr>

                                <td style="height: 26px" align ="center">

                                    <input type="submit" name="ctl00$CuadroMensajes$btnAceptar" value="Aceptar" id="ctl00_CuadroMensajes_btnAceptar" />

                                    <input type="submit" name="ctl00$CuadroMensajes$btnCancelar" value="Cancelar" id="ctl00_CuadroMensajes_btnCancelar" /></td>

                            </tr>

                        </table>

                    </td>

                </tr>

            </table>

       

        </div>

       

    

</div>

 

 

    

<script type="text/javascript">

//<![CDATA[

var Page_Validators =  new Array(document.getElementById("ctl00_ContentPlaceHolder1_lgnLogin_UserNameRequired"), document.getElementById("ctl00_ContentPlaceHolder1_lgnLogin_PasswordRequired"));

//]]>

</script>

 

<script type="text/javascript">

//<![CDATA[

var ctl00_ContentPlaceHolder1_lgnLogin_UserNameRequired = document.all ? document.all["ctl00_ContentPlaceHolder1_lgnLogin_UserNameRequired"] : document.getElementById("ctl00_ContentPlaceHolder1_lgnLogin_UserNameRequired");

ctl00_ContentPlaceHolder1_lgnLogin_UserNameRequired.controltovalidate = "ctl00_ContentPlaceHolder1_lgnLogin_UserName";

ctl00_ContentPlaceHolder1_lgnLogin_UserNameRequired.errormessage = "El nombre de usuario es obligatorio.";

ctl00_ContentPlaceHolder1_lgnLogin_UserNameRequired.validationGroup = "ctl00$ContentPlaceHolder1$lgnLogin";

ctl00_ContentPlaceHolder1_lgnLogin_UserNameRequired.evaluationfunction = "RequiredFieldValidatorEvaluateIsValid";

ctl00_ContentPlaceHolder1_lgnLogin_UserNameRequired.initialvalue = "";

var ctl00_ContentPlaceHolder1_lgnLogin_PasswordRequired = document.all ? document.all["ctl00_ContentPlaceHolder1_lgnLogin_PasswordRequired"] : document.getElementById("ctl00_ContentPlaceHolder1_lgnLogin_PasswordRequired");

ctl00_ContentPlaceHolder1_lgnLogin_PasswordRequired.controltovalidate = "ctl00_ContentPlaceHolder1_lgnLogin_Password";

ctl00_ContentPlaceHolder1_lgnLogin_PasswordRequired.errormessage = "La contraseña es obligatoria.";

ctl00_ContentPlaceHolder1_lgnLogin_PasswordRequired.validationGroup = "ctl00$ContentPlaceHolder1$lgnLogin";

ctl00_ContentPlaceHolder1_lgnLogin_PasswordRequired.evaluationfunction = "RequiredFieldValidatorEvaluateIsValid";

ctl00_ContentPlaceHolder1_lgnLogin_PasswordRequired.initialvalue = "";

//]]>

</script>

 

 

<script type="text/javascript">

//<![CDATA[

 

var Page_ValidationActive = false;

if (typeof(ValidatorOnLoad) == "function") {

    ValidatorOnLoad();

}

 

function ValidatorOnSubmit() {

    if (Page_ValidationActive) {

        return ValidatorCommonOnSubmit();

    }

    else {

        return true;

    }

}

       

theForm.oldSubmit = theForm.submit;

theForm.submit = WebForm_SaveScrollPositionSubmit;

 

theForm.oldOnSubmit = theForm.onsubmit;

theForm.onsubmit = WebForm_SaveScrollPositionOnSubmit;

WebForm_AutoFocus('ctl00_CuadroMensajes_btnAceptar');Sys.Application.initialize();

 

document.getElementById('ctl00_ContentPlaceHolder1_lgnLogin_UserNameRequired').dispose = function() {

    Array.remove(Page_Validators, document.getElementById('ctl00_ContentPlaceHolder1_lgnLogin_UserNameRequired'));

}

 

document.getElementById('ctl00_ContentPlaceHolder1_lgnLogin_PasswordRequired').dispose = function() {

    Array.remove(Page_Validators, document.getElementById('ctl00_ContentPlaceHolder1_lgnLogin_PasswordRequired'));

}

Sys.Application.add_init(function() {

    $create(Sys.UI._UpdateProgress, {"associatedUpdatePanelId":"ctl00_ContentPlaceHolder1_upnlgn","displayAfter":500,"dynamicLayout":true}, null, null, $get("ctl00_ContentPlaceHolder1_uprolgn"));

});

Sys.Application.add_init(function() {

    $create(AjaxControlToolkit.ModalPopupBehavior, {"BackgroundCssClass":"modalBackground","CancelControlID":"ctl00_CuadroMensajes_btnAceptar","OkControlID":"ctl00_CuadroMensajes_btnAceptar","PopupControlID":"ctl00_CuadroMensajes_pnlMensajes","dynamicServicePath":"/EscritorioVirtual/login.aspx","id":"ctl00_CuadroMensajes_mpeMensajes"}, null, null, $get("ctl00_CuadroMensajes_lblTituloMensaje"));

});

//]]>

</script>

</form>

</body>

</html>

 

I would really appreciate your help, and If you write a script please explain what are you doing, I don't understand all the language.

Share this post


Link to post
Share on other sites



Welcome,

I doubt you will find anyone willing to write it all for you, but many are willing to help when you have specific questions or can't something to work.
So, post what you have that isn't working and what questions you have.

Jos


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

Welcome to AutoIt and the forum!

BTW: Please give meaningful titles to your threads as everyone on this forum is looking for help ;)


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

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

  • Similar Content

    • Spask
      By Spask
      Hi, I'm trying to find a text value inside of a html.
      This is what the line looks like normally:
      <p id="line1" class> <span class="bot">TEXT HERE</span> </p> The text then changes to a non breaking space:
      <p id="line1" class> <span class="bot">&nbsp;</span> </p> And then it changes back to normal text but it's different every time.
      Can I code this so that it grabs the text every time it changes and has a variable that represents it?
      I currently have this inside of my loop:
      $span = .document.getElementsByTagName("span") For $text In $span If $text.value = "&nbsp;" Then Sleep(50) MsgBox(0,0,0) ;messagebox to test if it can be found, but I don't know how to grab the text EndIf Next The problem is that there are many other lines in the html that have the same span but are called "line3", "line5", etc and the one I need is from "line1".
      I will appreciate if anyone can help with this!
    • sree161
      By sree161
      Hi,
      i have a code which generates two numeric outputs.i have to save them in excel.
      Is there any way to export them to specific cells in excel???
    • tremolux66
      By tremolux66
      I use a monospace font for editing AutoIt scripts in SciTE (currently, CourierNew 9pt). Regardless of what font size I set in the configuration, when I start SciTE to resume editing the script text is one size smaller than I specified. When I type Ctrl+<numpad-slash> the text changes to the desired size. The same is true of the output pane, and I have to reset the size for both areas every time I start SciTE.
      IIRC, I've made few other changes to the configuration (e.g., changed the search highlight color and disabled Tidy), so this behavior seems odd. About SciTE says it's version 3.6.0 (Aug. 4, 2015).
      Any idea how to fix this?
    • user4157124
      By user4157124
      As they're opinion-based to some degree; how are AutoIt's best practices decided and do suggestions get considered?
      Some suggestions :
      For...To...Step...Next -loop variable-naming like $iN ($i1, $i2, etc.) : conforms to recommended naming convention, identifies level (albeit inverted to ExitLoop and ContinueLoop's convention) and enables SciTE selection-highlighting (requires minimum of 3 characters). Minimize logic in global scope, separate data & settings from logic, use of vertical space, project organization (folder structure, resource- and include file management). Example (loop variable-naming, minimizing logic in global scope and separation of settings from logic) :
      #include <Array.au3> Global Enum $RANDOM_RETURNFLOAT, _ $RANDOM_RETURNINTEGER Global Enum $EXITCODE_NONE Global Const $g_sChar0 = '-' Global Const $g_sChar1 = '+' Global Const $g_iAmountX = 10 Global Const $g_iAmountY = $g_iAmountX Main() Func Main() Local $aArray[$g_iAmountY][$g_iAmountX] For $i1 = 0 To $g_iAmountY - 1 For $i2 = 0 To $g_iAmountX - 1 $aArray[$i1][$i2] = Random(0, 1, $RANDOM_RETURNINTEGER) ? $g_sChar1 : $g_sChar0 Next Next _ArrayDisplay($aArray) Exit $EXITCODE_NONE EndFunc Example (project organization) :
      + project_folder + bak [backup files] + bin [distributed binaries and dependencies] + inc [non-standard include files] + res [resource files (icons, file+install files, etc.)] + usr [configuration files, databases, etc.] - script.au3 - script.exe Example (use of vertical space) :
      Func _DigitalRoot($iNum) Local $sNum = '' Local $aNum While $iNum > 9 $sNum = String($iNum) $aNum = StringSplit($sNum, '') $iNum = 0 For $i1 = 1 To $aNum[0] $iNum += Int($aNum[$i1]) Next WEnd Return $iNum EndFunc
    • wimhek
      By wimhek
      LS
      Is it possible to open file(s) in scite in read only mode ?
      If so, How ?
       
      Thnx