X
Tippen Sie hierhin, um die Version dieser Website für Mobilgeräte aufzurufen.

Hilfeforum

What is command line argument to raise and give focus to an existing instance of Firefox?

Veröffentlicht

I'd like to create a shortcut which acts on the existing Firefox instance. If iconified, it should deiconify. In any case, it should come to the top of the window stack and take focus. I have looked over the command line arguments, and I don't see one that will do that. The closest I can come is to give it a URL; but I don't really want to open a new tab.

I'd like to create a shortcut which acts on the existing Firefox instance. If iconified, it should deiconify. In any case, it should come to the top of the window stack and take focus. I have looked over the command line arguments, and I don't see one that will do that. The closest I can come is to give it a URL; but I don't really want to open a new tab.

Mehr Details zum System

Installierte Plugins

  • Shockwave Flash 13.0 r0
  • Google Update
  • 5.1.30214.0
  • Adobe Shockwave for Director Netscape plug-in, version 12.0.9.149
  • Adobe PDF Plug-In For Firefox and Netscape 11.0.06
  • WildTangent Games App V2 Presence Detector
  • HPDetect

Anwendung

  • Firefox 28.0
  • User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:28.0) Gecko/20100101 Firefox/28.0
  • Hilfe-URL: https://support.mozilla.org/1/firefox/28.0/WINNT/en-US/

Erweiterungen

  • All-in-One Gestures 0.26 ({8b86149f-01fb-4842-9dd8-4d7eb02fd055})
  • All-in-One Sidebar 0.7.21 ({097d3191-e6fa-4728-9826-b533d755359d})
  • Answers 2.3.54 ({C0D0F6D1-9FC9-4b0a-B485-D5E13AF40D51})
  • Close other tabs 2.8 (closeothertabs@florian-volk.net)
  • Cookies Manager+ 1.5.2 ({bb6bc1bb-f824-4702-90cd-35e2fb24f25d})
  • Download YouTube Videos as MP4 1.7.18 ({b9bfaf1c-a63f-47cd-8b9a-29526ced9060})
  • Forecastfox 2.2.2 ({0538E3E3-7E9B-4d49-8831-A227C80A7AD3})
  • NoScript 2.6.8.19 ({73a6fe31-595d-460b-a920-fcc0f8843232})
  • NoSquint 2.1.9 (nosquint@urandom.ca)
  • Stylish 1.4.2 ({46551EC9-40F0-4e47-8E18-8E5CF550CFB8})
  • Tab Mix Plus 0.4.1.3.1 ({dc572301-7619-498c-a57d-39143191b318})
  • Tiny Menu 2.0.4 ({d33c2f7c-b1e6-4d46-ab0e-be1f6d05c904})
  • TinyURL Generator 2.6.1 (tinyurl.addon@fast-chat.co.uk)
  • Toolbar Buttons 1.0 ({03B08592-E5B4-45ff-A0BE-C1D975458688})
  • Translate This! 3.0.1 (jid0-k75TfRGfOXPHfEZmJ9cKu5eCgLc@jetpack)
  • Troubleshooter 1.1a (troubleshooter@mozilla.org)
  • User Agent Switcher 0.7.3 ({e968fc70-8f95-4ab9-9e79-304de2a71ee1})
  • Webutation 2.0.8 ({15fe27f3-e5ab-2d59-4c5c-dadc7945bdbd})
  • DeSopa 1.4 (desopa@congress.public) (inaktiv)
  • DownloadHelper 4.9.22 ({b9db16a4-6edc-47ec-a1f4-b86292ed211d}) (inaktiv)
  • FireMath 0.9 (firemath@claas.bontus) (inaktiv)
  • JavaScript Debugger 0.9.89 ({f13b157f-b174-47e7-a34d-4815ddfdfeb8}) (inaktiv)
  • LinkExtend 1.1.5 ({cf47767d-5f3a-4e32-9fce-5d79565c9702}) (inaktiv)
  • Location Bar Enhancer 5.1 (UIEnhancer@girishsharma) (inaktiv)
  • MAFIAAFire: ThePirateBay Dancing! 0.3.3.2.10102012 (thepiratebay@mafiaafire.com) (inaktiv)
  • Pocket 3.0.4 (isreaditlater@ideashower.com) (inaktiv)
  • UnPlug 2.056 (unplug@compunach) (inaktiv)
  • WOT 20131118 ({a0d7ccb3-214d-498b-b4aa-0e8fda9a7bf7}) (inaktiv)

JavaScript

  • incrementalGCEnabled: True

