Astormooke Posted July 5, 2007 Posted July 5, 2007 #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
martin Posted July 5, 2007 Posted July 5, 2007 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.
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