alfa Posted May 3, 2011 Share Posted May 3, 2011 Hello everyone, I am totaly noob to this. So i have a very basic question. #include <IE.au3> $oIE = _IE_Example ("basic") _IELinkClickByText ($oIE, "user forum") This is from the help file and works great. But if i add _IELinkClickByText ($oIE, "User Moderation") it doesnt click that text. and there is this warning, --> IE.au3 V2.4-0 Warning from function _IELinkClickByText, $_IEStatus_NoMatch What am i doing wrong ? Thanks in advance. Link to comment Share on other sites More sharing options...
Jayson Posted May 3, 2011 Share Posted May 3, 2011 If you're using the web page provided by that example well there's no "User Moderation" to click on. Link to comment Share on other sites More sharing options...
alfa Posted May 3, 2011 Author Share Posted May 3, 2011 OK lets say i want it to clik User moderation After it clicks User Forum Link to comment Share on other sites More sharing options...
wakillon Posted May 3, 2011 Share Posted May 3, 2011 Try like this #include <IE.au3> $oIE = _IE_Example ("basic") _IELinkClickByText ($oIE, "user forum") _IELinkClickByText ( $oIE, "User Moderation " )you miss the space after User Moderation ! AutoIt 3.3.14.2 X86 - SciTE 3.6.0 - WIN 8.1 X64 - Other Example Scripts Link to comment Share on other sites More sharing options...
Jayson Posted May 3, 2011 Share Posted May 3, 2011 (edited) Like this :#include <IE.au3> $oIE = _IE_Example("basic") _IELinkClickByText($oIE, "user forum") _IELoadWait($oIE) _IELinkClickByText($oIE, "User Moderation ")Edit : Wakillon was faster than me Edited May 3, 2011 by Jayson Link to comment Share on other sites More sharing options...
wakillon Posted May 3, 2011 Share Posted May 3, 2011 (edited) alfathe next time you want use _IELinkClickByText function and it doesn't workDo like this#include <IE.au3> $oIE = _IE_Example ("basic") _IELinkClickByText ($oIE, "user forum") $oLinks = _IELinkGetCollection ( $oIE) For $oLink In $oLinks If StringInStr ( $oLink.innertext, "User Moderation" ) <> 0 Then ConsoleWrite ( "->--- Link innertext ->" & $oLink.innertext & '<- ' & @Crlf ) _IELinkClickByText ( $oIE, "User Moderation " ) ExitLoop EndIf Next->--- Link innertext ->User Moderation <- and you will see exact text ! Edited May 3, 2011 by wakillon AutoIt 3.3.14.2 X86 - SciTE 3.6.0 - WIN 8.1 X64 - Other Example Scripts Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now