Command-Line Option to Open Chrome in New Window and Move Focus
up vote
24
down vote
favorite
The default behavior of running chrome via the command-line:
chrome www.google.com
opens a new tab in an existing instance of chrome
and moves the focus from the terminal to the newly created tab.
Adding the new-window
switch:
chrome --new-window www.google.com
opens chrome in a new window but does not move the focus.
What options should I use to open a new window but also switch focus to that window?
Note: I'm using Windows 7.
command-line google-chrome
|
show 3 more comments
up vote
24
down vote
favorite
The default behavior of running chrome via the command-line:
chrome www.google.com
opens a new tab in an existing instance of chrome
and moves the focus from the terminal to the newly created tab.
Adding the new-window
switch:
chrome --new-window www.google.com
opens chrome in a new window but does not move the focus.
What options should I use to open a new window but also switch focus to that window?
Note: I'm using Windows 7.
command-line google-chrome
I'm using Windows 7
– Isaac Kleinman
Mar 20 '14 at 16:33
1
I'm using Windows 7 too, and it works for me... When I launch Chrome from a command-line with --new-window command it opens the address in a Chrome new window, and takes focus. How exactly are you launching the command?
– Ƭᴇcʜιᴇ007
Mar 20 '14 at 16:36
Exactly as I described in the question.
– Isaac Kleinman
Mar 20 '14 at 16:39
if you're using a standard Windows Command Prompt (assuming that's what you mean by 'the terminal') and just running it from there as stated, then it should take focus (does for me anyway). What version if Chrome are you using? I'm on 33.0.1750.154 m.
– Ƭᴇcʜιᴇ007
Mar 20 '14 at 16:42
Strange. I'm using the standard Windows Command Prompt; same chrome version.
– Isaac Kleinman
Mar 20 '14 at 16:44
|
show 3 more comments
up vote
24
down vote
favorite
up vote
24
down vote
favorite
The default behavior of running chrome via the command-line:
chrome www.google.com
opens a new tab in an existing instance of chrome
and moves the focus from the terminal to the newly created tab.
Adding the new-window
switch:
chrome --new-window www.google.com
opens chrome in a new window but does not move the focus.
What options should I use to open a new window but also switch focus to that window?
Note: I'm using Windows 7.
command-line google-chrome
The default behavior of running chrome via the command-line:
chrome www.google.com
opens a new tab in an existing instance of chrome
and moves the focus from the terminal to the newly created tab.
Adding the new-window
switch:
chrome --new-window www.google.com
opens chrome in a new window but does not move the focus.
What options should I use to open a new window but also switch focus to that window?
Note: I'm using Windows 7.
command-line google-chrome
command-line google-chrome
edited Mar 20 '14 at 16:33
asked Mar 20 '14 at 16:25
Isaac Kleinman
2641310
2641310
I'm using Windows 7
– Isaac Kleinman
Mar 20 '14 at 16:33
1
I'm using Windows 7 too, and it works for me... When I launch Chrome from a command-line with --new-window command it opens the address in a Chrome new window, and takes focus. How exactly are you launching the command?
– Ƭᴇcʜιᴇ007
Mar 20 '14 at 16:36
Exactly as I described in the question.
– Isaac Kleinman
Mar 20 '14 at 16:39
if you're using a standard Windows Command Prompt (assuming that's what you mean by 'the terminal') and just running it from there as stated, then it should take focus (does for me anyway). What version if Chrome are you using? I'm on 33.0.1750.154 m.
– Ƭᴇcʜιᴇ007
Mar 20 '14 at 16:42
Strange. I'm using the standard Windows Command Prompt; same chrome version.
– Isaac Kleinman
Mar 20 '14 at 16:44
|
show 3 more comments
I'm using Windows 7
– Isaac Kleinman
Mar 20 '14 at 16:33
1
I'm using Windows 7 too, and it works for me... When I launch Chrome from a command-line with --new-window command it opens the address in a Chrome new window, and takes focus. How exactly are you launching the command?
– Ƭᴇcʜιᴇ007
Mar 20 '14 at 16:36
Exactly as I described in the question.
– Isaac Kleinman
Mar 20 '14 at 16:39
if you're using a standard Windows Command Prompt (assuming that's what you mean by 'the terminal') and just running it from there as stated, then it should take focus (does for me anyway). What version if Chrome are you using? I'm on 33.0.1750.154 m.
– Ƭᴇcʜιᴇ007
Mar 20 '14 at 16:42
Strange. I'm using the standard Windows Command Prompt; same chrome version.
– Isaac Kleinman
Mar 20 '14 at 16:44
I'm using Windows 7
– Isaac Kleinman
Mar 20 '14 at 16:33
I'm using Windows 7
– Isaac Kleinman
Mar 20 '14 at 16:33
1
1
I'm using Windows 7 too, and it works for me... When I launch Chrome from a command-line with --new-window command it opens the address in a Chrome new window, and takes focus. How exactly are you launching the command?
– Ƭᴇcʜιᴇ007
Mar 20 '14 at 16:36
I'm using Windows 7 too, and it works for me... When I launch Chrome from a command-line with --new-window command it opens the address in a Chrome new window, and takes focus. How exactly are you launching the command?
– Ƭᴇcʜιᴇ007
Mar 20 '14 at 16:36
Exactly as I described in the question.
– Isaac Kleinman
Mar 20 '14 at 16:39
Exactly as I described in the question.
– Isaac Kleinman
Mar 20 '14 at 16:39
if you're using a standard Windows Command Prompt (assuming that's what you mean by 'the terminal') and just running it from there as stated, then it should take focus (does for me anyway). What version if Chrome are you using? I'm on 33.0.1750.154 m.
– Ƭᴇcʜιᴇ007
Mar 20 '14 at 16:42
if you're using a standard Windows Command Prompt (assuming that's what you mean by 'the terminal') and just running it from there as stated, then it should take focus (does for me anyway). What version if Chrome are you using? I'm on 33.0.1750.154 m.
– Ƭᴇcʜιᴇ007
Mar 20 '14 at 16:42
Strange. I'm using the standard Windows Command Prompt; same chrome version.
– Isaac Kleinman
Mar 20 '14 at 16:44
Strange. I'm using the standard Windows Command Prompt; same chrome version.
– Isaac Kleinman
Mar 20 '14 at 16:44
|
show 3 more comments
3 Answers
3
active
oldest
votes
up vote
25
down vote
accepted
try this one
start chrome /new-window www.google.com
opens google.com in a new instance of chrome.
3
Awesome.chromium --new-window
seems to work on Linux. Missing from the manpage.
– Jack O'Connor
Oct 7 '15 at 21:00
1
On Windows 10 this does not start a new process.
– Howard Hoffman
Oct 26 '17 at 12:30
@HowardHoffman --new-window doesn't open a new instance/process. In example, you could not apply --proxy-server to that new window. It's just a detached window of the same instance, same profile, etc.
– erm3nda
Jul 24 at 10:26
add a comment |
up vote
2
down vote
Try to use this extension which solves this bug: Chrome New Window Focus.
add a comment |
up vote
-1
down vote
Give a time and it will focus on active window:
start chrome.exe --new-window "http://hotmail.com"
start chrome.exe --new-window "http://gmail.com"
TIMEOUT 1
start chrome.exe "http://yahoo.com"
1
Welcome to Super User. Can you explain what exactly happens when you run these commands? In particular, why the 3rdstart
command? Also, it's unclear what you mean by "Give a time".
– Twisty Impersonator
Apr 18 '17 at 17:50
add a comment |
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
25
down vote
accepted
try this one
start chrome /new-window www.google.com
opens google.com in a new instance of chrome.
3
Awesome.chromium --new-window
seems to work on Linux. Missing from the manpage.
– Jack O'Connor
Oct 7 '15 at 21:00
1
On Windows 10 this does not start a new process.
– Howard Hoffman
Oct 26 '17 at 12:30
@HowardHoffman --new-window doesn't open a new instance/process. In example, you could not apply --proxy-server to that new window. It's just a detached window of the same instance, same profile, etc.
– erm3nda
Jul 24 at 10:26
add a comment |
up vote
25
down vote
accepted
try this one
start chrome /new-window www.google.com
opens google.com in a new instance of chrome.
3
Awesome.chromium --new-window
seems to work on Linux. Missing from the manpage.
– Jack O'Connor
Oct 7 '15 at 21:00
1
On Windows 10 this does not start a new process.
– Howard Hoffman
Oct 26 '17 at 12:30
@HowardHoffman --new-window doesn't open a new instance/process. In example, you could not apply --proxy-server to that new window. It's just a detached window of the same instance, same profile, etc.
– erm3nda
Jul 24 at 10:26
add a comment |
up vote
25
down vote
accepted
up vote
25
down vote
accepted
try this one
start chrome /new-window www.google.com
opens google.com in a new instance of chrome.
try this one
start chrome /new-window www.google.com
opens google.com in a new instance of chrome.
answered Jan 9 '15 at 14:04
Pascal
26633
26633
3
Awesome.chromium --new-window
seems to work on Linux. Missing from the manpage.
– Jack O'Connor
Oct 7 '15 at 21:00
1
On Windows 10 this does not start a new process.
– Howard Hoffman
Oct 26 '17 at 12:30
@HowardHoffman --new-window doesn't open a new instance/process. In example, you could not apply --proxy-server to that new window. It's just a detached window of the same instance, same profile, etc.
– erm3nda
Jul 24 at 10:26
add a comment |
3
Awesome.chromium --new-window
seems to work on Linux. Missing from the manpage.
– Jack O'Connor
Oct 7 '15 at 21:00
1
On Windows 10 this does not start a new process.
– Howard Hoffman
Oct 26 '17 at 12:30
@HowardHoffman --new-window doesn't open a new instance/process. In example, you could not apply --proxy-server to that new window. It's just a detached window of the same instance, same profile, etc.
– erm3nda
Jul 24 at 10:26
3
3
Awesome.
chromium --new-window
seems to work on Linux. Missing from the manpage.– Jack O'Connor
Oct 7 '15 at 21:00
Awesome.
chromium --new-window
seems to work on Linux. Missing from the manpage.– Jack O'Connor
Oct 7 '15 at 21:00
1
1
On Windows 10 this does not start a new process.
– Howard Hoffman
Oct 26 '17 at 12:30
On Windows 10 this does not start a new process.
– Howard Hoffman
Oct 26 '17 at 12:30
@HowardHoffman --new-window doesn't open a new instance/process. In example, you could not apply --proxy-server to that new window. It's just a detached window of the same instance, same profile, etc.
– erm3nda
Jul 24 at 10:26
@HowardHoffman --new-window doesn't open a new instance/process. In example, you could not apply --proxy-server to that new window. It's just a detached window of the same instance, same profile, etc.
– erm3nda
Jul 24 at 10:26
add a comment |
up vote
2
down vote
Try to use this extension which solves this bug: Chrome New Window Focus.
add a comment |
up vote
2
down vote
Try to use this extension which solves this bug: Chrome New Window Focus.
add a comment |
up vote
2
down vote
up vote
2
down vote
Try to use this extension which solves this bug: Chrome New Window Focus.
Try to use this extension which solves this bug: Chrome New Window Focus.
answered Aug 14 '14 at 9:11
BornToCode
190111
190111
add a comment |
add a comment |
up vote
-1
down vote
Give a time and it will focus on active window:
start chrome.exe --new-window "http://hotmail.com"
start chrome.exe --new-window "http://gmail.com"
TIMEOUT 1
start chrome.exe "http://yahoo.com"
1
Welcome to Super User. Can you explain what exactly happens when you run these commands? In particular, why the 3rdstart
command? Also, it's unclear what you mean by "Give a time".
– Twisty Impersonator
Apr 18 '17 at 17:50
add a comment |
up vote
-1
down vote
Give a time and it will focus on active window:
start chrome.exe --new-window "http://hotmail.com"
start chrome.exe --new-window "http://gmail.com"
TIMEOUT 1
start chrome.exe "http://yahoo.com"
1
Welcome to Super User. Can you explain what exactly happens when you run these commands? In particular, why the 3rdstart
command? Also, it's unclear what you mean by "Give a time".
– Twisty Impersonator
Apr 18 '17 at 17:50
add a comment |
up vote
-1
down vote
up vote
-1
down vote
Give a time and it will focus on active window:
start chrome.exe --new-window "http://hotmail.com"
start chrome.exe --new-window "http://gmail.com"
TIMEOUT 1
start chrome.exe "http://yahoo.com"
Give a time and it will focus on active window:
start chrome.exe --new-window "http://hotmail.com"
start chrome.exe --new-window "http://gmail.com"
TIMEOUT 1
start chrome.exe "http://yahoo.com"
answered Apr 18 '17 at 17:08
shdcol
1
1
1
Welcome to Super User. Can you explain what exactly happens when you run these commands? In particular, why the 3rdstart
command? Also, it's unclear what you mean by "Give a time".
– Twisty Impersonator
Apr 18 '17 at 17:50
add a comment |
1
Welcome to Super User. Can you explain what exactly happens when you run these commands? In particular, why the 3rdstart
command? Also, it's unclear what you mean by "Give a time".
– Twisty Impersonator
Apr 18 '17 at 17:50
1
1
Welcome to Super User. Can you explain what exactly happens when you run these commands? In particular, why the 3rd
start
command? Also, it's unclear what you mean by "Give a time".– Twisty Impersonator
Apr 18 '17 at 17:50
Welcome to Super User. Can you explain what exactly happens when you run these commands? In particular, why the 3rd
start
command? Also, it's unclear what you mean by "Give a time".– Twisty Impersonator
Apr 18 '17 at 17:50
add a comment |
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f731467%2fcommand-line-option-to-open-chrome-in-new-window-and-move-focus%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
I'm using Windows 7
– Isaac Kleinman
Mar 20 '14 at 16:33
1
I'm using Windows 7 too, and it works for me... When I launch Chrome from a command-line with --new-window command it opens the address in a Chrome new window, and takes focus. How exactly are you launching the command?
– Ƭᴇcʜιᴇ007
Mar 20 '14 at 16:36
Exactly as I described in the question.
– Isaac Kleinman
Mar 20 '14 at 16:39
if you're using a standard Windows Command Prompt (assuming that's what you mean by 'the terminal') and just running it from there as stated, then it should take focus (does for me anyway). What version if Chrome are you using? I'm on 33.0.1750.154 m.
– Ƭᴇcʜιᴇ007
Mar 20 '14 at 16:42
Strange. I'm using the standard Windows Command Prompt; same chrome version.
– Isaac Kleinman
Mar 20 '14 at 16:44