Sign in to follow this  
Followers 0
logikal16

Form manipulation error...

5 posts in this topic

For some reason this code isn't working...

AutoIT claims that the requested action with this object has failed.

It has something to do with $IE.document.cplogin.user.value = $user but from viewing the source at that $url, everything looks good. Anybody know what's wrong?

Func goMIX ($user, $pass)

$url = "http://bert.wvu.edu/cp/home/loginf"

$IE = ObjCreate ("InternetExplorer.Application")

$IE.Visible = 1

$IE.Navigate ($url)

While $IE.busy

Sleep (50)

Wend

$IE.document.cplogin.user.value = $user

$IE.document.cplogin.pass.value = $pass

$IE.document.cplogin.submit ()

EndFunc

Share this post


Link to post
Share on other sites



anybody?

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Okay. I havent messed with much COM yet, but first off the website you are dealing with has frames. I dont see where you are navigating through the frames to get to the proper page. One way to get around that would be to enter a more direct URL. I will see if I can pull one out for you.

EDIT:

Try the following...

Func goMIX ($user, $pass)
    $url = "https://bert.wvu.edu/cp/home/displaylogin"
    $IE = ObjCreate ("InternetExplorer.Application")
    $IE.Visible = 1
    $IE.Navigate ($url)

    While $IE.busy
        Sleep (50)
    Wend

    $IE.document.cplogin.user.value = $user
    $IE.document.cplogin.pass.value = $pass
    $IE.document.cplogin.submit ()
EndFunc

I changed the $url to be of the page that will actually let you log in. The other page just had frames that included the page you really wanted to get to.

JS

Edited by JSThePatriot

AutoIt Links

File-String Hash Plugin Updated! 04-02-2008 Plugins have been discontinued. I just found out.

ComputerGetInfo UDF's Updated! 11-23-2006

External Links

Vortex Revolutions Engineer / Inventor (Web, Desktop, and Mobile Applications, Hardware Gizmos, Consulting, and more)

Share this post


Link to post
Share on other sites

cool, that worked! thanks ;-)

Share this post


Link to post
Share on other sites

Not a problem. I am glad to have been of assistance.

JS


AutoIt Links

File-String Hash Plugin Updated! 04-02-2008 Plugins have been discontinued. I just found out.

ComputerGetInfo UDF's Updated! 11-23-2006

External Links

Vortex Revolutions Engineer / Inventor (Web, Desktop, and Mobile Applications, Hardware Gizmos, Consulting, and more)

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
Sign in to follow this  
Followers 0