Jump to content
Sign in to follow this  

_StringBetween & Reading a webpage

Recommended Posts

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 ")

Share this post

Link to post
Share on other sites

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.

Share this post

Link to post
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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...