Sign in to follow this  
Followers 0
Walls192

Read text file then navigate ie to the link

2 posts in this topic

I basical need my script to read a txt file then navigate to the link using ie, this my script simplified;

#include <file.au3>
#include <ie.au3>
$line = FileReadLine("links.txt", 1)
$oIE = _IECreate($line)

But how do I now make it read the next line and continue untill txt file has no more links?

Share this post


Link to post
Share on other sites

I basical need my script to read a txt file then navigate to the link using ie, this my script simplified;

#include <file.au3>
#include <ie.au3>
$line = FileReadLine("links.txt", 1)
$oIE = _IECreate($line)

But how do I now make it read the next line and continue untill txt file has no more links?

Array

#include <Array.au3>
Local $fileLineArray
_FileReadToArray("links.txt",$fileLineArray)
For $i = 1 to Ubound($fileLineArray)-1
 $oIE = _IECreate($fileLineArray[$i])
Next

A decision is a powerful thing

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  
Followers 0