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

    • corgano
      By corgano
      Edit: A solution was found! Thanks Jos and others who helped me find this:
      You can have AutoIt run a different "Main" autoit script when you hit F5 instead of the current one, per folder, by doing the following:
      Run SciTE (might need administrator, depending on how autoit was installed) Options -> global properties (alt o g) Uncomment properties.directory.enable=1 (line 270 in my case) create a file SciTEDirectory.properties in the project's main folder Alternatively, if you don't have admin or don't want to edit the global.properties for whatever reason, you can just skip step 1,2,3 and name it SciTE.properties Put in the file you created command.go.$(au3)="$(SciteDefaultHome)\..\AutoIt3.exe" "$(SciteDefaultHome)\AutoIt3Wrapper\AutoIt3Wrapper.au3" /run /prod /ErrorStdOut /in "NAME OF SCRIPT HERE.au3" /UserParams $(1) $(2) $(3) $(4) Save the file. Now anything you run in that folder or subfolder will run the main script when you hit F5 Using SciTEDirectory.properties effects that folder and subfolders, where as SciTE.properties only effects that folder. Apart from that they work the same

      Original question:
      I have a main script, and a bunch of includes / udf's. Almost every single time I edit my includes I hit F5 to run the script, but it runs the include instead. I'm tired of switching back to the main script's tab in SciTE to run it, just to switch back to the include. Is there some kind of #flag or option to set a "main au3 file" so when I hit F5, it will see that and run the main file instead?
    • fosil
      By fosil
      Hi everyone.

      I'm currently working a program that constantly prints out log files through "consolewrite" and the "#AutoIt3Wrapper_Change2CUI=y" wrapper.

      Part of this program requires me to run a batch script.

      My issue is the batch script launches from the same window as consolewrite. I need the batch file to be launched through a different window as currently this causes an issue with the logs (which need to be very precise) but also causes the batch file to produce some funny behavior...

      Does anyone know how I can force the file to run on a second DOS window?

      Thanks in advance!!!
       
      Edit: Im using the "run" command if that helps. I tried "shellexecute" but that seemed to not launch the batch scripts at all.
    • nacerbaaziz
      By nacerbaaziz
      Hello guys
      I have an inquiry regarding bass.dll
      I wanted to record an audio file and did not know the way
      As well as I want to save the file after applying the effects
      can you help me?
      am sorry for my english
      With my greetings and best wishes
    • SkysLastChance
      By SkysLastChance
      #include <IE.au3> #include <MsgBoxConstants.au3> Local $oIE = _IECreate("website") Local $oForms = _IEFormGetCollection($oIE) For $oForm In $oForms MsgBox($MB_SYSTEMMODAL, "Form Info", $oForm.name) _IEImgClick($oForm.name, "Reserved.ReportViewerWebControl.axd?OpType=Resource&amp;Version=12.0.5522.0&amp;Name=Microsoft.ReportingServices.Rendering.HtmlRenderer.RendererResources.TogglePlus.gif", "src") Next I am having trouble clicking an image. Here is what I have tried. 

    • kenny4896
      By kenny4896
      Hi All,
      I tried my best to looking a solution from this forum or others, but I have no luck. The imagesearch dll working fine in my 64 bits machine, whenever I move the scripts to Win 7 (32 bits), it crashes. ImageSearchDLL.dll, ImageSearch.au3 and my simple scripts are in the same working directory. For win 7 (32 bits) machine, I'm using 32 bits ImageSearchdll.dll, the simple scripts as below:
      #include <ImageSearch.au3>
      Global $y = 0, $x = 0
      Local $search = _ImageSearch("C:\Program Files\AutoIt3\Examples\Images\mypc.PNG", 0, $x, $y, 0)
      if $search = 1 then
         MsgBox(0,"Found","Found my target here..." & $x & "," & $y)
         MouseMove($x, $y, 10)
      Else
         msgbox(0, "Not found","")
      Endif
      However, I received error message below when running the script. Anyone here got clue? 
      Problem Event Name:    APPCRASH
        Application Name:    AutoIt3.exe
        Application Version:    3.3.14.2
        Application Timestamp:    55fc1979
        Fault Module Name:    AutoIt3.exe
        Fault Module Version:    3.3.14.2
        Fault Module Timestamp:    55fc1979
        Exception Code:    c0000005
        Exception Offset:    00020e42
        OS Version:    6.1.7601.2.1.0.256.4
        Locale ID:    17417
        Additional Information 1:    0a9e
        Additional Information 2:    0a9e372d3b4ad19135b953a78882e789
        Additional Information 3:    0a9e
        Additional Information 4:    0a9e372d3b4ad19135b953a78882e789