Jump to content
Sign in to follow this  
Walls192

Read text file then navigate ie to the link

Recommended Posts

Walls192

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
JohnBailey

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.