Sneakpeek 0 Posted December 1, 2011 (edited) Hello. I am trying to make my program press the Login button on http://www.origin.com/us/change-idThe 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 December 1, 2011 by Sneakpeek Share this post Link to post Share on other sites
somdcomputerguy 103 Posted December 1, 2011 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 ThaReverand reacted to 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
Sneakpeek 0 Posted December 1, 2011 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
somdcomputerguy 103 Posted December 1, 2011 (edited) Try with beta AutoIt, that works better with IE9 I think. Edited December 1, 2011 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
Sneakpeek 0 Posted December 1, 2011 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