saurabh Posted April 11, 2011 Share Posted April 11, 2011 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) Link to comment Share on other sites More sharing options...
jorolino Posted April 11, 2011 Share Posted April 11, 2011 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,@ScriptDirand 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 Link to comment Share on other sites More sharing options...
saurabh Posted April 11, 2011 Author Share Posted April 11, 2011 I tested in win7 64bit and works finehi i am in win 7 32-bitnow, 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 Link to comment Share on other sites More sharing options...
saywell Posted April 11, 2011 Share Posted April 11, 2011 sites r opening in tabs, i need seperate window..i m still not successfulThis 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 Link to comment Share on other sites More sharing options...
saurabh Posted April 11, 2011 Author Share Posted April 11, 2011 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.)Williamthanks 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 ?? Link to comment Share on other sites More sharing options...
saywell Posted April 11, 2011 Share Posted April 11, 2011 Try putting in a short delay - try sleep(300), or a WinWaitActive line, in case the F11 is coming too quickly. William 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