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

    • VaishnaviBUtpat
      By VaishnaviBUtpat
      <!DOCTYPE html> <html lang="en" xml:lang="en" style="height: 100%;" xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title> <style> * { margin: 0; padding: 0; } .th-lk { color: #3665d0; font-family: Arial; font-size: small; text-decoration: none; } .th-lk { vertical-align: 0px; } .th-menu2 .th-lk { line-height: 2em; margin-bottom: 0px; margin-right: 0px; overflow: hidden; padding: 0; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; width: 100%; } .th-menu2 .th-lk { color: black; font-weight: bold; } .th-menu2 > li > .th-lk { display: block; padding-left: 8px; width: auto; } .th-menu2 .th-menu2-sub-item .th-lk, .th-menu2 .th-menu2-sub-item-hov .th-lk { margin-right: 20px; } .th-menu2-sub-item { position: relative !important; } .th-menu2 .th-menu2-item, .th-menu2 .th-menu2-item-hov, .th-menu2 .th-menu2-sub-item, .th-menu2 .th-menu2-sub-item-hov { background-repeat: repeat-x; border-left-style: solid; border-left-width: 1px; border-right-style: solid; border-right-width: 1px; border-top-style: solid; border-top-width: 1px; height: 2em; list-style: none; margin-bottom: 0px; padding: 0; width: 100%; } .th-menu2 .th-menu2-item, .th-menu2 .th-menu2-item-hov, .th-menu2 .th-menu2-sub-item, .th-menu2 .th-menu2-sub-item-hov { background-color: #ECECEC; background-image: url(sap_skins/default/styling/lshape/chg_butt_det_nav.gif); border-left-color: #d3d1ce; border-right-color: #d3d1ce; border-top-color: #d3d1ce; border-top-width: 0px; } .th-menu2 { border: 0 solid black; left: 0px; list-style: none; margin: 0; padding: 0; position: relative; } .th-menu2 { z-index: 10006; } .th-menu2 { background-color: white; } div { zoom: 1; } .th-sc-content { left: 0px; position: absolute; top: 0px; } .th-sc-container { left: 0px; overflow: hidden; position: relative; top: 0px; } .th-sc-top { position: relative; } .th-sc-top, .th-sc-content, .th-sc-container, .th-sc-buttondown, .th-sc-buttonup { width: 172px; } .th-sc-buttonup, .th-sc-container { z-index: 10101; } .th-sc-top { z-index: 10100; } body, td, th { font-family: Arial,Helvetica,sans-serif; font-size: small; } .th-l-navcontainer, .th_l_downcontainer { border-right-style: solid; border-right-width: 1px; width: 172px; } .th-l-navcontainer, .th_l_downcontainer { background-color: white; border-right-color: #d3d1ce; } body, html { margin: 0px; border: 0; margin: 0; } </style> </head> <body><form name="myFormId" id="myFormId" action="/sap(ZT1TVVJEWDFWVFVsOWZYMTlmTWpNNU9UWmZXWTlwZG5telZ1RGhBSUFBQ3Nyc2tBPT0=)/bc/bsp/sap/crm_ui_frame/BSPWDApplication.do?sap-client=100&amp;sap-language=EN&amp;sap-domainrelax=min" method="post" target="WorkAreaFrame2"><div class="th-ajax-area" id="rootAreaDiv"><div id="C1_W1_V2" tgt="" dhe="false"><table width="100%" style="table-layout: fixed;" cellspacing="0" cellpadding="0"><tbody><tr><td><table width="100%" style="table-layout: fixed;" cellspacing="0" cellpadding="0"><tbody><tr valign="top"><td class="th-l-navcontainer" id="th_l_navcontainer"><div class="th-sc-top" id="C1_W1_V2_thescroll" style="height: 786px;"><div class="th-sc-container" id="C1_W1_V2_thescroll_scbox" style="height: 786px;"><div class="th-sc-content" id="C1_W1_V2_thescroll_sccontent"><div class="th-ajax-area" id="C1_W1_V2_$navbar"><div id="C7_W35_V36" tgt="" dhe="true" excevt="" intevt="c:C7_W35_V36:C1_W1_V2_C7_W35_V36_MainNavigationLinks.do;" automode="true"><div class="th-ajax-area" id="C1_W1_V2_C7_W35_V36_MainNavigationLinks.do"><ul class="th-menu2" id="C7_W35_V36_mainmenu" style="width: 171px;"><li class="th-menu2-sub-item"><a title="Sales Cycle" class="th-lk" id="C7_W35_V36_UTL-SLS" onclick="htmlbSubmitLib('htmlb',this,'thtmlb:link:click:0','myFormId','C7_W35_V36_UTL-SLS','UTL\x2dSLS\x2dWC',0);return false" onfocus="thSaveKbFocus(this);" oncontextmenu="return false;" href="javascript:void(0)">Sales Cycle</a></li></ul></div></div></div></div></div></div></td></tr></tbody></table></td></tr></tbody></table></div></div></form></body> </html> How to capture above HTML element using AutoIT
    • cu0x
      By cu0x
      Hello guys,
       
      im trying to solved a problem that I have.
       
      Need to get some chinese text from an old Wise script, and in the wise file says f.e. Ù×÷ϵͳ¡£ ÇëÉý¼¶Ä. Is there any way to convert it to traditional chinese?
       
      Already tryied the following code...
       
      #include <MsgBoxConstants.au3> Example() Func Example() ; Define the string that will be converted later. ; NOTE: This string may show up as ?? in the help file and even in some editors. ; This example is saved as UTF-8 with BOM. It should display correctly in editors ; which support changing code pages based on BOMs. Local Const $sString = "Ù×÷ϵͳ¡£ ÇëÉý¼¶Ä" ; Temporary variables used to store conversion results. $dBinary will hold ; the original string in binary form and $sConverted will hold the result ; afte it's been transformed back to the original format. Local $dBinary = Binary(""), $sConverted = "" ; Convert the original UTF-8 string to an ANSI compatible binary string. $dBinary = StringToBinary($sString) ; Convert the ANSI compatible binary string back into a string. $sConverted = BinaryToString($dBinary) ; Display the resulsts. Note that the last two characters will appear ; as ?? since they cannot be represented in ANSI. DisplayResults($sString, $dBinary, $sConverted, "ANSI") ; Convert the original UTF-8 string to an UTF16-LE binary string. $dBinary = StringToBinary($sString, 2) ; Convert the UTF16-LE binary string back into a string. $sConverted = BinaryToString($dBinary, 2) ; Display the resulsts. DisplayResults($sString, $dBinary, $sConverted, "UTF16-LE") ; Convert the original UTF-8 string to an UTF16-BE binary string. $dBinary = StringToBinary($sString, 3) ; Convert the UTF16-BE binary string back into a string. $sConverted = BinaryToString($dBinary, 3) ; Display the resulsts. DisplayResults($sString, $dBinary, $sConverted, "UTF16-BE") ; Convert the original UTF-8 string to an UTF-8 binary string. $dBinary = StringToBinary($sString, 4) ; Convert the UTF8 binary string back into a string. $sConverted = BinaryToString($dBinary, 4) ; Display the resulsts. DisplayResults($sString, $dBinary, $sConverted, "UTF8") EndFunc ;==>Example ; Helper function which formats the message for display. It takes the following parameters: ; $sOriginal - The original string before conversions. ; $dBinary - The original string after it has been converted to binary. ; $sConverted- The string after it has been converted to binary and then back to a string. ; $sConversionType - A human friendly name for the encoding type used for the conversion. Func DisplayResults($sOriginal, $dBinary, $sConverted, $sConversionType) MsgBox($MB_SYSTEMMODAL, "", "Original:" & @CRLF & $sOriginal & @CRLF & @CRLF & "Binary:" & @CRLF & $dBinary & @CRLF & @CRLF & $sConversionType & ":" & @CRLF & $sConverted) EndFunc ;==>DisplayResults Thanks a lot!
    • nacerbaaziz
      By nacerbaaziz
      Hi dear
      I want create retractable bar using autoit
      I tried creating slider, but there's a problem with screen reader for the blind, so is there another retractable tape?
      It is advisable to not accept dragging with the keybord only with  mouse
      note:
      This bar is needed in the process of raising and lowering the volume
      I hope that there is a solution to do that
      i waiting your responses.
      Thanks in advance to all members and administrators
    • algiuxas
      By algiuxas
      Hello everybody!
      I get these weird errors in SciTE console:
      [0801/210405:ERROR:tcp_socket_win.cc(335)] bind() returned an error: Only one usage of each socket address (protocol/network address/port) is normally permitted. (0x2740) [0801/210405:ERROR:devtools_http_handler.cc(229)] Cannot start http server for devtools. Stop devtools. [0801/210405:ERROR:browser_gpu_channel_host_factory.cc(119)] Failed to launch GPU process. [0801/210405:ERROR:browser_gpu_channel_host_factory.cc(119)] Failed to launch GPU process. My script:
      #include <ButtonConstants.au3> #include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> #include <Misc.au3> #NoTrayIcon $title = "Hello" $txt = "..." ; TODO: Make 4 of them ;~ #Region ### START Koda GUI section ### Form= ;~ $1_GUI = GUICreate($title, 370, 120, -1, -1) ;~ GUISetBkColor(0xFFFFFF) ;~ $1_B1 = GUICtrlCreateButton("B1", 136, 80, 107, 25) ;~ GUICtrlSetFont(-1, 8, 800, 0, "MS Sans Serif") ;~ $1_B2 = GUICtrlCreateButton("B2", 248, 80, 107, 25) ;~ GUICtrlSetFont(-1, 8, 800, 0, "MS Sans Serif") ;~ GUICtrlCreateLabel($txt, 16, 24, 338, 52) ;~ GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif") ;~ GUICtrlSetColor(-1, 0x000000) ;~ GUISetState(@SW_SHOW) ;~ #EndRegion ### END Koda GUI section ### #Region ### START Koda GUI section ### Form= $2_GUI = GUICreate($title, 370, 0?"Hi :)":120, -1, -1) GUISetBkColor(0xFFFFFF) $2_B1 = GUICtrlCreateButton("B1", 136, 80, 107, 25) GUICtrlSetFont(-1, 8, 800, 0, "MS Sans Serif") $2_B2 = GUICtrlCreateButton(0?":D":"B2", 248, 80, 107, 25) GUICtrlSetFont(-1, 8, 800, 0, "MS Sans Serif") GUICtrlCreateLabel($txt, 16, 24, 338, 52) GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif") GUICtrlSetColor(-1, 0x000000) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### $u32dll = DllOpen("user32.dll") ;~ Opt("GUIOnEventMode", 1) ;~ GUICtrlSetOnEvent(-3, "_Exit") ; TODO: Fix, doesn't work with 2 GUI at the same time ;~ GUICtrlSetOnEvent($B11, "_Exit") ;~ GUICtrlSetOnEvent($B21, "_Exit") ;~ GUICtrlSetOnEvent($B12, "_Exit") ;~ GUICtrlSetOnEvent($B22, "_Exit") ;~ $pos1 = WinGetPos($GUI1) ;~ $pos2 = WinGetPos($GUI1) While 1 ;~ $pos1 = WinGetPos($GUI1) ;~ $pos2 = WinGetPos($GUI1) ;~ $x = $pos1[0] - 370 ;~ $y = $pos1[1] ;~ WinMove($GUI2, "", $x, $y, $pos1[2], $pos1[3], 1) ; Press middle mouse button to close (it's gonna be a non malicious prank for my friend) If _IsPressed(4, $u32dll) Then Exit $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE _Exit() ;~ Case $1_B1 ;~ _Exit() ;~ Case $1_B2 ;~ _Exit() Case $2_B1 _Exit() Case $2_B2 _Exit() EndSwitch WEnd Func _Exit() ; TODO: ... ;~ GUIDelete($1_GUI) GUIDelete($2_GUI) Exit EndFunc ;==>_Exit How to get rid of these errors?
    • XanzyX
      By XanzyX
      Is there a function out there that will edit an existing file witha a "Save" and "Cancel" at the bottom?
      Example: Funcrion("TestFile.txt")