brodie28 Posted April 18, 2006 Share Posted April 18, 2006 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? Link to comment Share on other sites More sharing options...
Thatsgreat2345 Posted April 18, 2006 Share Posted April 18, 2006 (edited) check out IE.au3, http://www.autoitscript.com/forum/index.php?showtopic=13398i 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 April 18, 2006 by thatsgreat2345 Link to comment Share on other sites More sharing options...
Valuater Posted April 18, 2006 Share Posted April 18, 2006 (edited) check out the IE.au3 Builder,,, herehttp://www.autoitscript.com/forum/index.ph...68&hl=Valuater#8) Edited April 18, 2006 by Valuater Link to comment Share on other sites More sharing options...
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