ShareShortcuts
Fazer fork de “Music Player”

Criou algo novo a partir deste atalho? Compartilhe como uma derivação: ela se torna um atalho seu, que você gerencia, e as duas páginas têm links entre si para que celebrity receba o crédito.

  1. 1Obtenha o atalho e altere-o no app Atalhos. Dê a ele um nome próprio.
  2. 2Compartilhe pelo app Atalhos e copie o link do iCloud.
  3. 3Volte aqui, cole o link e descreva o que mudou, por exemplo: “Adicionei uma etapa que usa a Apple Intelligence para personalizar o texto.”
Downloads
5K
Salvo
1
Ações
22
Categoria
Music
Versão
2.0
Idioma
EN

The Music Player is a shortcut that can Play/Pause any running songs on “iPhone”, for the full effects of this shortcut assign it to “AssistiveTouch” by going into the “Settings” App and tapping “Accessibility”, then “Touch”, then “AssistiveTouch” and then scroll down to double touch and turn “AssistiveTouch” On.

Novidades

Versão 2.0

Just additional actions, also don’t forget to change the name of the focus in the “If name” statement

Histórico de versões
2.0 6 de jul de 2026

Just additional actions, also don’t forget to change the name of the focus in the “If name” statement

1.0 21 de mai de 2026

First release

O que ele faz

22 ações
  1. Get Current Focus
  2. Get Name
  3. If
  4. Play/Pause
  5. If
  6. If
  7. Play/Pause
  8. Go to Home Screen
  9. Lock Screen
  10. Set Volume
  11. If
  12. Play/Pause
  13. If
  14. Text
  15. Set Variable
    MusicPlayer
  16. Get Value
    dk.simonbs.DataJar
  17. Calculate
  18. Set Value
    dk.simonbs.DataJar
  19. If
  20. Text
  21. Set Value
    dk.simonbs.DataJar
  22. Run Shortcut
    Minutes in a song

Ver como código
Beta

Todas as ações deste atalho escritas em Cherri, uma linguagem de programação para o app Atalhos. Ótimo para aprender como ele funciona.

#define mac false
#include 'actions/settings'
#define color red
#define glyph livePlay

const CurrentFocus = getFocusMode()
const Name = getName(CurrentFocus)

if Name == "Ultra Low Power Mode " {
	play()
} else {
	if Name == "Lockdown 🔒" {
		play()
		returnToHomescreen()
		lockScreen()
		setVolume(0)
	} else {
		togglePlayPause()
		if Name == "Airpods" {
			@MusicPlayer = "0"
			rawAction("dk.simonbs.DataJar.GetValueIntent", {
				"keyPath": "MusicPlayer"
			})
			const CalculationResult = Value + 1
			rawAction("dk.simonbs.DataJar.SetValueIntent", {
				"keyPath": "MusicPlayer",
				"values": "CalculationResult"
			})
			if CalculationResult >= 5 {
				const Text = "0"
				rawAction("dk.simonbs.DataJar.SetValueIntent", {
					"keyPath": "MusicPlayer",
					"values": "Text"
				})
				run("Minutes in a song", Text)
			}
		}
	}
}
Abrir no Cherri Playground Descompilado com cherri 2.3.0 (GPL-2.0). Pode precisar de pequenos ajustes antes de compilar.

Avaliações e comentários

Escrever uma avaliação
–
de 5
★★★★★
★★★★
★★★
★★
★
0 ratings

Ainda não há avaliações. Seja o primeiro a compartilhar o que você pensa!

Publicidade

Mais de celebrity

Ver tudo

Você também pode gostar

Ver tudo
Publicidade