Jump to content
Sign in to follow this  
Orgins

I can't get _StringBetween to work.

Recommended Posts

Orgins

I think it's b/c its not all in one line but I don't really have a clue.

#include <IE.au3>
#include <String.au3>


$oIE = _IECreate ("http://www.google.com/")

_IELoadWait ($oIE)

$sText = _IEBodyReadText ($oIE)

$sText2 = _StringBetween ( $sText, "Advertising Programs", "About Google") 

Msgbox(1,"string",$sText)
Msgbox(1,"StringBetween",$sText2)

any pointers?


I'm a newbie.Sorry if I don't reposed to your replays very fast.

Share this post


Link to post
Share on other sites
weaponx

StringBetween returns an array.

Return Value

Success: A 0 based $array[0] contains the first found string. Failure: 0 @Error: 1 = No inbetween string found.

Share this post


Link to post
Share on other sites
Orgins

K got it.

Thxs.


I'm a newbie.Sorry if I don't reposed to your replays very fast.

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  

×