Jump to content

Sean78

Members
  • Posts

    12
  • Joined

  • Last visited

Sean78's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. 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.
  2. 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.
  3. 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.
  4. It does the same thing as my current script, it will fill the information but not utilize the sign in button.
  5. 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
  6. Sorry Stefan, I was just amazed how simple that fix was, I do not know what ConsoleWrite is, but I will now go figure that out. Script had been working since October 2009 using 12, but I guess the company changed their website.....go figure, what a silly change to make. You sir are a credit to AutoIT forums!!!
  7. So changing it from 12 to 16 fixes it? How did you figure that out exactly???
  8. Okay in a rush I just double clicked the script file (non-converted to .exe) it ran, and now I am seeing the following error come up: Line 30 $oUser.value=$sUser $oUser^ERROR Error: Variable must be of type "Object". Still not sure what that means....
  9. Stefan thanks for the fast response, my final script actually did have the correct url in it. Here is the actual script that was working until Monday: #cs ---------------------------------------------------------------------------- AutoIt Version: 3.3.0.0 Author: myName Script Function: Template AutoIt script. #ce ---------------------------------------------------------------------------- ; Script Start - Add your code below here #include <IE.au3> Local $oUser, $oPass, $oSubmit Local $sUser = "test" Local $sPass = "test" Local $url = "https://secure.williams-int.com/customers/login.asp" Local $oIE = _IECreate($url, 1) _IELoadWait($oIE) $oInputs = _IETagNameGetCollection($oIE, "input") for $oInput in $oInputs if $oInput.type = "text" And $oInput.name = "userid" And $oInput.size = "12" Then $oUser = $oInput if $oInput.type = "password" And $oInput.name = "password" And $oInput.size = "12" Then $oPass = $oInput if $oInput.type = "submit" And $oInput.value = " SIGN IN " Then $oSubmit = $oInput if isObj($oUser) And isObj($oPass) And isObj($oSubmit) then exitloop Next $oUser.value = $sUser $oPass.value = $sPass _IEAction($oSubmit, "click") _IELoadWait($oIE) It is really annoying me trying to figure out what this error is!!
  10. Hello All, I need some urgent help I have five locations that use a script that w/ the help of you fine people I was able to compile to automatically login to a website for our users. Well all of the sudden it has stopped working. The following Error Message appears: AutoIT Error Line -1: Error: Variable must be of type "object". I am not a good script writer and I am sure something has changed on the site for this error to occur but I cannot figure out how to fix this. I believe the correct script that was working was this: #include Local $oUser, $oPass, $oSubmit Local $sUser = "test" Local $sPass = "test" Local $url = "https://secure.williams-int.com/.asp" Local $oIE = _IECreate($url, 1) _IELoadWait($oIE) $oInputs = _IETagNameGetCollection($oIE, "input") for $oInput in $oInputs if $oInput.type = "text" And $oInput.name = "userid" And $oInput.size = "12" Then $oUser = $oInput if $oInput.type = "password" And $oInput.name = "password" And $oInput.size = "12" Then $oPass = $oInput if $oInput.type = "submit" And $oInput.value = " SIGN IN " Then $oSubmit = $oInput if isObj($oUser) And isObj($oPass) And isObj($oSubmit) then exitloop Next $oUser.value = $sUser $oPass.value = $sPass _IEAction($oSubmit, "click") _IELoadWait($oIE) If anyone can help me on this it would be much appreciated as I have been looking at it off and on for a couple days now and there must be some simple change that is needed but I don't know what it is. PLEASE HELP!
  11. THANK YOU AME1011!!!!!!!!!!! OH MY GOD, WORKS PERFECT, DEFINITELY A HUGE THANK YOU!!!
  12. Hello everyone, first let me introduce myself...I am Sean and a NEEEWWWWW AutoIT user. I have a task to complete for work in which we go to a specific website and login, we only have one user id and password, that is why we mainly want it scripted. I have been staring and reading and trying for hours now, and haven't made much progress other than getting the site up. By now you know programming is not my strong suit. I REALLY need you guys help making this work please. Here is what I have: $my_url = "https://secure.williams-int.com/customers/login.asp" ShellExecute ( "C:\Program Files\Internet Explorer\iexplore.exe", $my_url ) $o_login = _IEFormElementGetObjByName ($o_form, "login") $o_password = _IEFormElementGetObjByName ($o_form, "passwd") $o_signin = _IEFormElementGetObjByName ($o_form, "Sign In") $username = "test" $password = "test" _IEFormElementSetValue ($o_login, $username) _IEFormElementSetValue ($o_password, $password) _IEAction ($o_signin, "click") The "test" was put in intentionally to just test the script I will replace w/ the actual login criteria later. I encourage anyone willing to help to visit the site listed at the top of my script, as I don't think the login/password fields I have are done correctly, however I have tried several variations. Please help guys....I am visibly frustrated (and my wife agrees)
×
×
  • Create New...