d3adlin3 Posted February 20, 2008 Posted February 20, 2008 (edited) Hi All, Im trying to pull some information from a Web Page but im having some problems with some of the HTML syntax breaking my String search. Ive tried encoding the HTML but then it does not pull the information back which I want Heres my code (Please suggest any improvments) #include <ie.au3> #include <string.au3> $oIE = _IECreate("http://www.mywebsite.com/index.php",1,1) $Source = _IEBodyReadHTML($oIE) _IELoadWait($oIE, 1000, 5500) ;Troublesome line: $return = _StringBetween($Source,"')" style="text-decoration: none; color: rgb(255, 255, 255);" title="Data">","</a>") ConsoleWrite($return[0] & @CRLF) I just dunno how to use StringSearch with these special characters Any help would be great! Thanks D3ADLiN3 Edited February 20, 2008 by d3adlin3
weaponx Posted February 20, 2008 Posted February 20, 2008 Your quotes are incorrect, you can put single quotes inside double quotes, or double quotes inside single quotes. If you need to have both you need to double them up.http://www.autoitscript.com/autoit3/docs/i...g_datatypes.htm
d3adlin3 Posted February 20, 2008 Author Posted February 20, 2008 thanks for the fast reply, im getting the error 'Subscript used with non-Array variable' but dont understand why? :S
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