Jump to content

Getting input


Recommended Posts

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

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

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

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