Sean78 0 Posted March 28, 2011 I had been using a script for over a year that had always worked flawlessy, until today. This script performs an automated login for our technicians, well the web address changed and I was easily able to correct that, there have been other changes to the new site apparently as now the command to submit or click on the Sign In button on the site doesn't work. The site is: https://connect.williams-int.com/customers/login.asp It loads and puts in the username and password just fine, it won't click the Sign In button now. Can someone give me some help on this please. I know I must be close. Thanks again guys for any help, this forum rocks!test3.au3 Share this post Link to post Share on other sites
nitekram 68 Posted March 28, 2011 After you send the password - can you just use the Send() function to send the ENTER key? Not sure if that will help with everything, but I went to the site and the ENTER key works, just not the ID/PASSWORD combo, but I am sure that you have that info. 2¢All by me:"Sometimes you have to go back to where you started, to get to where you want to go." "Everybody catches up with everyone, eventually" "As you teach others, you are really teaching yourself." From my dad "Do not worry about yesterday, as the only thing that you can control is tomorrow." WIKI | Tabs; | Arrays; | Strings | Wiki Arrays | How to ask a Question | Forum Search | FAQ | Tutorials | Original FAQ | ONLINE HELP | UDF's Wiki | AutoIt PDF AutoIt Snippets | Multple Guis | Interrupting a running function | Another Send StringRegExp | StringRegExp Help | RegEXTester | REG TUTOR | Reg TUTOT 2AutoItSetOption | Macros | AutoIt Snippets | Wrapper | Autoit Docs SCITE | SciteJump | BB | MyTopics | Programming | UDFs | AutoIt 123 | UDFs Form | UDFLearning to script | Tutorials | Documentation | IE.AU3 | Games? | FreeSoftware | Path_Online | Core Language Programming TipsExcel ChangesControlHover.UDFGDI_PlusDraw_On_ScreenGDI BasicsGDI_More_BasicsGDI RotateGDI GraphGDI CheckExistingItemsGDI TrajectoryReplace $ghGDIPDll with $__g_hGDIPDllDLL 101?Array via ObjectGDI SwimlaneGDI Plus French 101 SiteGDI Examples UEZGDI Basic ClockGDI DetectionTernary operator Share this post Link to post Share on other sites
bogQ 91 Posted March 28, 2011 is it working like this? #include <IE.au3> $oIE = _IECreate ("https://connect.williams-int.com/customers/login.asp") $oForm = _IEFormGetObjByName ($oIE, "LoginFrm") _IEFormElementSetValue (_IEFormElementGetObjByName ($oForm, "userid"), "MyName") _IEFormElementSetValue (_IEFormElementGetObjByName ($oForm, "password"), "MyPass") _IEFormSubmit ($oForm, 0) _IELoadWait($oIE) TCP server and client - Learning about TCP servers and clients connectionAu3 oIrrlicht - Irrlicht projectAu3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related)There are those that believe that the perfect heist lies in the preparation.Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost. Share this post Link to post Share on other sites
Sean78 0 Posted March 28, 2011 is it working like this? #include <IE.au3> $oIE = _IECreate ("https://connect.williams-int.com/customers/login.asp") $oForm = _IEFormGetObjByName ($oIE, "LoginFrm") _IEFormElementSetValue (_IEFormElementGetObjByName ($oForm, "userid"), "MyName") _IEFormElementSetValue (_IEFormElementGetObjByName ($oForm, "password"), "MyPass") _IEFormSubmit ($oForm, 0) _IELoadWait($oIE) It does the same thing as my current script, it will fill the information but not utilize the sign in button. Share this post Link to post Share on other sites
Sean78 0 Posted March 28, 2011 After you send the password - can you just use the Send() function to send the ENTER key?Not sure if that will help with everything, but I went to the site and the ENTER key works, just not the ID/PASSWORD combo, but I am sure that you have that info.Not sure how the Send() function works, or is used. I will need to research it to figure out the syntax to make it work. Share this post Link to post Share on other sites
bogQ 91 Posted March 28, 2011 well thats strange, our comps have diffrent results, i`m getting "User ID not setup as an owner. " on the site as reaction on my post script, form your script i`m not getting anything more than fill the information part and--> IE.au3 V2.4-0 Warning from function _IEAttach, $_IEStatus_NoMatch--> IE.au3 V2.4-0 Error from function _IEAction, $_IEStatus_InvalidDataTypeon scite TCP server and client - Learning about TCP servers and clients connectionAu3 oIrrlicht - Irrlicht projectAu3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related)There are those that believe that the perfect heist lies in the preparation.Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost. Share this post Link to post Share on other sites
Sean78 0 Posted March 28, 2011 Not sure how the Send() function works, or is used. I will need to research it to figure out the syntax to make it work.Okay changed it to this:#include <IE.au3>$oIE = _IECreate ("https://connect.williams-int.com/customers/login.asp")$oForm = _IEFormGetObjByName ($oIE, "LoginFrm")_IEFormElementSetValue (_IEFormElementGetObjByName ($oForm, "userid"), "User")_IEFormElementSetValue (_IEFormElementGetObjByName ($oForm, "password"), "Pass")Send("{ENTER}") _IELoadWait($oIE)Still the same problem, it will open the site, enter the user name and password but doesn't hit the "sign in". Am I using the Send() command wrong or will it simply not work. Share this post Link to post Share on other sites
Tvern 11 Posted March 28, 2011 Eh works for me. Have you tried BogQ's script like this? #include <IE.au3> Global $oIE, $oForm, $oInputName, $oInputPass $oIE = _IECreate ("https://connect.williams-int.com/customers/login.asp") $oForm = _IEFormGetObjByName ($oIE, "LoginFrm") $oInputName = _IEFormElementGetObjByName ($oForm, "userid") _IEFormElementSetValue ($oInputName, "MyName") $oInputPass = _IEFormElementGetObjByName ($oForm, "password") _IEFormElementSetValue ($oInputPass, "MyPass") _IEFormSubmit($oForm) Only real change is using object variables, as they can't be passed directly. (and just made _IEFormSubmit() wait, instead of the extra line) When running that I'm getting the "User ID not setup as an owner." message indicating that it attempted to log in. Share this post Link to post Share on other sites
Sean78 0 Posted March 28, 2011 Eh works for me. Have you tried BogQ's script like this? #include <IE.au3> Global $oIE, $oForm, $oInputName, $oInputPass $oIE = _IECreate ("https://connect.williams-int.com/customers/login.asp") $oForm = _IEFormGetObjByName ($oIE, "LoginFrm") $oInputName = _IEFormElementGetObjByName ($oForm, "userid") _IEFormElementSetValue ($oInputName, "MyName") $oInputPass = _IEFormElementGetObjByName ($oForm, "password") _IEFormElementSetValue ($oInputPass, "MyPass") _IEFormSubmit($oForm) Only real change is using object variables, as they can't be passed directly. (and just made _IEFormSubmit() wait, instead of the extra line) When running that I'm getting the "User ID not setup as an owner." message indicating that it attempted to log in. Well it is working now, thanks for all the help gang. I can't get it to automatically login on my laptop, however the floor machines that need to use it are having no issues. Might be the IE version difference or something. Share this post Link to post Share on other sites