Sign in to follow this  
Followers 0
khang0001

how can I search the text in IE

7 posts in this topic

If I Use Fire fox , i can search text by function _ffsearch , but I must use IE , and I don`t know what the function can search the text in IE. please help me.

Share this post


Link to post
Share on other sites



_IEBodyReadText or _IEBodyReadHTML should help you. Look up the help file.

Share this post


Link to post
Share on other sites

how can I use _IEBodyReadText to search the test, I try but nothing to resust. Please help me

example : when I go to url : www.google.com

how can I search how many the text google in the url : www.google.com

help me

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

out of help file

#include <IE.au3>
$oIE = _IECreate ("www.google.com")
$sText = _IEBodyReadText ($oIE)
MsgBox(0, "Body Text", $sText)

if you need help with something more specific, it would be a lot easier if you posted an example of your code.

Edit: Edited the example to give you working code for google

Edited by Realm

My Contributions: Unix Timestamp: Calculate Unix time, or seconds since Epoch, accounting for your local timezone and daylight savings time. RegEdit Jumper: A Small & Simple interface based on Yashied's Reg Jumper Function, for searching Hives in your registry.  

Share this post


Link to post
Share on other sites

if you only to read text,,, simply, copy paste to notepad.

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

example

my code is

#include <IE.au3> 
$oIE = _IECreate ("www.google.com") 
$sText = _IEBodyReadText ($oIE)

and I want to count how many word "google" in this site "www.google.com"

if > 3 word then output the box " good"

if <3 word then output the box " bad"

please help me

Edited by khang0001

Share this post


Link to post
Share on other sites

example

my code is

#include <IE.au3> 
$oIE = _IECreate ("www.google.com") 
$sText = _IEBodyReadText ($oIE)

and I want to count how many word "google" in this site "www.google.com"

if > 3 word then output the box " good"

if <3 word then output the box " bad"

please help me

You could use StringInStr.

If StringInStr($sText,"google",0,3) then msgbox(0,0,"good")

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