Jump to content

open multiple pages


t0ddie
 Share

Recommended Posts

here is a script i am using

$i = IniRead("sites.ini","number","amount","NotFound")
For $x = 1 to $i
$var = IniRead("sites.ini","sites", $x, "NotFound")
    Run(@comspec & " /c start " & $var,@scriptdir, @SW_HIDE)
Next

here is the .ini

[sites]
1=www.com
2=www.google.com
3=www.shmegma.com

[number]
amount=3

if i run the code as is, 3 browser windows open but only the last one goes to a webpage.

if i add a sleep(1000) after run, the sites load better, but not in new windows.

i want to open one new window for each site.

what should i do?

EDIT: also if you already have a webpage open it wont open a new browser window.

it will just take you to the last page in the .ini

and when no browser window is open SOMETIMES it will actually load 2 of the pages and not just one but still not all 3.. and i would like it to work with more than 3 anyways.

Edited by t0ddie

Valik Note Added 19 October 2006 - 08:38 AMAdded to warn level I just plain don't like you.

Link to comment
Share on other sites

I think the problem is that you have Internet Explorer, or Firefox or whatever your default browser is set to reuse windows for launching shortcuts. Which browser are you using?

internet explorer but it would be nice to get it to work on all browsers

so how can i adjust settings in ie?

Valik Note Added 19 October 2006 - 08:38 AMAdded to warn level I just plain don't like you.

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