Jump to content

Read text file then navigate ie to the link


Recommended Posts

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?

Link to comment
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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...