Jump to content

load a list of URLs using IE?


Recommended Posts

How would I go about loading a list of URLS using the IE create or IE navigate functions?

I would imagine id have to create an array variable that stores all the info of the websites. in my case it will be separated by a comma. How would i do this? any help is appreciated.

Here is what I got so far:

Global $iMax=1000
Global $videos[$iMax] = [0]
Global $i



While 1
    Switch GUIGetMsg()
        Case $GUI_EVENT_CLOSE
            Exit
        Case $Button1
$videos = StringSplit($Input1, ",")
For $i = 1 to $Input1
If UBound($videos) = $i Then
        ; Resize the array
        ReDim $videos[$videos[0] + $iMax]
    EndIf
$videos[$i] = $Input1 & $i
    ; Remember to update the count or last item
    $videos[0] = $i
Next

giving me an error with the array

Edited by psychoblast
Link to comment
Share on other sites

StringSplit will put the comma separated urls into an array.

#include <Array.au3>
Global $videos
$videos = StringSplit($Input1, ",") ; assuming $Input1 already contains the list.
_ArrayDisplay($videos)
Edited by JohnOne

AutoIt Absolute Beginners    Require a serial    Pause Script    Video Tutorials by Morthawt   ipify 

Monkey's are, like, natures humans.

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...