Jump to content

how can I search the text in IE


Recommended Posts

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. 

Link to comment
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

Edited by khang0001
Link to comment
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")
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...