Grafiken

  • adapterDescription: AMD Radeon HD 7660D
  • adapterDescription2:
  • adapterDeviceID: 0x9901
  • adapterDeviceID2:
  • adapterDrivers: aticfx64 aticfx64 aticfx64 aticfx32 aticfx32 aticfx32 atiumd64 atidxx64 atidxx64 atiumdag atidxx32 atidxx32 atiumdva atiumd6a atitmm64
  • adapterDrivers2:
  • adapterRAM: 512
  • adapterRAM2:
  • adapterVendorID: 0x1002
  • adapterVendorID2:
  • direct2DEnabled: True
  • directWriteEnabled: True
  • directWriteVersion: 6.3.9600.16384
  • driverDate: 9-10-2013
  • driverDate2:
  • driverVersion: 13.152.1.1000
  • driverVersion2:
  • info: {u'AzureCanvasBackend': u'direct2d', u'AzureFallbackCanvasBackend': u'cairo', u'AzureContentBackend': u'direct2d', u'AzureSkiaAccelerated': 0}
  • isGPU2Active: False
  • numAcceleratedWindows: 1
  • numTotalWindows: 1
  • webglRenderer: Google Inc. -- ANGLE (AMD Radeon HD 7660D Direct3D9Ex vs_3_0 ps_3_0)
  • windowLayerManagerRemote: False
  • windowLayerManagerType: Direct3D 10

Veränderte Einstellungen

  • accessibility.browsewithcaret: True
  • accessibility.typeaheadfind.flashBar: 0
  • accessibility.warn_on_browsewithcaret: False
  • browser.cache.disk.capacity: 358400
  • browser.cache.disk.smart_size.first_run: False
  • browser.cache.disk.smart_size.use_old_max: False
  • browser.cache.disk.smart_size_cached_value: 358400
  • browser.history_expire_days.mirror: 180
  • browser.places.importBookmarksHTML: False
  • browser.places.importDefaults: False
  • browser.places.leftPaneFolderId: -1
  • browser.places.migratePostDataAnnotations: False
  • browser.places.smartBookmarksVersion: 6
  • browser.places.updateRecentTagsUri: False
  • browser.search.openintab: True
  • browser.search.useDBForOrder: True
  • browser.sessionstore.upgradeBackup.latestBuildID: 20140314220517
  • browser.startup.homepage: http://192.168.10.122/log.html
  • browser.startup.homepage_override.buildID: 20140314220517
  • browser.startup.homepage_override.mstone: 28.0
  • browser.tabs.closeWindowWithLastTab: False
  • browser.tabs.warnOnClose: False
  • browser.zoom.full: False
  • browser.zoom.siteSpecific: False
  • dom.mozApps.used: True
  • dom.w3c_touch_events.expose: False
  • extensions.checkCompatibility.3.0: True
  • extensions.checkCompatibility.3.5: True
  • extensions.checkCompatibility.3.6: True
  • extensions.lastAppVersion: 28.0
  • font.internaluseonly.changed: False
  • general.autoScroll: False
  • gfx.content.azure.enabled: False
  • gfx.direct3d.last_used_feature_level_idx: 0
  • gfx.direct3d.prefer_10_1: True
  • network.cookie.cookieBehavior: 1
  • network.cookie.prefsMigrated: True
  • network.security.ports.banned: 8118,8123,9050,9051
  • places.database.lastMaintenance: 1397698088
  • places.history.expiration.transient_current_max_pages: 104858
  • places.history.expiration.transient_optimal_database_size: 150289448
  • places.last_vacuum: 1302832979
  • plugin.disable_full_page_plugin_for_types: application/pdf
  • plugin.importedState: True
  • plugin.state.npgeplugin: 2
  • plugin.state.npitunes: 0
  • plugin.state.npunity3d: 0
  • plugin.state.npvlc: 0
  • plugin.state.npwlpg: 0
  • privacy.clearOnShutdown.cookies: False
  • privacy.clearOnShutdown.extensions-nosquint: False
  • privacy.clearOnShutdown.splitBrowserUndoCache: True
  • privacy.cpd.extensions-nosquint: False
  • privacy.cpd.extensions-tabmix: False
  • privacy.cpd.formdata: False
  • privacy.cpd.offlineApps: True
  • privacy.cpd.siteSettings: True
  • privacy.donottrackheader.enabled: True
  • privacy.item.extensions-nosquint: False
  • privacy.popups.showBrowserMessage: False
  • privacy.sanitize.migrateFx3Prefs: True
  • privacy.sanitize.timeSpan: 0
  • security.dialog_enable_delay: 0
  • security.disable_button.openCertManager: False
  • security.warn_viewing_mixed: False
  • storage.vacuum.last.index: 1
  • storage.vacuum.last.places.sqlite: 1380612366

Verschiedenes

  • User JS: Nein
  • Barrierefreiheit: Nein
guigs 1072 Lösungen 11697 Antworten
Veröffentlicht

There is an option to focus on a new window when it opens in the Firefox Options > tabs > "When I open a new tab switch to it immediately", however since you would like to do this from the command line/cmd the default ones are https://support.mozilla.org/en-US/kb/keyboard-shortcuts-perform-firefox-t...

