Jump to content

darcaro

Active Members
  • Posts

    20
  • Joined

  • Last visited

darcaro's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. This may be a simple question, but is there any way to embed a FileOpenDialog window into my GUI? I want to be able to have a file selection, with some of my own buttons. Any info would be greatly appreciated!!!!! thanks!
  2. Without sounding like too much of a pain (or too much of a moron!) .....could you give me an idea of where you would start? I'm really new to this, so digging through it would be nearly impossible for me. thanks for all your help!
  3. That is great Dale, thanks so much for your input - are you saying that I may not be able to automate logging into this page? I'm not sure if it helps, but there is a preliminary page that launches prior to this one, where the user has to click a url - that one i can get past with _ielinkclickbytext
  4. Hello - I am trying to use these functions to automatically login to a javascript website. With many other pages, the IE.au3 has worked perfectly, but for some reason, it is not working with this page. I think it has something to do with frames and tables but I do not know enough about it to get it to work. The actual page is pasted below, I am trying to populate txtUserID - if someone could point me in the right direction, that would be really great <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" > <HTML> <HEAD> <title> ADP ezLaborManager - Login </title> <meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR"> <meta content="C#" name="CODE_LANGUAGE"> <meta content="Javascript" name="vs_defaultClientScript"> <meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema"> <LINK href="/ezLaborManagerNet/css/ADPezLaborManager.css?16" type="text/css" rel="stylesheet"> <LINK href="/ezLaborManagerNet/css/ADPezLaborManagerControlClasses.css?16" type="text/css" rel="stylesheet"> <link rel="shortcut icon" href="/ezLaborManagerNet/ADPFavicon.ico" /> <script language="javascript" src="/ezLaborManagerNet/js/commonpagefunctions.js?16_4"></script> <script language="javascript" src="/ezLaborManagerNet/js/pagedirty.js?16_4"></script> <script language="javascript" src="/ezLaborManagerNet/js/GlobalStrings_en-US.js?16_4"></script> <meta name="ROBOTS" content="NOINDEX, NOFOLLOW"> <script language="javascript"> <!-- function doSubmit(evt, id) { evt = (evt) ? evt : ((event) ? event : null); if(evt.keyCode == 13) { document.getElementById(id).focus(); document.getElementById(id).click(); } } function performonload() { document.forms[0].txtUserID.focus(); } function CreateBookmarkLink() { var title = ""; var url = ""; if (window.sidebar) { // Mozilla Firefox Bookmark window.sidebar.addPanel(title, "",""); } else if( window.external ) { // IE Favorite window.external.AddFavorite( url, title); } } //--> </script> </HEAD> <body marginheight="0" marginwidth="0"> <form name="Login" method="post" action="Login.aspx?cID=65118&amp;lng=en-US" id="Login"> <input type="hidden" name="__PageDirty" value="False" /> <input type="hidden" name="__PageDirtyMsg" value="Changes have been made but not saved.\nYour changes will be lost if you continue.\n\nDo you wish to continue?" /> <input type="hidden" name="__EVENTTARGET" value="" /> <input type="hidden" name="__EVENTARGUMENT" value="" /> <input type="hidden" name="__VIEWSTATE" value="+xmSYyN9vqejHui7ZGUIQYcYnPXUwMwcxLXcXJ7C6v10WNR+7tCKJpk0Jm8UtM8/uGQhSDasxyEL/Ch1FuAz0dG+PABtLFXsi82yZ0VALsaAd2/M5i9HVvH6kuNBhQYlZEmjQ77mvK/nWP5N85nDUcoEd6oPBM8PY2qjoKSvIJpsZEZVNQ73hrmKOuqRYiD3rY/dtbVXRkoh8rJMkuDwetEg6aKGCiCviSJvE23yu7P9JM2g9eM9r01o+tixI9LpyyxtRrLqmlkABg/osylnr2w7LnUoc9vlzKYOpW4gfDK39vPG8NxYyTg8NXBbB9C2AxVY2JQux+hNyrIctEWtnK7wMt4eXRiESEd/mFXjCvRqEKKkmteX8MswlZ46OzGSf6UxNRlEj5sI7lS4R9nbVWnUllqwsaETxsQlcs2WXla51Ok6YxlAIoI2u8NK+K7vDYZEf1U0yo8KefgD15vPvBs7iMxY/BvWVLWoAbsAg1g4FuJ+zJOx2kyMsMxaAMKJImnf6ltuJfWjeqGBbNrLFg==" /> <script language="javascript" type="text/javascript"> <!-- function __doPostBack(eventTarget, eventArgument) { var theform; if (window.navigator.appName.toLowerCase().indexOf("microsoft") > -1) { theform = document.Login; } else { theform = document.forms["Login"]; } theform.__EVENTTARGET.value = eventTarget.split("$").join(":"); theform.__EVENTARGUMENT.value = eventArgument; theform.submit(); } // --> </script> <script language="Javascript"> var objAboutWindow; function OpenAboutWindow() { if(objAboutWindow) objAboutwindow.close(); objAboutWindow = window.open('/ezLaborManagerNet/Misc/About.aspx?lng=en-US&cID=65118','ezLaborManagerOptions','width=550,height=575,resizable=1,status=1,scrollbars=1'); objAboutwindow.focus(); return void(0); } </Script> <script language="Javascript"> var objInfoWindow; function OpenInfoWindow(wndw) { if(wndw != 'p' && wndw != 'l') return; var windowName = ''; var windowLocation = ''; var windowParams = ''; if(wndw == 'p') { windowLocation = '/ezLaborManagerNet/Misc/Privacy.aspx?lng=en-US&cID=65118'; windowName = 'ADPPrivacy'; windowParams = 'width=650,height=700,resizable=1,status=1,scrollbars=1'; } else { windowLocation = '/ezLaborManagerNet/Misc/Legal.aspx?lng=en-US&cID=65118'; windowName = 'ADPLegal'; windowParams = 'width=650,height=700,resizable=1,status=1,scrollbars=1'; } if(objInfoWindow) objInfowindow.close(); objInfoWindow = window.open(windowLocation, windowName, windowParams); objInfowindow.focus(); return void(0); } </Script> <script language="Javascript"> <!-- function OpenSuggestionWindow() { var winParam = "width=750,height=700,resizable=1,status=1,scrollbars=1"; var objWin = window.open("/ezLaborManagerNet/Misc/Suggestions.aspx?lng=en-US&cID=65118&fID=", "suggestion", winParam); objWin.focus(); } //--> </script> <table height="100%" cellSpacing="0" cellPadding="0" width="100%" border="0"> <tr> <td vAlign="top" height="100%"> <table height="100%" cellSpacing="0" cellPadding="0" width="100%" border="0"> <tr> <td height="90"> <table id="Table1" height="100%" cellSpacing="0" cellPadding="0" width="100%" border="0"> <tr> <td class="Banner" width="100%"> <table id="Table2" cellSpacing="0" cellPadding="0" width="100%" border="0"> <tr> <td vAlign="middle"> <a target="_blank" href="http://www.adp.com"> <img id="LogoBanner1_imgClientLogo" key="ADPLogo.jpg" src="/ezLaborManagerNet/images/en-US/ADPLogo.jpg" alt="" border="0" /> </a> </a> </td> <td><IMG height="1" src="/ezLaborManagerNet/images/spacer.gif" width="50"></td> <td vAlign="middle" width="100%"> <table id="Table3" cellSpacing="0" cellPadding="0" width="100%" border="0"> <tr> <td class="CompanyName2" vAlign="top" noWrap><span id="LogoBanner1_lblCompanyName">FSKS</span></td> </tr> <tr> <td vAlign="top" width="100" bgColor="red"> <IMG height="1" src="/ezLaborManagerNet/images/spacer.gif" width="1"></td> </tr> <tr> <td class="WelcomeText">&nbsp;<span class="NameText"><span id="LogoBanner1_lblName"></span></span></td> </tr> </table> </td> </tr> </table> </td> </tr> <tr> <td bgcolor="black" height="1"><IMG height="1" src="/ezLaborManagerNet/images/spacer.gif" width="1"></td> </tr> <tr> <td align="right"><img id="LogoBanner1_imgProductLogo" key="ezLMLogoWhite.gif" src="/ezLaborManagerNet/images/en-US/ezLMLogoWhite.gif" alt="" border="0" /></td> </tr> <tr id="br2"> <td> <table cellSpacing="0" cellPadding="0" width="100%" border="0"> <tr> <td><span id="LogoBanner1_tabControl"></span></td> </tr> </table> </td> </tr> </table> <script language="javascript" type="text/javascript"> aryRestrictedTables[aryRestrictedTables.length] = ["Table1", 0]; var strHelpPageMode = ""; </script> </td> </tr> <tr> <td vAlign="top" align="center" height="100%"> <table cellSpacing="0" cellPadding="0" width="95%" border="0"> <tr> <td style="PADDING-TOP: 1px" vAlign="top" width="40%"> <table cellSpacing="0" cellPadding="2" width="100%" border="0"> <tr> <td colSpan="2"> <!-- Section Header Start --> <table class="SectionHeader" cellSpacing="0" cellPadding="0" border="0"> <tr> <td class="SectionHeader-LeftCell"><span id="lblLogin" key="lbl_Login">Login</span></td> </tr> </table> </td> </tr> <TR> <TD colSpan="2"></TD> </TR> <tr> <td style="PADDING-RIGHT: 15px" vAlign="top"> <div class="ThinRedBox"> <table cellSpacing="0" cellPadding="2" width="100%" border="0"> <tr> <td class="LanguageTitle" align="center"><span id="lblLanguage" key="lbl_Language">Language</span></td> </tr> <TR> <TD noWrap><table cellspacing="0" cellpadding="2" border="0" style="border-width:0px;border-collapse:collapse;"> <tr> <td nowrap="nowrap"><a class="AppLink" href="/ezLaborManagerNet/Login/Login.aspx?cID=65118&amp;lng=en-US">English (United States)</a></td> </tr><tr> <td nowrap="nowrap"><a class="AppLink" href="/ezLaborManagerNet/Login/Login.aspx?cID=65118&amp;lng=en-CA">English (Canada)</a></td> </tr><tr> <td nowrap="nowrap"><a class="AppLink" href="/ezLaborManagerNet/Login/Login.aspx?cID=65118&amp;lng=fr-CA">français (Canada)</a></td> </tr><tr> <td nowrap="nowrap"><a class="AppLink" href="/ezLaborManagerNet/Login/Login.aspx?cID=65118&amp;lng=en-GB">English (United Kingdom)</a></td> </tr> </table></TD> </TR> </table> </div> </td> <td width="100%"> <table cellSpacing="0" cellPadding="0" border="0"> <tr> <td noWrap width="15%"><span id="lblClient" class="BoldLabel" key="lbl_ClientName">Client Name</span></td> <td noWrap width="85%">&nbsp;&nbsp; <a id="btnChangeClient" key="hyp_ChangeClient" onclick="event.cancelBubble=true;" href="javascript:__doPostBack('btnChangeClient','')">Change Client</a></td> </tr> <tr> <td colSpan="2"><span id="lblClientName" class="ClientNameLabel">FSKS</span></td> </tr> <tr> <td colSpan="2">&nbsp;</td> </tr> <tr> <td style="PADDING-BOTTOM: 4px" colSpan="2"><span id="lblUserID" class="BoldLabel" key="lbl_UserID">User ID</span></td> </tr> <tr> <td style="PADDING-BOTTOM: 4px" colSpan="2"><input name="txtUserID" type="text" maxlength="25" id="txtUserID" autocomplete="false" onkeydown="doSubmit(event,'btnLogin_active');" /></td> </tr> <tr> <td style="PADDING-BOTTOM: 4px" colSpan="2"><span id="lblPassword" class="BoldLabel" key="lbl_Password">Password</span></td> </tr> <tr> <td colSpan="2"><input name="txtPassword" type="password" maxlength="25" id="txtPassword" onkeydown="doSubmit(event,'btnLogin_active');" /></td> </tr> <TR> <TD colSpan="2">&nbsp;</TD> </TR> <TR> <TD colSpan="2"><span id="btnLogin_disabled" class="disabledButton" style="display:none;"><span class="btnLtDis">&nbsp;</span><span class="btnMdDis">Login</span><span class="btnRtDis">&nbsp;</span></span><a id="btnLogin_active" href="javascript:__doPostBack('btnLogin','')" onclick="disableButton('btnLogin', true);" class="btnLink" style="display:inline;"><span class="btnLtAct">&nbsp;</span><span class="btnMdAct">Login</span><span class="btnRtAct">&nbsp;</span></a><span id="btnLogin" key="btn_Login"></span></TD> </TR> </table> </td> </tr> <TR> <TD align="center" colSpan="2">&nbsp;</TD> </TR> </table> </td> <td>&nbsp;</td> <td vAlign="top" width="60%"> <table cellspacing="2" width="100%"> <tr> <td> <!-- Section Header Start --> <table class="SectionHeader" cellSpacing="0" cellPadding="0" border="0"> <tr> <td class="SectionHeader-LeftCell"> <span id="PortalMessageControl1_lblMessages" key="lbl_Messages">Messages</span></td> <td class="SectionHeader-RightCell">&nbsp;</td> </tr> </table> </td> </tr> <tr> <td> <div class="InfoText">No messages</div> </td> </tr> </table> </td> </tr> </table> </td> </tr> </table> </td> </tr> <tr> <td height="25"> <table id="Table22" height="36" cellSpacing="0" cellPadding="0" width="100%" border="0"> <tr class="Footer-AppInfoRow" height="16"> <td align="center" nowrap colspan="2">10/26/2009 08:49:18 AM&nbsp;v11.016.005.04 - xb&lt;;9g:9e,[[{' ezlmportal4.adp.com - undefined DPID - sA&lt;yuCnwIA]</td> </tr> <tr height="20"> <td class="FooterText" noWrap width="99%">Copyright ©2000-2009 Automatic Data Processing, Inc. All Rights Reserved.&nbsp;</td> <td class="FooterBgColor" noWrap width="1%"> <span> <a id="FooterControl1_hypAboutArrow" onclick="event.cancelBubble=true;" href="javascript:OpenAboutWindow();"><img src="/ezLaborManagerNet/images/footer_arrow.gif" alt="" border="0" /></a>&nbsp;<a id="FooterControl1_hypAbout" class="FooterLink" key="hyp_About" onclick="event.cancelBubble=true;" href="javascript:OpenAboutWindow();">ABOUT</a>&nbsp;&nbsp;&nbsp;</span> <span> <a id="FooterControl1_hypPrivacyArrow" onclick="event.cancelBubble=true;" href="javascript:OpenInfoWindow('p');"><img src="/ezLaborManagerNet/images/footer_arrow.gif" alt="" border="0" /></a>&nbsp;<a id="FooterControl1_hypPrivacy" class="FooterLink" key="hyp_Privacy" onclick="event.cancelBubble=true;" href="javascript:OpenInfoWindow('p');">PRIVACY</a>&nbsp;&nbsp;&nbsp;</span> <span> <a id="FooterControl1_hypLegalArrow" onclick="event.cancelBubble=true;" href="javascript:OpenInfoWindow('l');"><img src="/ezLaborManagerNet/images/footer_arrow.gif" alt="" border="0" /></a>&nbsp;<a id="FooterControl1_hypLegal" class="FooterLink" key="hyp_Legal" onclick="event.cancelBubble=true;" href="javascript:OpenInfoWindow('l');">LEGAL</a>&nbsp;&nbsp;</span> </td> </tr> </table> </td> </tr> </table> </form> </FORM> <script language="javascript" type="text/javascript"> performonload(); </script> </body> </HTML>
  5. I have a similar problem - it works using the _IEFormGetObjByName() and _IEFormElementSetValue() on most webpages , but certain javascript pages with frames and/or tables it doesn't work at all. There must be other functions within IE.au3 that enable you to do this
  6. This is great - the one thing is that there are a few clicks on the page that I wanted to click on , and _IELinkClickByText worked for some of them, but not all. The ones that dont work seem to be Javascript items - Is there any way to search for that text, and click that?? When I hover over it, I can see the where it wants to go (which appears to be a URL) but it doesnt click using that function. Thank you all so much for your help!
  7. Hello - I have a very simple AutoIT gui that allows me to launch a webpage by concatenating variables and creating a url. The trouble is, I always get the "Continue to this website (not recommended) " message. Is there any easy way to click certain links , and for that matter, click on any text on a given screen?? This would be incredibly helpful! Thanks!!
  8. As it turns out, I got it working - with the help of another autoit expert ! My problem was that I was missing the -1 at the end, which is apparently required for Exchange servers! ! It works great - thanks for the help !! The correct syntax for me is : $Response = _INetSmtpMail ($s_SmtpServer, $s_FromName, $s_FromAddress, $s_ToAddress, $s_Subject, $as_Body, "EHLO" & @ComputerName, -1) ; , $trace)
  9. I'm having some trouble trying to send email through an exchange server using the INetSmtpMail command- The error I get is : "Error code: 2 Rc: The message could not be sent to the SMTP server. The transport error code was 0x80040217. the server response was not available" . The code that I'm testing it with is right out of the help file. I even tried using the trace mode , but that didn't seem to help either. Does anyone have any info on why this may be happening and/or what the resolution is ?? I'm pulling my hair out! Any help or information would be really appreciated!
  10. I am having the exact same problem where I'm using INetSmtpMail with a valid SMTP server , and I'm also getting error code 50 . I could not find any other threads related to this error (or a fix for it) Could someone point me to the correct thread to find a fix for this?? Any help would be greatly appreciated! !
  11. Does anyone know any easy way to automate importing a .csv file into the outlook calendar? Any help would be greatly appreciated. thanks!
  12. I have a simple gui that I'm trying to implement with a (non gui) application. It works perfectly, except it's very easy for the user to click somewhere other than the gui and make it minimize. I'm not as concerned with the user being able to move the window as I am making sure they click one of the buttons (or close it) I messed around with GUISetState, to no avail. The example below will run, but as soon as I click somewhere other than the gui, it gets minimized to the task bar! #include <GUIConstants.au3> GUICreate ("My GUI") ; start the definition GUISetState () ; will display an empty dialog box ; Run the GUI until the dialog is closed While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then ExitLoop Wend
  13. Thank you both for your help - after a little research the solution to my problem was _GUICtrlComboAutoComplete - this does exactly what I want... to quickly search through the data in a combo box!! thank you!!!
  14. I have a combo box in my gui, using GuiCtrlCreateCombo and have populated it using GUICtrlSetData. Is there any way to be able to quickly search through the list, by typing one of the entries, and having it find my match? I looked through the help file and could not find the relevant command. Any help would be greatly appreciated!
  15. Yes, I simply want to update the progress bar in a loop. The way it is now, I can execute it with two $CmdLine variables , first being the starting record, and second being the total records. (as the starting record increments by one, the progress gets closer to finished) The trouble is I cant figure a way to go in and out of the script, without re-executing it and passing new variables to it. As a result, it actually works, it just sits there and flickers . This program is really cool...I just may be biting off more than I can chew right now.
×
×
  • Create New...