pcarlow Posted April 2, 2006 Share Posted April 2, 2006 I made my first script which opens intenet explorer, types in a search query to Google and hits return which then gives me the search results. the next thing i want to do is click on (or select) the first search result link on the page (i don't want to click on any ads). Could someone please provide some help in doing this? Link to comment Share on other sites More sharing options...
greenmachine Posted April 2, 2006 Share Posted April 2, 2006 Use IE.au3: http://www.autoitscript.com/forum/index.php?showtopic=13398Look under _IEClickLinkByText, or _IEClickLinkByIndex. Link to comment Share on other sites More sharing options...
pcarlow Posted April 2, 2006 Author Share Posted April 2, 2006 Thanks for the quick response. I downloaded the file and renamed it IE.au3. I added: #include <IE.au3> to my script but I'm getting an error: Line 776 Unable to parse line. Link to comment Share on other sites More sharing options...
greenmachine Posted April 2, 2006 Share Posted April 2, 2006 (edited) What's line 776...?Oh, you have to have beta too: http://www.autoitscript.com/autoit3/files/beta/autoit/ Edited April 2, 2006 by greenmachine Link to comment Share on other sites More sharing options...
pcarlow Posted April 2, 2006 Author Share Posted April 2, 2006 (edited) Ok, got beta working now. Here's what I have so far: #include <IE.au3> $o_IE = _IECreate () _IENavigate ($o_IE, "http://www.google.com") WinWaitActive("Google - Microsoft Internet Explorer") Send('test') Send("{ENTER}") WinWaitActive('test - Google Search') _IEClickLinkByIndex ($o_IE, 18) I want to be able to click on all 10 search result links on the page. The problem with the IEClickLinkByIndex function is that, i never know what the index for links 1-10 will be. Because of advertisements and other stuff it can be different every time. Any suggestions? Edited April 2, 2006 by pcarlow 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