If this does not already exist: https://developer.mozilla.org/en-US/d.../Commands

There is an option to focus on a new window when it opens in the Firefox Options > tabs > "When I open a new tab switch to it immediately", however since you would like to do this from the command line/cmd the default ones are [https://support.mozilla.org/en-US/kb/keyboard-shortcuts-perform-firefox-tasks-quickly#w_windows-tabs] *[http://kb.mozillazine.org/Command_line_arguments] *[https://developer.mozilla.org/en-US/docs/Mozilla/Command_Line_Options] If this does not already exist: [https://developer.mozilla.org/en-US/docs/Mozilla/Tech/XUL/Tutorial/Commands]
Veröffentlicht

Fragesteller

The response from guigs2 was not helpful. Indeed, I don't think guigs2 understood my question. When Firefox is already running but iconified or buried under other windows, I want a simple way to deinconify it (if necessary), bring it to the front, and give its window focus. I figured there should be a command line argument that would do that; in which case I could put an invocation of Firefox with that argument into a system-level keyboard shortcut of the sort you can set up on any Windows shortcut. But I could not find such a command line argument. Referring me to the same list of command line arguments I have already examined certainly does not help. (If it is there is a disguised form, please tell me what it is explicitly.) The Firefox keyboard shortcuts are of no use unless the Firefox window already has focus; so those are clearly irrelevant.

If there is no way to do this with what exists in Firefox and Windows, I will just have to install AutoHotkey, as I know it can do what I want.

The response from guigs2 was not helpful. Indeed, I don't think guigs2 understood my question. When Firefox is already running but iconified or buried under other windows, I want a simple way to deinconify it (if necessary), bring it to the front, and give its window focus. I figured there should be a command line argument that would do that; in which case I could put an invocation of Firefox with that argument into a system-level keyboard shortcut of the sort you can set up on any Windows shortcut. But I could not find such a command line argument. Referring me to the same list of command line arguments I have already examined certainly does not help. (If it is there is a disguised form, please tell me what it is explicitly.) The Firefox keyboard shortcuts are of no use unless the Firefox window already has focus; so those are clearly irrelevant. If there is no way to do this with what exists in Firefox and Windows, I will just have to install AutoHotkey, as I know it can do what I want.
guigs 1072 Lösungen 11697 Antworten
Veröffentlicht

Hi DrHow, currently I do not know of a command line argument that does this for Firefox at the moment. The last link shows an example of how to configure one. However if you are looking for one that is already developed, AutoHotkey may be a good work around.

Hi DrHow, currently I do not know of a command line argument that does this for Firefox at the moment. The last link shows an example of how to configure one. However if you are looking for one that is already developed, AutoHotkey may be a good work around.
Veröffentlicht

Fragesteller

When I looked at the last link the first time, I could not even figure out what it had to do with my question. But I thought I would give it another try. I now realize that I had been dumped into the middle of the XUL tutorial. I knew nothing about XUL, but I began looking into it a bit. I am guessing that guigs2 is suggesting that I can compose a .xul file such that, if I invoked Firefox.exe passing it that file, then it would do what I want. However, looking around in the XUL Reference and XUL Controls, I have been unable to find anything that has to do with iconifying, deiconifying, raising to the top, or giving focus to a Firefox window. If such things are in there, I'd appreciate some pointers.

When I looked at the last link the first time, I could not even figure out what it had to do with my question. But I thought I would give it another try. I now realize that I had been dumped into the middle of the XUL tutorial. I knew nothing about XUL, but I began looking into it a bit. I am guessing that guigs2 is suggesting that I can compose a .xul file such that, if I invoked Firefox.exe passing it that file, then it would do what I want. However, looking around in the XUL Reference and XUL Controls, I have been unable to find anything that has to do with iconifying, deiconifying, raising to the top, or giving focus to a Firefox window. If such things are in there, I'd appreciate some pointers.
John99 971 Lösungen 13138 Antworten
Veröffentlicht

This looks like a Windows question rather than a Firefox issue. I am not sure XUL will help but you will have already discovered the documentation starts here

Like you say Autohotkey may well be the answer. Autohotkey appears to automate exactly the kind of actions you are trying to use.

The program is written in Autohotkey with a single line of code:

^SPACE::  Winset, Alwaysontop, , A
This looks like a Windows question rather than a Firefox issue. I am not sure XUL will help but you will have already discovered the documentation starts here *https://developer.mozilla.org/en-US/docs/Mozilla/Tech/XUL Like you say Autohotkey may well be the answer. Autohotkey appears to automate exactly the kind of actions you are trying to use. * http://en.wikipedia.org/wiki/AutoHotkey * http://www.autohotkey.com/ * I note from http://www.labnol.org/software/tutorials/keep-window-always-on-top/5213/ The utility ''Always on Top'' ''The program is written in Autohotkey with a single line of code: ^SPACE:: Winset, Alwaysontop, , A''