make hotkeys accessible to the background

This read-only archive contains discussions from the Adding Feature forum.
New feature request may be posted to the Adding Feature forum.
Technical support is available via the Help forum.
stordyr
Posts: 2
Joined: Wed Oct 22, 2014 11:27 am
Operating System: Please select

make hotkeys accessible to the background

Post by stordyr » Wed Oct 22, 2014 11:33 am

Hello,

I just recently started using Audacity but I figured that I can't start a recording with a hotkey, when I'm using another application (e.g. a game).
So ... I know, this is possible to be done (Fraps can do it => guess, what i'm trying to do :P)
It'd be a great addition to a great software ;)

Thanks

Gale Andrews
Quality Assurance
Posts: 41761
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

Re: make hotkeys accessible to the background

Post by Gale Andrews » Wed Oct 22, 2014 11:46 am

I'll count your vote for that. Thanks


Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

steve
Site Admin
Posts: 81609
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: make hotkeys accessible to the background

Post by steve » Wed Oct 22, 2014 3:31 pm

stordyr wrote:(Fraps can do it => guess, what i'm trying to do :P)
Of course the downside would be:

You're in a tight spot, the enemy are all around and closing in. Quickly you grab a mortar and launch it, but the mortar does not fire!!! Audacity does something instead. (How annoying :twisted: )
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Gale Andrews
Quality Assurance
Posts: 41761
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

Re: make hotkeys accessible to the background

Post by Gale Andrews » Thu Oct 23, 2014 10:30 am

To avoid getting annihilated by the enemy, you just need to plan in advance so that your Audacity record key that works in all apps isn't used in any of those apps.


Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

steve
Site Admin
Posts: 81609
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: make hotkeys accessible to the background

Post by steve » Thu Oct 23, 2014 1:58 pm

Gale Andrews wrote:To avoid getting annihilated by the enemy, you just need to plan in advance so that your Audacity record key that works in all apps isn't used in any of those apps.
That will be fun, given that so many key combinations that are not commonly used in games are used by Fraps.

There is already a workaround, which is to use a third party application (such as AutoKey or AutoHotKey) to handle global bindings.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Gale Andrews
Quality Assurance
Posts: 41761
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

Re: make hotkeys accessible to the background

Post by Gale Andrews » Fri Oct 24, 2014 11:06 am

steve wrote:
Gale Andrews wrote:To avoid getting annihilated by the enemy, you just need to plan in advance so that your Audacity record key that works in all apps isn't used in any of those apps.
That will be fun, given that so many key combinations that are not commonly used in games are used by Fraps.
Fraps appears to allow you to customise shortcuts: http://www.fraps.com/faq.php .
steve wrote:There is already a workaround, which is to use a third party application (such as AutoKey or AutoHotKey) to handle global bindings.
Which I figure is a lot harder for the average user than setting a global shortcut in Audacity.

Is there a ready AHK script already posted somewhere? If so, please point to it. And if the user employs that script, don't they still have to ensure that FRAPS or whatever application is being used is not already using that key?


Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

steve
Site Admin
Posts: 81609
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: make hotkeys accessible to the background

Post by steve » Fri Oct 24, 2014 11:35 am

Gale Andrews wrote:Is there a ready AHK script already posted somewhere?
Not that I know of.
Gale Andrews wrote:And if the user employs that script, don't they still have to ensure that FRAPS or whatever application is being used is not already using that key?
Absolutely. I don't see how there can be any way round that. I was just saying that if a user wants to run Audacity as a third party application alongside their game and Fraps, and want to access Audacity with global hot keys while running the game and Fraps, it is possible to do it by adding another third party application to script the desired behaviour. (I wasn't meaning to imply that it would be easy ;) )

We could look at this issue another way.
The reason that people want to run Audacity alongside Fraps is because Fraps does not have all of the audio recording features that they want - so shouldn't that be a feature request for Fraps rather than for Audacity?
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Gale Andrews
Quality Assurance
Posts: 41761
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

Re: make hotkeys accessible to the background

Post by Gale Andrews » Fri Oct 24, 2014 12:48 pm

steve wrote:We could look at this issue another way.
The reason that people want to run Audacity alongside Fraps is because Fraps does not have all of the audio recording features that they want - so shouldn't that be a feature request for Fraps rather than for Audacity?
As far as I know, Fraps can record the game audio and mic at the same time (at least on Windows 7 and later) so I don't know what the Fraps request would be. Some people may want a separate Audacity recording for the mic or for the game so they can keep that on a separate track.

I think the request for the Audacity global shortcut goes beyond Fraps, for example the convenience of watching YouTube full screen then pressing the global shortcut to start Audacity recording without leaving YouTube.

wx3.0.2 supposedly supports global shortcuts cross-platform so the opportunity may be there to implement it in Audacity when our migration to 3.0.2 is complete.


Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

Robert J. H.
Posts: 3633
Joined: Thu May 31, 2012 8:33 am
Operating System: Windows 10

Re: make hotkeys accessible to the background

Post by Robert J. H. » Fri Oct 24, 2014 12:57 pm

steve wrote:
Gale Andrews wrote:Is there a ready AHK script already posted somewhere?
Not that I know of.
Gale Andrews wrote:And if the user employs that script, don't they still have to ensure that FRAPS or whatever application is being used is not already using that key?
Absolutely. I don't see how there can be any way round that. I was just saying that if a user wants to run Audacity as a third party application alongside their game and Fraps, and want to access Audacity with global hot keys while running the game and Fraps, it is possible to do it by adding another third party application to script the desired behaviour. (I wasn't meaning to imply that it would be easy ;) )

We could look at this issue another way.
The reason that people want to run Audacity alongside Fraps is because Fraps does not have all of the audio recording features that they want - so shouldn't that be a feature request for Fraps rather than for Audacity?
I imagine that global keys are useable in other places too.

In my opinion, Audacity should only have one global key combination. Any hotkey after that is passed to Audacity.
For instance:
- You press e.g. Windows-a and Audacity gets ready.
- You press r and recording starts.
Screen readers work like this. If you want to pass a key to the underlying operating system, you have to press a key combination first (e.g. NVDA: insert+F2).
For Audacity, the procedure would be just the other way around. No hotkey would be caught until you pressed the magic combination.

Gale Andrews
Quality Assurance
Posts: 41761
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

Re: make hotkeys accessible to the background

Post by Gale Andrews » Fri Oct 24, 2014 1:22 pm

Robert J. H. wrote:In my opinion, Audacity should only have one global key combination. Any hotkey after that is passed to Audacity.
For instance:
- You press e.g. Windows-a and Audacity gets ready.
- You press r and recording starts.
Screen readers work like this. If you want to pass a key to the underlying operating system, you have to press a key combination first (e.g. NVDA: insert+F2).
For Audacity, the procedure would be just the other way around. No hotkey would be caught until you pressed the magic combination.
That would certainly give the flexibility of not requiring any application shortcuts to be changed. It would have to work without switching focus back to Audacity when you press R.

However it would cause a delay if you forgot to use Windows + A or suddenly heard something you wanted to record that you were not expecting. You could lose the vital start of the recording while you fumble for Windows + A.


Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

Locked