Scinner Posted January 29, 2009 Share Posted January 29, 2009 Hi! Is there someone who can tell me how to find out if a certain word/phrase is present in a html. Preferably with an @error output. I have tried to look in the help file at _IEBodyReadHTML but that cant be the right way? Thanks! Link to comment Share on other sites More sharing options...
BrettF Posted January 29, 2009 Share Posted January 29, 2009 Please post your code Also have a look at StringInStr. Cheers, Brett Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
GaRydelaMer Posted January 29, 2009 Share Posted January 29, 2009 (edited) Hello I'm working also, I do research on information from my DVDs on a website. I'm on page analysis yet. #include <INet.au3> #include <String.au3> #include <Array.au3> Local $titre = "Butterfly effect" Local $html = _INetGetSource("http://www.allocine.fr/recherche/?motcle=" & URLEncode($titre)) ;<h2 class="SpBlocTitle" >Films Local $aArray1 = _StringBetween($html, '<h2 class="SpBlocTitle" >Films', '</table><br />') _ArrayDisplay($aArray1, 'Default Search') Func URLEncode($urlText) Local $url = "" For $i = 1 To StringLen($urlText) $acode = Asc(StringMid($urlText, $i, 1)) Select Case ($acode >= 48 And $acode <= 57) Or _ ($acode >= 65 And $acode <= 90) Or _ ($acode >= 97 And $acode <= 122) $url &= StringMid($urlText, $i, 1) Case $acode = 32 $url &= "+" Case Else $url &= "%" & Hex($acode, 2) EndSelect Next Return $url EndFunc ;==>URLEncode The function URLEncode find in this forum. Try This, hope is help Edited January 29, 2009 by GaRydelaMer Link to comment Share on other sites More sharing options...
Scinner Posted January 29, 2009 Author Share Posted January 29, 2009 Please post your code Also have a look at StringInStr. Cheers,BrettSorry, ain't got any code yet. I'm trying to make a "send sms when new mails are in my inbox". But I don't know if its possible yet. I've looked at the sourcecode and when I've got a new email the word "New" apears in the sourcecode of my emailclient. With the StringInStr I supose the string to search have to be there at all times but this string containig the word "New" only apears when I have a new email. 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