sosimple Posted May 26, 2008 Share Posted May 26, 2008 CODE#include <INet.au3>$Data =_INetGetSource('http://cryptload.info');MsgBox(0,,$Data)If StringInStr ("CryptLoad", $Data)>0 ThenMsgBox(0, ,"The word CryptLoad is in the source code of http://cryptload.info ")EndIfI 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 More sharing options...
monoceres Posted May 26, 2008 Share Posted May 26, 2008 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 More sharing options...
sosimple Posted May 26, 2008 Author Share Posted May 26, 2008 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 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