command line switch for new tab
-
woytee last edited by
Hello,
I would like to create a batch script that opens a new tab instead of a new window.
The reason for this is that I have a multimedia keyboard with a "browser button" that start the default browser with a new window.
Unfortunately there is no way to change this behavior in the keyboard software, it only accepts applications (*.exe files).
So I want to create a batch script, that opens a new tab in Opera and only if Opera is not running it will open a new window)
Then I just convert the batch file to an executable (with Advanced BAT to EXE Converter) and place it somewhere on the disk.
Only then am I able to assign the exe to my browser key.The problem is that the "browser key" start the application, not a link (which would rather open in a new tab), so I need to bypass this behavior somehow. Maybe somebody has another idea than the command line switch.
I couldn't find anything on the internet, only for the old Opera.
Since Opera is built on Chromium I also searched for Chromium switches, but couldn't find anything suitable.Any help appreciated.
using Opera 89.0.4447.91 on Windows 10 Pro 64-bit
-
burnout426 Volunteer last edited by
launcher.exe "https://example.com/"
That will launch example.com in a tab in the existing window. It will start Opera first if Opera is not open.
launcher --new-window "https://example.com/"
If Opera is open, that will launch example.com in a tab in a new window. If Opera is closed, that will launch Opera and open in the existing window.
-