Sign in to follow this  
Followers 0
Astormooke

ta

3 posts in this topic

#include <IE.au3>

HotKeySet("`", "topic")

_IEErrorHandlerRegister()

_IEErrorNotify(0)

While 1

Sleep(100)

WEnd

Func topic()

$oIE = _IECreate("www.google.com")

$oForm = _IEFormGetCollection($oIE, 0)

$oQuery = _IEFormElementGetCollection($oForm, 1)

$research = InputBox("What to research?", "What do you want to research?")

_IEFormElementSetValue($oQuery, $research)

_IEFormSubmit($oForm)

$oRes = _IEGetObjById($oIE, "res")

$oDivs = _IETagNameGetCollection($oRes, "DIV")

For $oDiv In $oDivs

If String($oDiv.className = "g") Then

$oTemp = $oDiv.firstChild

If String($oTemp.className = "r") Then

$oTemp = $oTemp.firstChild

If String($oTemp.className = "1") Then

$sHREF = String($oTemp.href)

If $sHREF <> "" Then

$hello = _IEBodyReadText($sHREF)

FileWrite("C:\hello.txt",$hello)

EndIf

EndIf

EndIf

EndIf

Next

EndFunc

Share this post


Link to post
Share on other sites



you asking a question?


 

Spoiler

shoot_zpsfd329d66.png
dontbelieveeverythingyouthink_zps0e1e900

Madness is the first step to understanding...

Share this post


Link to post
Share on other sites

you asking a question?

Sorry to be way off topic but I just need to know- is there any connection between your avitar and Marty Feldman?

And is Eyegore the one who waters the brains? If this is all nonsense to you then just ignore it.


Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.

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