Jump to content
Sign in to follow this  
Misuna

Google search automate

Recommended Posts

Misuna

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
Misuna

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

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.