Windows – How to open a URL in a new browser window with AutoHotkey

autohotkeywindows

With AutoHotkey on Windows you can associate a shortcut to open a URL – web page or link – in the default browser with the following script:

^!g::Run https://mail.google.com/

This will open Gmail in a new tab in the last active window when pressing CTRL+ALT+G.

How can I do same, but open the URL in a new window instead?

Best Answer

IE:

Run, iexplore.exe https://mail.google.com/

Chrome:

Run chrome.exe "https://mail.google.com/" " --new-window "

Firefox:

Run, firefox.exe -new-window https://mail.google.com/
Related Question