tubbybunz Posted March 29, 2008 Share Posted March 29, 2008 hi, i'm trying to write a program that allows me paste a list of urls somewhere (whether it be a notepad file, input box, whatever) and have this program open internet explorer and go to each one of them in turn. for example, if i had a list like this: www.link1.com www.link2.com www.link3.com i would want to copy it from here, paste it somewhere where the program could read and seperate it, and then have it open up internet explorer and navigate to those sites. i've read through the forums and some of the tutorials and figured out how to open and navigate internet explorer, but i'm stuck on this input part. thanks for any help anyone can give me. Link to comment Share on other sites More sharing options...
Swift Posted March 29, 2008 Share Posted March 29, 2008 You mean like: GUICtrlRead() FileOpen() FileWrite() FileReadLine() _IENavigate() ShellExecute() Stuff like that? Link to comment Share on other sites More sharing options...
tubbybunz Posted March 29, 2008 Author Share Posted March 29, 2008 You mean like:GUICtrlRead()FileOpen()FileWrite()FileReadLine()_IENavigate()ShellExecute()Stuff like that?yeah, that looks like what i'm getting at. do you have time to write out an example of how to implement them? otherwise, i'll just try to find tutorials to see how to use them properly.thanks for your help. Link to comment Share on other sites More sharing options...
FreeFry Posted March 29, 2008 Share Posted March 29, 2008 If it's just intended for yourself, my approach would've been using ClipGet, and StringSplit, then you could just use ShellExecute on each element in the array StringSplit returns. Something like this: $Array = StringSplit(ClipGet(), @CRLF, 1) For $i = 1 To $Array[0] ShellExecute($Array[$i]) Next Link to comment Share on other sites More sharing options...
tubbybunz Posted March 29, 2008 Author Share Posted March 29, 2008 If it's just intended for yourself, my approach would've been using ClipGet, and StringSplit, then you could just use ShellExecute on each element in the array StringSplit returns. Something like this: $Array = StringSplit(ClipGet(), @CRLF, 1) For $i = 1 To $Array[0] ShellExecute($Array[$i]) Nextthanks, freefry! that was exactly what i needed! Link to comment Share on other sites More sharing options...
FreeFry Posted March 29, 2008 Share Posted March 29, 2008 Hehe, but ofcourse you could take it further by automating the links you visit with the _IE UDFs instead of using ShellExecute.. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now