Sign in to follow this  
Followers 0
brodie28

Reading Text From An Ie Window.

3 posts in this topic

How do I retrieve all the text in an IE window, or better yet search for text in an IE window the same way CTRL + F does?

I tried Win get text or whatever, but it only returns the address from the address bar, which is the most irrelevant thing ever.

Any ideas?

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

check out IE.au3, http://www.autoitscript.com/forum/index.php?showtopic=13398

i havent used it much but im sure it should be able to do what you want to do

#include <IE.au3>

$oIE = _IECreate()
_IENavigate($oIE, "http://www.google.com")

$body = _IEBodyReadTXT($oIE)

Run("Notepad.exe")
WinWaitActive("")
ClipPut($body)
ControlSetText("","","Edit1",ClipGet())

Func _IEBodyReadTXT($o_object)
    If IsObj($o_object.document) Then
        SetError(0)
        Return $o_object.document.body.innerText
;;;;;;_window.document.body.innerText
    Else
        SetError(1)
        Return 0
    EndIf
EndFunc
Edited by thatsgreat2345

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