I created a simple 2-step macro (via Tools → Macros) which I need to run VERY frequently, so I want to minimize the number of clicks it takes to execute.
The 2nd step is creating a label for the selected range. This command ends with the cursor in the label field, expecting me to type in a label text. But all I want is to press ENTER to leave the label without text (empty). How can I get the “ENTER” command into the macro (as a 3rd step)?
(How) can I assign a keyboard shortcut to execute my macro without having to go through Tools → Apply Macro → each time?
Thanks for any suggestions.
PS: using Audacity 2.3.3 on Win8.1
I’m not looking for a way to branch. All I want is to get my cursor out of the label text field at the end of the macro without having to hit the ENTER key.
Here is the macro:
Repair (this requires making a selection, so the selection is still there after the command)
“Textmarke bei Auswahl hinzufügen” which I’d say corresponds to “set label at selection” (I don’t know the exact term used in the English GUI)
– END –
step 2 leaves the cursor blinking in the label text field, expecting me to type in some text. I can leave this field (without entering text) by manually hitting ENTER. Can I get this done inside the macro?
Thanks @steve for having me scrutinize again the keyboard settings dialog. I was at lost how to find my macro there - now I found it
And I did update to 2.4.2.
Sorry, but I don’t quite get your point, @steve.
Do you suggest I add a Nyquist prompt (with the given parameters) as the last command in my macro?
When I did, it didn’t make a difference: after creation of the label the cursor (= the focus) is still in the label field.
Going back with the cursor to the audio track I can make my next selection OK, but I use the keyboard a lot, so I quite frequently find myself typing into the label field, when I’d had rather moved the focus out before. So ideally I’d like to get the focus out of the label track, back into the audio track.
Open the folder C:Users**\AppData\Roaming\audacity\Macros**
and find the text file that corresponds with your macro.
Open the file in a plain text editor (for example NotePad++), and replace the current text with:
Hmm…Interesting - now it works indeed
Would you mind explaining a bit how the NyquistPrompt command does the magic of creating an empty label without capturing the focus?
Wouldn’t have epxected this from looking at the command line …
Wow - this is cool. Not that I fully understand how you exactly this “appropriately formatted” list get create, but I guess I don’t have to
Thanks, Steve, for completely getting my question answered - again!
Happy New Year!