AgkBrian Posted March 17, 2011 Posted March 17, 2011 Hi, i was curious if someone here could help me out or explain what i am doing wrong. The code works fine if i use the source as just the string of html i copied off the website to test it, but i get "Error: Subscript used with non-Array variable." if i try to grab the code via the IEBodyReadHTML. Any ideas or suggestions? #include <IE.au3> #include <String.au3> $oIE = _IEAttach("Untitled") $source = _IEBodyReadHTML($oIE) ;$source = "</h1><b>Code</b>:<br />AAA_Db74wmUGZM<br /><b>Description / Instructions</b>:<" $String1 = _StringBetween($source,"AAA_","<br ") MsgBox(0,"",$String1[0])
DW1 Posted March 17, 2011 Posted March 17, 2011 You don't specify the site, so I can't really test. Are you sure IE is attached to OK? There is no error checking there. If it does attach OK, try _IEDocReadHTML() maybe. AutoIt3 Online Help
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