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
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

    • SorryButImaNewbie
      By SorryButImaNewbie
      Hello,
      I try to add a new UDF to my AutoIT library, and it seems I fail. I started to work following the insturctions found on the wiki . 
      I made an extra folder just next to my AutoIT folder, called ExtraUDF, and copied the file CUIAutomation2.au3 in it (I try to use this UDF for automating a program) then I run sciteconfig, set this folder up as User Include Folder, applied the changes, then run the calltip manager and got a msg when I tried to parse it. I attach a few pictures for better present the problem.
      I think I miss something here, should i put anything else on the ExtraUDF folder? I dont think that the CallTip manager added the udf to scite, If I try to run it i get a msg saying that I Scite cant open the include file and naturally after that, It can't use the functions called from it.
      Thank you for your help and insight as always! Please ask, if anything is fuzzy about the problem
       





    • anub13
      By anub13
      Hi,

      I am having difficulties wondering why my code bugging like this,
      the symptom : I have a form with combo box, and details in bottom of the app, when user choose another option the details changes immediately but when I go to details, it goes up and down endlessly
      here is the code
       
      Global $cChkPatrol, $YES= "YES", $NO = "NO" if GUICtrlRead($combo1) = "YES" Then $cChkPatrol = $YES Else $cChkPatrol = $NO EndIf func StartForm() GUICtrlSetData($txtInfo,"ADDITIONAL INFORMATION THAT WILL BE SENT WITH THE MESSAGE:" & @CRLF & asdfgSystemInfo()) GUISetState(@SW_SHOW) AdlibRegister("_CheckPatrol") While 1 $nMsg = GUIGetMsg() Select case $nMsg = $txtEmailAddress GUICtrlSetData($txtInfo,"ADDITIONAL INFORMATION THAT WILL BE SENT WITH THE MESSAGE:" & @CRLF & asdfgSystemInfo()) case $nMsg = $txtPhone GUICtrlSetData($txtInfo,"ADDITIONAL INFORMATION THAT WILL BE SENT WITH THE MESSAGE:" & @CRLF & asdfgSystemInfo()) case $nMsg = $txtFullName GUICtrlSetData($txtInfo,"ADDITIONAL INFORMATION THAT WILL BE SENT WITH THE MESSAGE:" & @CRLF & asdfgSystemInfo()) case $nMsg = $cChkPatrol GUICtrlSetData($txtInfo,"ADDITIONAL INFORMATION THAT WILL BE SENT WITH THE MESSAGE:" & @CRLF & asdfgSystemInfo()) case $nMsg = $cmdScreenShot $gScreenShotFile = SaveScreenShot() case $nMsg = $cmdSubmit if ValidateForm() then if asdfgSubmit() Then UpdateStatus("Your request has been sent successfully") MsgBox(0,"Help Requested","Your request has been sent successfully") ExitLoop Else MsgBox(0,"Help Failed","Something is wrong you request was not sent, please try again") Endif endIf case $nMsg = $cmdAttach $gAttachFile = AttachFile() Case $nMsg = $GUI_EVENT_CLOSE ExitLoop EndSelect WEnd AdlibUnRegister("_CheckPatrol") EndFunc func asdfgSystemInfo() dim $asdfgInfo $asdfgInfo = "" & @CRLF if $isAdminVersion=1 then $asdfgInfo = $asdfgInfo & @CRLF & " Ticket Tags:" & @CRLF $asdfgInfo = $asdfgInfo & "~#userphone='" & GUICtrlRead($txtPhone) & "'" & @CRLF $asdfgInfo = $asdfgInfo & "~#submitterphone='" & GUICtrlRead($txtPhone) & "'" & @CRLF dim $MachineID $MachineID = KaseyaIni($gKIniFile,"SERVER COMMUNICATIONS","User_Name","NotFound") $asdfgInfo = $asdfgInfo & "~#machineid='" & $MachineID & "'" & @CRLF dim $OrgGroups $OrgGroups= StringSplit($MachineID,".") dim $OrgGroupIndex $OrgGroupIndex = UBound($OrgGroups) - 1 $asdfgInfo = $asdfgInfo & "~#organization='" & $OrgGroups[$OrgGroupIndex] & "'" & @CRLF dim $EmailUser $EmailUser = GUICtrlRead($txtEmailAddress) $EmailUser = StringMid($EmailUser,1,StringInStr($EmailUser,"@") - 1) & @CRLF & @CRLF $asdfgInfo = $asdfgInfo & "~#username='" & $EmailUser & "'" & @CRLF ;dim ;Call("isChecked") ;$categ = GUICtrlRead($chkPatrol) ;$asdfgInfo = $asdfgInfo & "-#category='" & $categ & "'" & @CRLF EndIf $asdfgInfo = $asdfgInfo & "Email:" & GUICtrlRead($txtEmailAddress) & @CRLF & @CRLF $asdfgInfo = $asdfgInfo & "Full Name:" & GUICtrlRead($txtFullName) & @CRLF & @CRLF $asdfgInfo = $asdfgInfo & "Phone:" & GUICtrlRead($txtPhone) & @CRLF & @CRLF $asdfgInfo = $asdfgInfo & "DateTime:" & _Now() & @CRLF $asdfgInfo = $asdfgInfo & "MachineName:" & @ComputerName & @CRLF $asdfgInfo = $asdfgInfo & "UserName:" & @UserName & @CRLF $asdfgInfo = $asdfgInfo & "OS:" & @OSType & " " & @OSVersion & @CRLF $asdfgInfo = $asdfgInfo & "LogonDomain:" & @OSType & " " & @LogonDomain & @CRLF $asdfgInfo = $asdfgInfo & "LogonDNSDomain:" & @OSType & " " & @LogonDNSDomain & @CRLF $asdfgInfo = $asdfgInfo & "OS:" & @OSType & " " & @OSVersion & @CRLF $asdfgInfo = $asdfgInfo & "IP Address:" & @IPAddress1 & @CRLF $asdfgInfo = $asdfgInfo & "Public IP Address:" & GetPublicIP() &@CRLF ;$asdfgInfo = $asdfgInfo & "Public IP Address:" & _GetIP () &@CRLF $asdfgInfo = $asdfgInfo & "OS:" & NetAdapterInfo() $asdfgInfo = $asdfgInfo & "KaseyaInstalled:" & KaseyaInstalled() & @CRLF $asdfgInfo = $asdfgInfo & "KaseyaRunning:" & KaseyaRunning() & @CRLF $asdfgInfo = $asdfgInfo & "KaseyaAgentGUID:" & KaseyaIni($gKIniFile,"SERVER COMMUNICATIONS","Agent_Guid","NotFound") & @CRLF $asdfgInfo = $asdfgInfo & "asdfgPaid:" & isasdfgIDPaid() & @CRLF if $isAdminVersion=0 then $asdfgInfo = $asdfgInfo & @CRLF & " Ticket Tags:" & @CRLF $asdfgInfo = $asdfgInfo & "~userphone='" & GUICtrlRead($txtPhone) & "'" & @CRLF $asdfgInfo = $asdfgInfo & "~submitterphone='" & GUICtrlRead($txtPhone) & "'" & @CRLF dim $MachineID $MachineID = KaseyaIni($gKIniFile,"SERVER COMMUNICATIONS","User_Name","NotFound") $asdfgInfo = $asdfgInfo & "~machineid='" & $MachineID & "'" & @CRLF dim $OrgGroups $OrgGroups= StringSplit($MachineID,".") dim $OrgGroupIndex $OrgGroupIndex = UBound($OrgGroups) - 1 $asdfgInfo = $asdfgInfo & "~organization='" & $OrgGroups[$OrgGroupIndex] & "'" & @CRLF dim $EmailUser $EmailUser = GUICtrlRead($txtEmailAddress) $EmailUser = StringMid($EmailUser,1,StringInStr($EmailUser,"@") - 1) $asdfgInfo = $asdfgInfo & "~username='" & $EmailUser & "'" & @CRLF dim $categ $categ = $chkPatrol $asdfgInfo = $asdfgInfo & "~category='" & $categ & "'" & @CRLF dim $track $track = $cChkPatrol $asdfgInfo = $asdfgInfo & "~test='" & $cChkPatrol & "'" & @CRLF $asdfgInfo = $asdfgInfo & "~afterhour='" & $AfterHour & "'" & @CRLF endif Return $asdfgInfo endFunc  
      Yes it was same app as previous post in the forum I asked, I also having experience this happening before but I fail to understand the reason why this is happening. Thanks in advance.
      ButtonSupport - Copy.au3
    • Fhelipe
      By Fhelipe
      So I wanted to use my machine as a server for a program that had a unique login system. It can only log in 1 person and the password is in the script itself. I would like to adptar my code or change it completely so that I can create a database and the Script At Time Of Login Get Database Login And Log In
      Experience with Autoit: Basic                      (sorry for bad English)
      Experience with SQL: None                              (translator only)
      Code Currently Used To Login:
      ;=========================================================
      While 1
          $MSG = GUIGetMsg()
          Switch $MSG
          Case $ButtonOk
              If VerifyLogin(GUICtrlRead($USERNAME),GUICtrlRead($PASSWORD)) = 1 Then
                  GUIDelete($Form1)
                  MsgBox(-1,"Logado com Sucesso","Login Sucedido, Para Parar o Aimbot Pressione ESC!")
                  Run ("C:\Program Files (x86)\Steam\steamapps\common\Mitos.is The Game\Mitosis.exe")
                  RunP()
              Else
                  MsgBox(-1,"Error","Usúario ou Senha está incorreto, Ou Ainda Não Pagou!")
               EndIf
          Case -3
              Exit
           Case $ButtonCancel
              Exit
                Case $HelpButton
               MsgBox(-1, "Criadores", "Criadores: Zummey & Ralta")
      Case $Register
         MsgBox(-1, "ERRO", "PROGRAMA EM DESENVOLVIMENTO FUNÇÃO DESABILITADA")
          EndSwitch
      WEnd
      Func VerifyLogin($USERNAME,$PASSWORD)
          If $USERNAME = "Zummey" And $PASSWORD = "xd90fe10" Then
              Return 1
          Else
              Return 0
          EndIf
      EndFunc; End login
      ;=========================================================
    • IamKJ
      By IamKJ
      I am trying to allow the GUI to gather info as to when to execute a function.  I am having trouble doing this.  So far this is what I have.
       
      ;Timer Func timer () If Not IsDeclared("iMsgBoxAnswer") Then Local $iMsgBoxAnswer $iMsgBoxAnswer = MsgBox(36,"Timer","Please format your answer in 00:00:00:000") Select Case $iMsgBoxAnswer = 6 ;Yes Global $infotime = InputBox ('Time', 'What time to execute?') Do $rawtimer = ToolTip(@Hour & ':' & @Min & ':' & @Sec & ':' & _MSec()) until $rawtimer = $infotime if $rawtimer = $infotime Then msgbox (0,'Worked','Worked') Else EndIf Case $iMsgBoxAnswer = 7 ;No Exit EndSelect EndFunc Func _MSec() Local $stSystemTime = DllStructCreate('ushort;ushort;ushort;ushort;ushort;ushort;ushort;ushort') DllCall('kernel32.dll', 'none', 'GetSystemTime', 'ptr', DllStructGetPtr($stSystemTime)) $sMilliSeconds = StringFormat('%03d', DllStructGetData($stSystemTime, 8)) $stSystemTime = 0 Return $sMilliSeconds EndFunc I have also tried _GUIToolTip_GetText in order to read the tooltip until the time specified, but it still doesn't work.  Any help would be great.
    • IamKJ
      By IamKJ
      So I have a lot of different functions in the little program I'm making.  Most of them use the Do statement, such as finding images, clicking buttons, etc.
       
      The question I have is how would I be able to both
      1) Create a hotkey to pause whatever I am doing at the moment.  If I have to put something into every function in the program, I don't mind.
      2) Create a hotkey to exit whatever I am doing and stop all loops or commands and bring back the main GUI?