Jump to content
Sign in to follow this  
mike73

Check for first 28 chars of a url string then click url

Recommended Posts

mike73

Hi there! N00b here so if anyone can help that would be awesome!

This is I'm looking for

Script that checks for the first 28 chars or a URL on a page, then clicks the URL and proceeds to the next

something like

go to page (www.thisisit.com)

if left(url,28)="http://www.test.com/test.php"

then

click (url)

endif

If you need more info just lmk

thanks a million!

Mike

Share this post


Link to post
Share on other sites
AlmarM
  • _IE* functions
  • StringInStr
  • StringLeft

Minesweeper

A minesweeper game created in autoit, source available.

_Mouse_UDF

An UDF for registering functions to mouse events, made in pure autoit.

2D Hitbox Editor

A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes.

Share this post


Link to post
Share on other sites
mike73

  • _IE* functions
  • StringInStr
  • StringLeft

thanks but I did try before I posted

I got the sample script but it only works with text ON the site not with URLs, did also try inner outer html couldnt get it to work

Any ideas?

Used this script but cant get it to work...

$sMyString = "http://www.qwerty.com/qwerty"

$oLinks = _IELinkGetCollection($oIE)

For $oLink in $oLinks

$sLinkText = _IEPropertyGet($oLink, "outerhtml")

If StringInStr($sLinkText, $sMyString) Then

_IEAction($oLink, "click")

ExitLoop

EndIf

Next

Share this post


Link to post
Share on other sites
mike73

anyone? any help is appreciated!

Share this post


Link to post
Share on other sites
mike73

anyone? any help is appreciated!

can someone pls help I really dont know how to handle this

thanks a lot!

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  

×