Sign in to follow this  
Followers 0
Misuna

Google search automate

4 posts in this topic

#1 ·  Posted (edited)

Hi

I have this script, where after clicking on a button IE starts and makes a Google search. Now after the search the ARK/Intel side pops up (always). Is there any way, that my button can select the site automaticly?

$Output = processor Name and manufacturer

Func google()
    Run("C:\Programme\Internet Explorer\iexplore.exe http://www.google.dk/#q=" & _INetExplorerCapable($output) & " graphics")
EndFunc
Edited by Misuna

Share this post


Link to post
Share on other sites



If you are looking to automate IE, you should check out the _IE* functions.

Share this post


Link to post
Share on other sites

I've tried this out, but it only opens the Google site...

#include <IE.au3>

Local $oIE = _IECreate("http://www.google.de/#q=2620m")

Local $sMyString = "ARK | Intel®"
Local $oLinks = _IELinkGetCollection($oIE)
For $oLink In $oLinks
    Local $sLinkText = _IEPropertyGet($oLink, "innerText")
    If StringInStr($sLinkText, $sMyString) Then
        _IEAction($oLink, "click")
        ExitLoop
    EndIf
Next

Share this post


Link to post
Share on other sites

Try:

Local $oIE = _IECreate("https://www.google.de/search?q=2620m")

in place of the line in your code. You could also limit the return results by adding "site:ark.intel.com" to your search criteria.

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