Sign in to follow this  
Followers 0
Sneakpeek

[ie.au3] trouble pressing a button

5 posts in this topic

#1 ·  Posted (edited)

Hello. I am trying to make my program press the Login button on http://www.origin.com/us/change-id

The source for this button is:

<a class="btn btn-3" href="#" id="login-link"></a>

I have been searching the forums for hours, trying tons of different solutions posted in other threads.

_IEGetObjById($oID, "login-link") etc, nothing works.

Anyone who can help me out here? Im really frustrated having spent so much time on this damn button.

Thanks in advance.

Edited by Sneakpeek

Share this post


Link to post
Share on other sites



This worked for me. IE ver. 8, AutoIt ver. 3.3.4.0.

#include <IE.au3>
$oIE = _IECreate("http://www.origin.com/us/change-id")
_IELinkClickByText ($oIE, "Login")
1 person likes this

- Bruce /*somdcomputerguy */  If you change the way you look at things, the things you look at change.

Share this post


Link to post
Share on other sites

This worked for me. IE ver. 8, AutoIt ver. 3.3.4.0.

#include <IE.au3>
$oIE = _IECreate("http://www.origin.com/us/change-id")
_IELinkClickByText ($oIE, "Login")

I had already tried this and it didn't work, but since you mentioned IE8 I downgraded my IE9 installation to IE8 and now it works for some reason.

I quess ie.au3 doesn't support IE9?

Thanks though!

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Try with beta AutoIt, that works better with IE9 I think.

Edited by somdcomputerguy

- Bruce /*somdcomputerguy */  If you change the way you look at things, the things you look at change.

Share this post


Link to post
Share on other sites

Hello again. Encountered a new problem.

The login button doesn't actually appear before a loading animation is played.

I use _IECreate("http://www.origin.com/us/change-id", 0, 1, 1) which makes sure the page is loaded before the program continues.

It doesn't wait for the loading animation on the site to finish however.

My current "dirty fix" is to add a Sleep() for a few secs but I'd like more fail-proof way if possible.

Any ideas? Thanks in advance.

Try with beta AutoIt, that works better with IE9 I think.

I am using the beta actually. =/

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