Sign in to follow this  
Followers 0
tubbybunz

Getting input

6 posts in this topic

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.

Share this post


Link to post
Share on other sites



You mean like:

GUICtrlRead()

FileOpen()

FileWrite()

FileReadLine()

_IENavigate()

ShellExecute()

Stuff like that?

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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
thanks, freefry! that was exactly what i needed!

Share this post


Link to post
Share on other sites

Hehe, but ofcourse you could take it further by automating the links you visit with the _IE UDFs instead of using ShellExecute.. :)

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