Sign in to follow this  
Followers 0
saurabh

Immediate Help need

6 posts in this topic

Hi,

i want to open multiple url's in different windows...and for that i was using

$URL1="http://www.yahoo.com/"

ShellExecuteWait("C:\Program Files\Internet Explorer\iexplore.exe",$URL1,@ScriptDir

$URL2="http://www.google.com/"

ShellExecuteWait("C:\Program Files\Internet Explorer\iexplore.exe",$URL2,@ScriptDir

and everything was working so well, for some reason now i want to use firefox, issue is -- in firefox 2 seperate windows does not open, first yahoo open and then google open on the same window, where as i want it to open on new window..please help ...

for firefox, i am using exactly the same way

$URL1="http://www.yahoo.com/"

ShellExecuteWait("C:\Program Files\Mozilla Firefox\firefox.exe",$URL1,@ScriptDir)

$URL2="http://www.google.com/"

ShellExecuteWait("C:\Program Files\Mozilla Firefox\firefox.exe",$URL2,@ScriptDir)

Share this post


Link to post
Share on other sites



Hi,

i want to open multiple url's in different windows...and for that i was using

$URL1="http://www.yahoo.com/"

ShellExecuteWait("C:\Program Files\Internet Explorer\iexplore.exe",$URL1,@ScriptDir

$URL2="http://www.google.com/"

ShellExecuteWait("C:\Program Files\Internet Explorer\iexplore.exe",$URL2,@ScriptDir

and everything was working so well, for some reason now i want to use firefox, issue is -- in firefox 2 seperate windows does not open, first yahoo open and then google open on the same window, where as i want it to open on new window..please help ...

for firefox, i am using exactly the same way

$URL1="http://www.yahoo.com/"

ShellExecuteWait("C:\Program Files\Mozilla Firefox\firefox.exe",$URL1,@ScriptDir)

$URL2="http://www.google.com/"

ShellExecuteWait("C:\Program Files\Mozilla Firefox\firefox.exe",$URL2,@ScriptDir)

I tested in win7 64bit and works fine

Share this post


Link to post
Share on other sites

I tested in win7 64bit and works fine

hi i am in win 7 32-bit

now, what happens is -

when i use this code

$URL1="http://www.bing.com/"

ShellExecute("C:\Program Files\Mozilla Firefox\firefox.exe",$URL1,@ScriptDir)

sleep(2000)

;MsgBox(0, "Example", "My variable is aha")

$URL2="http://www.google.com/"

ShellExecute("C:\Program Files\Mozilla Firefox\firefox.exe",$URL2,@ScriptDir)

sites r opening in tabs, i need seperate window..i m still not successful

Share this post


Link to post
Share on other sites

sites r opening in tabs, i need seperate window..i m still not successful

This is FF settings.

Go to Tools -> Options -> Tabs and uncheck the box for 'open in new tab'

(Sending alt-T then O will get you to that dialogue, too, if you want to try automating it.)

William

Share this post


Link to post
Share on other sites

This is FF settings.

Go to Tools -> Options -> Tabs and uncheck the box for 'open in new tab'

(Sending alt-T then O will get you to that dialogue, too, if you want to try automating it.)

William

thanks mate its done...ur right this was the issue.... 1 more thing..

how to maximize the windows ??

winActivate and Send("{F11}") should work but are not working.. how to achieve this ??

Share this post


Link to post
Share on other sites

Try putting in a short delay - try sleep(300), or a WinWaitActive line, in case the F11 is coming too quickly.

William

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