Jump to content

_INetGetSource and StringInStr help..


Recommended Posts

CODE
#include <INet.au3>

$Data =_INetGetSource('http://cryptload.info')

;MsgBox(0,,$Data)

If StringInStr ("CryptLoad", $Data)>0 Then

MsgBox(0, ,"The word CryptLoad is in the source code of http://cryptload.info ")

EndIf

I want to check if a word, for example the word "CryptLoad" is in the source code of a web page.

In the above example this word is in the source code of the site, but it doesnt work . It should pop up the msgbox but it dosnt.

What Im i doing wrong?

Thanks ,

Link to comment
Share on other sites

You have mixed up the parameters in StringInStr(), it should be StringInStr ($Data,"CryptLoad") :)

Made that mistake myself once, nearly ripped my hair of searching for the error :)

Broken link? PM me and I'll send you the file!

Link to comment
Share on other sites

You have mixed up the parameters in StringInStr(), it should be StringInStr ($Data,"CryptLoad") :)

Made that mistake myself once, nearly ripped my hair of searching for the error :)

My friend thank you very much!! You dont know how many time i am trying to find what i had wrong...

Now it works us it should

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...