Jump to content

search string in value in IE


Recommended Posts

$_Acc1oIE = _IECreate(1)
_IENavigate($_Acc1oIE,$site)
$sHTML = _IEBodyReadText  ($_Acc1oIE)

MsgBox(0,'', $sHTML)

i want him to check if the string thisworksfine is in the $sHTML but there is lots of more junk in the html

cant find a function to search in a value.

found _ArrayBinarySearch but dont think thats something

any ideas

cheers

matthy

Link to comment
Share on other sites

$_Acc1oIE = _IECreate(1)
_IENavigate($_Acc1oIE,$site)
$sHTML = _IEBodyReadText  ($_Acc1oIE)

MsgBox(0,'', $sHTML)

i want him to check if the string thisworksfine is in the $sHTML but there is lots of more junk in the html

cant find a function to search in a value.

You already have the HTML as a string, so it's just:

If StringInStr($sHTML, "thisworksfine") Then MsgBox(64, "Found", "Found it.")

If you need to do more complicated searches you could use StringRegExp() instead.

:)

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
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...