Diana (Cda) Posted October 30, 2007 Share Posted October 30, 2007 This type of syntax works just fine:ShellExecute (@UserProfileDir & "\Application Data\Microsoft\Internet Explorer\Quick Launch\WXP\APP- Firefox Portable v2.0.0.3\FirefoxPortable.exe", "www.google.ca")Firefox is opened instead of the default browser, so this part is okay. Whether or not it's a Firefox fault I don't know. But this script makes the browser open in an existing window rather than opening up a new one. Is there some AI syntax that will ensure that a new browser instance is opened instead? Thanks. Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted October 30, 2007 Moderators Share Posted October 30, 2007 Can't test it ... but you could try:ShellExecute (@UserProfileDir & "\Application Data\Microsoft\Internet Explorer\Quick Launch\WXP\APP- Firefox Portable v2.0.0.3\FirefoxPortable.exe", "new-window www.google.ca") Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
Regency Posted October 30, 2007 Share Posted October 30, 2007 (edited) ShellExecute (@UserProfileDir & "\Application Data\Microsoft\Internet Explorer\Quick Launch\WXP\APP- Firefox Portable v2.0.0.3\FirefoxPortable.exe", "www.google.ca") The code as its written opens a new firefox window. You want this to open a new tab? So like you already have a FF window open and when you click this it opens a new tab with the www.google.ca in it? Edited October 30, 2007 by Regency Link to comment Share on other sites More sharing options...
Diana (Cda) Posted November 1, 2007 Author Share Posted November 1, 2007 Can't test it ... but you could try:ShellExecute (@UserProfileDir & "\Application Data\Microsoft\Internet Explorer\Quick Launch\WXP\APP- Firefox Portable v2.0.0.3\FirefoxPortable.exe", "new-window www.google.ca")This is too funny ... <g> This opened up the website called "http://www.new-window.com/"! Link to comment Share on other sites More sharing options...
Diana (Cda) Posted November 1, 2007 Author Share Posted November 1, 2007 ShellExecute (@UserProfileDir & "\Application Data\Microsoft\Internet Explorer\Quick Launch\WXP\APP- Firefox Portable v2.0.0.3\FirefoxPortable.exe", "www.google.ca")The code as its written opens a new firefox window. You want this to open a new tab? So like you already have a FF window open and when you click this it opens a new tab with the www.google.ca in it?Hi. Sorry. You made me realize that I forgot that I have a tab killer on my Firefox. I hate tabs. I have new windows open whenever I click on a link, except that it doesn't work when opening via AU3 where an existing open window is taken over. Any ideas on what might open a new window? The other suggestion actually went to a website since "new window" was not recognized, at least, not using the particular syntax suggested. Thanks. Link to comment Share on other sites More sharing options...
Regency Posted November 1, 2007 Share Posted November 1, 2007 Hi. Sorry. You made me realize that I forgot that I have a tab killer on my Firefox. I hate tabs. I have new windows open whenever I click on a link, except that it doesn't work when opening via AU3 where an existing open window is taken over.Any ideas on what might open a new window? The other suggestion actually went to a website since "new window" was not recognized, at least, not using the particular syntax suggested.Thanks. Ok.. So you want it to open a New window? Link to comment Share on other sites More sharing options...
Diana (Cda) Posted November 9, 2007 Author Share Posted November 9, 2007 Ok.. So you want it to open a New window?Yes. Not a new tab, but a new window.Thanks. Link to comment Share on other sites More sharing options...
Diana (Cda) Posted November 15, 2007 Author Share Posted November 15, 2007 Yes. Not a new tab, but a new window.Thanks. Is there anything that can be done re opening a new window when someone like me has a tab killer extension in Firefox? I'm hoping it's more a windows thing than code specifically related to Firefox (if there is such a thing). I'm sorry, I hate MDI and usu. prefer SDI and multiple windows in some things, esp. my browser. Link to comment Share on other sites More sharing options...
Diana (Cda) Posted November 21, 2007 Author Share Posted November 21, 2007 Is there anything that can be done re opening a new window when someone like me has a tab killer extension in Firefox? I'm hoping it's more a windows thing than code specifically related to Firefox (if there is such a thing). I'm sorry, I hate MDI and usu. prefer SDI and multiple windows in some things, esp. my browser. I'm just wondering if a lack of answer means no-can-do? I was hoping that something that worked for IE might work for FF. So going to post this message after all to see if anyone knows anything. The scripts all work well, it's just that if a FF browser window is open, the script takes it over and sometimes I need the window to stay with the information it has and it's preferable for AI to open another completely different instance of FF. Hoping that there was some syntax I didn't know about to do this. Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted November 21, 2007 Moderators Share Posted November 21, 2007 I'm just wondering if a lack of answer means no-can-do? I was hoping that something that worked for IE might work for FF. So going to post this message after all to see if anyone knows anything. The scripts all work well, it's just that if a FF browser window is open, the script takes it over and sometimes I need the window to stay with the information it has and it's preferable for AI to open another completely different instance of FF. Hoping that there was some syntax I didn't know about to do this.The lack of answer on my part means... I can't test what your asking to show you how to do it correctly. I'm surprised you're still on this issue though... If it were possible, I would have thought you'd of tripped over by accident at least by now... that is ... unless you put it to the side waiting for someone to answer it for you. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
John117 Posted November 21, 2007 Share Posted November 21, 2007 (edited) Firefox->Tools->Options->Tabs-> 'A new window' -ok ShellExecute ("C:\Program Files\Mozilla Firefox\firefox.exe", "www.google.ca") -opens a new window for me Edited November 21, 2007 by Hatcheda Link to comment Share on other sites More sharing options...
Diana (Cda) Posted December 9, 2007 Author Share Posted December 9, 2007 Firefox->Tools->Options->Tabs-> 'A new window' -ok ShellExecute ("C:\Program Files\Mozilla Firefox\firefox.exe", "www.google.ca") -opens a new window for me Hi! Yes, I have always had that ticked off myself, too. Thanks so much for your answer. I still don't know why this isn't working but since everyone (well, most everyone <g>) has given kind advice and it's still not working, then I will take it over to the Firefox people. Perhaps they might have run into this problem. Again, it won't fix things with regards my AI scripts that don't open new windows, but it might give me a clue as to what is going on and I can then go from there (hopefully). Thanks, everyone! Fortunately for me, though this behaviour happens 8 out of 10 times, I can get my window contents back intact with a back button move. Cheers. [p.s., My thumb drive launcher still runs default apps, so I overcome that limitation and running my own browser instead of the default one via AI scripts when needed. It'll be nice when I can figure this out. <g>] Link to comment Share on other sites More sharing options...
Diana (Cda) Posted December 9, 2007 Author Share Posted December 9, 2007 (edited) The lack of answer on my part means... I can't test what your asking to show you how to do it correctly. I'm surprised you're still on this issue though... If it were possible, I would have thought you'd of tripped over by accident at least by now... that is ... unless you put it to the side waiting for someone to answer it for you.Can't resist .... Meanie <g>. It's obvious you use the tab feature. I don't. I love SDI in something like SciTE and others but not in my browser so I have a tab killer extension on there. But that's me. At any rate, will see if the FF people have this behaviour as a recurring problem. I'd hoped that a Windows solution that AI could use might work, i.e., the "new window" option, but no go. At any rate, cheers. Edited December 9, 2007 by Diana (Cda) 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