Play/Pause action - Offer individual 'Play' and 'Pause' settings or separate actions

Hi everybody,

The 'Play/Pause action' which stops or starts media playback, is generally useful, but it would additionally be great if the user could set within the 'Play/Pause action" that the action just pauses or just resumes the play of media.
This would increase the scenarios in which the Play/Pause action could be used (see mockup picture below).
Alternatively, two additional separate actions, "Play Media" and "Pause Media" could be created.
I personally see no advantage to this because, as stated above, this function could be kept within the single action "Play/Pause"... I am, however, no BTT specialist, so the BTT-Developer will know best :wink:

I would like to demonstrate why this feature would be useful:
Using the "Start / Stop Dictation / Recognizing / Transcribing Speech" action, BTT has turned into a practical dictation-transcribing tool.
Like many other people, I often play music in the background using Spotify or YouTube in a browser tab.
When I start dictating an e-mail, I would like media playback to stop because the microphone shouldn't pick up chatter from the media playback. Furthermore, background noise is very distracting when wanting to dictate.

Now a final, tiny observation:
The action is called "Play/Pause". It may make sense to use this opportunity to slightly optimize the action name from "Play/Pause" to "Play/Pause Media". This makes clearer what exactly is being paused/played by this action.

You can add more actions to your dictation trigger, e.g. :

  1. Check if any media is playing - this could be done checking the BTTCurrentlyPlaying variable
  2. If BTTCurrentlyPlaying == 1 - invoke the Play/Pause which will result in Pause, if BTTCurrentlyPlaying == 0, do NOT invoke Play/Pause action
  3. Your dictation action fires up

Hi xidiot,

Thanks for your suggestion.
Would you please provide a screenshot of where to enter these commands?
I am still learning about BTT and don't yet know where to enter this information.

Can somebody help please :pleading_face:

You can use if conditions:

Hi Andreas,

I tried to set it up in accordance with your picture but currently the voice recording window opens without media playback stopping.
I must still be doing something wrong.
Can you see the mistake on the picture below?

Please note:
I tried the setup chain with and without an active "Play/Pause" trigger.
This makes no difference.

Which version of macOS are you on?

The BTTCurrentlyPlaying are very special and unfortunately much more complex than one would expect. In your example the number variable is compared to a string, suggesting it has not been available while you set it up.

Does the variable show up in BTT's scripting & variables view?

I am using BetterTouchTool 6.726
I don't see BTTCurrentlyPlaying in my list

I mean the macOS version. (There are huge differences between macOS versions here and e.g. BTT has not yet adapted support for these to the golden gate betas)

I use macOS Golden Gate Version 27.0 Beta (26A5406e)

ok, then it will not work yet!

I'll make it compatible with Golden Gate soon.

Thank you :folded_hands:
So if I understand you correctly, my setup is correct and just doesn't work because macOS Golden Gate is not supported (completely) by BTT yet.
I will remember this and maybe not use macOS betas in the future if this means that important programs like BTT could stop working.

Your setup is almost correct, however you might need to redo the condition once the golden gate fix is in. (I hope to have it online in a few days)