X
Thinta lapha ukuze uye kuveshini yamakhalekhukhwini kusayithi.

Isithangami Sabeseki

Is it possible to never open a new window when clicking the exe (or shortcut to exe)?

Kuphostiwe

I use a macro on my keyboard for opening Firefox. It now simply opens the exe file. It annoys me though, that when I click the macro while Firefox is already open, it will open a new window. My preferred result would be: When Firefox is not open, open the exe file. When Firefox is open in the background, switch to Firefox but don't open a new window or tab. I already looked into the browser.link.open_newwindow tweaks but that didn't result in the wanted effect (this only seems to change link windows)

Is this possible? Thanks!

I use a macro on my keyboard for opening Firefox. It now simply opens the exe file. It annoys me though, that when I click the macro while Firefox is already open, it will open a new window. My preferred result would be: When Firefox is not open, open the exe file. When Firefox is open in the background, switch to Firefox but don't open a new window or tab. I already looked into the browser.link.open_newwindow tweaks but that didn't result in the wanted effect (this only seems to change link windows) Is this possible? Thanks!

Isisombululo esikhethiwe

There is a list, but there isn't a command-line parameter for focus or activate as far as I can tell:

https://developer.mozilla.org/docs/Mozilla/Command_Line_Options

Funda le mpendulo ngokuhambisana nalesi sihloko 1
Isicaphuno

Eminye Imininingwane Yohlelo

Isisebenziso

  • I-ejenti Engumsebenzisi: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0

Eminye Imininingwane

jscher2000
  • Top 10 Contributor
8688 izisombululo 71014 izimpendulo
Kuphostiwe

Impendulo Ewusizo

How did you set up your macro? For example, I'm guessing it executes something like this:

"C:\Program Files\Mozilla Firefox\firefox.exe"

Can the macro have command-line parameters like this:

"C:\Program Files\Mozilla Firefox\firefox.exe" -new-tab "about:newtab"

I realize you don't really want a new tab but it's the best I could do with built-in features.

The other thing you could try is to find a Windows script or utility program of some kind that checks whether a program is running and if it is, activates it, if it's not, starts it. Then customize that for Firefox, and then set your macro to run that script/program.

How did you set up your macro? For example, I'm guessing it executes something like this: "C:\Program Files\Mozilla Firefox\firefox.exe" Can the macro have command-line parameters like this: "C:\Program Files\Mozilla Firefox\firefox.exe" -new-tab "about:newtab" I realize you don't really want a new tab but it's the best I could do with built-in features. The other thing you could try is to find a Windows script or utility program of some kind that checks whether a program is running and if it is, activates it, if it's not, starts it. Then customize that for Firefox, and then set your macro to run that script/program.
Ingabe lokhu kube usizo kuwena? 1
Isicaphuno

Umnikazi wombuzo

Yes that is better! Thank you. It's not perfect, I'd prefer without a new tab but still this is better. Question though, is there a list of these parameters somewhere? Like, is there a parameter for focus on this window?

Yes that is better! Thank you. It's not perfect, I'd prefer without a new tab but still this is better. Question though, is there a list of these parameters somewhere? Like, is there a parameter for focus on this window?
Ingabe lokhu kube usizo kuwena?
Isicaphuno
jscher2000
  • Top 10 Contributor
8688 izisombululo 71014 izimpendulo
Kuphostiwe

Isisombululo Esikhethiwe

There is a list, but there isn't a command-line parameter for focus or activate as far as I can tell:

https://developer.mozilla.org/docs/Mozilla/Command_Line_Options

There is a list, but there isn't a command-line parameter for focus or activate as far as I can tell: https://developer.mozilla.org/docs/Mozilla/Command_Line_Options
Ingabe lokhu kube usizo kuwena? 1
Isicaphuno

Umnikazi wombuzo

Okay thank you! I guess the new tab way is already a lot better so I'll stick with that. Thanks!

Okay thank you! I guess the new tab way is already a lot better so I'll stick with that. Thanks!
Ingabe lokhu kube usizo kuwena?
Isicaphuno
Buza umbuzo

Kufanele ulogele ukungena ku-akhawunti yakho ukuze uphendule amaphosti. Uyacelwauqale umbuzo omusha, uma ungekabi nayo i-akhawunti namanje.