Jump to content

I am Almost There! ARRGH


Recommended Posts

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

Link to comment
Share on other sites

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.

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

 

WindowsError.gif

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 2

AutoItSetOption | Macros | AutoIt Snippets | Wrapper | Autoit  Docs

SCITE | SciteJump | BB | MyTopics | Programming | UDFs | AutoIt 123 | UDFs Form | UDF

Learning to script | Tutorials | Documentation | IE.AU3 | Games? | FreeSoftware | Path_Online | Core Language

Programming Tips

Excel Changes

ControlHover.UDF

GDI_Plus

Draw_On_Screen

GDI Basics

GDI_More_Basics

GDI Rotate

GDI Graph

GDI  CheckExistingItems

GDI Trajectory

Replace $ghGDIPDll with $__g_hGDIPDll

DLL 101?

Array via Object

GDI Swimlane

GDI Plus French 101 Site

GDI Examples UEZ

GDI Basic Clock

GDI Detection

Ternary operator

Link to comment
Share on other sites

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 connection
Au3 oIrrlicht - Irrlicht project
Au3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related)



460px-Thief-4-temp-banner.jpg
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.

 
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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_InvalidDataType

on scite

TCP server and client - Learning about TCP servers and clients connection
Au3 oIrrlicht - Irrlicht project
Au3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related)



460px-Thief-4-temp-banner.jpg
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.

 
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...