Misuna Posted March 26, 2014 Posted March 26, 2014 (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 March 26, 2014 by Misuna
Danp2 Posted March 26, 2014 Posted March 26, 2014 If you are looking to automate IE, you should check out the _IE* functions. Latest Webdriver UDF Release Webdriver Wiki FAQs
Misuna Posted March 26, 2014 Author Posted March 26, 2014 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
Danp2 Posted March 26, 2014 Posted March 26, 2014 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. Latest Webdriver UDF Release Webdriver Wiki FAQs
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